From 5e62e837c570e98cbd71f63c67bbf0a3da73ae9d Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 2 Apr 2019 00:33:58 -0700 Subject: [PATCH] Regenerate automl client --- .../cloud/automl/v1beta1/AutoMlGrpc.java | 1566 ++++++- .../automl/v1beta1/PredictionServiceGrpc.java | 231 +- .../automl/v1beta1/AnnotationPayload.java | 1707 +++++++- .../v1beta1/AnnotationPayloadOrBuilder.java | 190 +- .../v1beta1/AnnotationPayloadOuterClass.java | 59 +- .../cloud/automl/v1beta1/AnnotationSpec.java | 882 ++++ .../v1beta1/AnnotationSpecOrBuilder.java | 76 + .../cloud/automl/v1beta1/ArrayStats.java | 713 ++++ .../automl/v1beta1/ArrayStatsOrBuilder.java | 44 + .../cloud/automl/v1beta1/AutoMlProto.java | 477 ++- .../v1beta1/BatchPredictInputConfig.java | 1302 ++++++ .../BatchPredictInputConfigOrBuilder.java | 74 + .../BatchPredictOperationMetadata.java | 2054 +++++++++ ...atchPredictOperationMetadataOrBuilder.java | 83 + .../v1beta1/BatchPredictOutputConfig.java | 1379 ++++++ .../BatchPredictOutputConfigOrBuilder.java | 78 + .../automl/v1beta1/BatchPredictRequest.java | 1776 ++++++++ .../v1beta1/BatchPredictRequestOrBuilder.java | 290 ++ .../automl/v1beta1/BatchPredictResult.java | 435 ++ .../v1beta1/BatchPredictResultOrBuilder.java | 9 + .../automl/v1beta1/BigQueryDestination.java | 612 +++ .../v1beta1/BigQueryDestinationOrBuilder.java | 35 + .../cloud/automl/v1beta1/BigQuerySource.java | 610 +++ .../v1beta1/BigQuerySourceOrBuilder.java | 35 + .../v1beta1/BoundingBoxMetricsEntry.java | 2083 +++++++++ .../BoundingBoxMetricsEntryOrBuilder.java | 111 + .../cloud/automl/v1beta1/BoundingPoly.java | 942 +++++ .../automl/v1beta1/BoundingPolyOrBuilder.java | 63 + .../cloud/automl/v1beta1/CategoryStats.java | 1751 ++++++++ .../v1beta1/CategoryStatsOrBuilder.java | 80 + .../automl/v1beta1/ClassificationProto.java | 3738 ++++++++++++++--- .../cloud/automl/v1beta1/ColumnSpec.java | 3157 ++++++++++++++ .../automl/v1beta1/ColumnSpecOrBuilder.java | 245 ++ .../automl/v1beta1/ColumnSpecOuterClass.java | 90 + .../automl/v1beta1/CorrelationStats.java | 522 +++ .../v1beta1/CorrelationStatsOrBuilder.java | 21 + .../automl/v1beta1/CreateDatasetRequest.java | 6 +- .../automl/v1beta1/CreateModelRequest.java | 6 +- .../cloud/automl/v1beta1/DataItems.java | 69 +- .../cloud/automl/v1beta1/DataStats.java | 2410 +++++++++++ .../automl/v1beta1/DataStatsOrBuilder.java | 220 + .../automl/v1beta1/DataStatsOuterClass.java | 288 ++ .../google/cloud/automl/v1beta1/DataType.java | 1578 +++++++ .../automl/v1beta1/DataTypeOrBuilder.java | 153 + .../cloud/automl/v1beta1/DataTypes.java | 108 + .../google/cloud/automl/v1beta1/Dataset.java | 2279 +++++++++- .../automl/v1beta1/DatasetOrBuilder.java | 240 +- .../automl/v1beta1/DatasetOuterClass.java | 79 +- .../automl/v1beta1/DeleteDatasetRequest.java | 6 +- .../automl/v1beta1/DeleteModelRequest.java | 6 +- .../v1beta1/DeleteOperationMetadata.java | 436 ++ .../DeleteOperationMetadataOrBuilder.java | 9 + .../v1beta1/DeployModelOperationMetadata.java | 439 ++ ...DeployModelOperationMetadataOrBuilder.java | 9 + .../automl/v1beta1/DeployModelRequest.java | 431 +- .../v1beta1/DeployModelRequestOrBuilder.java | 42 + .../cloud/automl/v1beta1/Detection.java | 123 + .../google/cloud/automl/v1beta1/Document.java | 701 ++++ .../automl/v1beta1/DocumentInputConfig.java | 738 ++++ .../v1beta1/DocumentInputConfigOrBuilder.java | 50 + .../automl/v1beta1/DocumentOrBuilder.java | 41 + .../cloud/automl/v1beta1/DoubleRange.java | 598 +++ .../automl/v1beta1/DoubleRangeOrBuilder.java | 32 + .../cloud/automl/v1beta1/ExamplePayload.java | 604 ++- .../v1beta1/ExamplePayloadOrBuilder.java | 68 +- .../v1beta1/ExportDataOperationMetadata.java | 1744 ++++++++ .../ExportDataOperationMetadataOrBuilder.java | 48 + .../automl/v1beta1/ExportDataRequest.java | 6 +- ...ortEvaluatedExamplesOperationMetadata.java | 1507 +++++++ ...tedExamplesOperationMetadataOrBuilder.java | 54 + .../ExportEvaluatedExamplesOutputConfig.java | 868 ++++ ...valuatedExamplesOutputConfigOrBuilder.java | 44 + .../ExportEvaluatedExamplesRequest.java | 903 ++++ ...portEvaluatedExamplesRequestOrBuilder.java | 68 + .../v1beta1/ExportModelOperationMetadata.java | 1445 +++++++ ...ExportModelOperationMetadataOrBuilder.java | 52 + .../automl/v1beta1/ExportModelRequest.java | 874 ++++ .../v1beta1/ExportModelRequestOrBuilder.java | 62 + .../cloud/automl/v1beta1/Float64Stats.java | 2232 ++++++++++ .../automl/v1beta1/Float64StatsOrBuilder.java | 151 + .../cloud/automl/v1beta1/GcrDestination.java | 652 +++ .../v1beta1/GcrDestinationOrBuilder.java | 47 + .../cloud/automl/v1beta1/GcsDestination.java | 4 +- .../cloud/automl/v1beta1/GcsSource.java | 30 +- .../automl/v1beta1/GcsSourceOrBuilder.java | 8 +- .../google/cloud/automl/v1beta1/Geometry.java | 77 + .../v1beta1/GetAnnotationSpecRequest.java | 599 +++ .../GetAnnotationSpecRequestOrBuilder.java | 31 + .../automl/v1beta1/GetColumnSpecRequest.java | 855 ++++ .../GetColumnSpecRequestOrBuilder.java | 62 + .../automl/v1beta1/GetDatasetRequest.java | 6 +- .../v1beta1/GetModelEvaluationRequest.java | 6 +- .../cloud/automl/v1beta1/GetModelRequest.java | 6 +- .../automl/v1beta1/GetTableSpecRequest.java | 855 ++++ .../v1beta1/GetTableSpecRequestOrBuilder.java | 62 + .../google/cloud/automl/v1beta1/Image.java | 2 + .../ImageClassificationDatasetMetadata.java | 21 +- ...lassificationDatasetMetadataOrBuilder.java | 6 +- .../ImageClassificationModelMetadata.java | 474 ++- ...eClassificationModelMetadataOrBuilder.java | 109 +- .../ImageObjectDetectionAnnotation.java | 811 ++++ ...ageObjectDetectionAnnotationOrBuilder.java | 57 + .../ImageObjectDetectionDatasetMetadata.java | 449 ++ ...jectDetectionDatasetMetadataOrBuilder.java | 9 + ...ImageObjectDetectionEvaluationMetrics.java | 1258 ++++++ ...ctDetectionEvaluationMetricsOrBuilder.java | 113 + ...bjectDetectionModelDeploymentMetadata.java | 560 +++ ...ctionModelDeploymentMetadataOrBuilder.java | 25 + .../ImageObjectDetectionModelMetadata.java | 832 ++++ ...ObjectDetectionModelMetadataOrBuilder.java | 70 + .../cloud/automl/v1beta1/ImageProto.java | 55 +- .../v1beta1/ImportDataOperationMetadata.java | 436 ++ .../ImportDataOperationMetadataOrBuilder.java | 9 + .../automl/v1beta1/ImportDataRequest.java | 42 +- .../v1beta1/ImportDataRequestOrBuilder.java | 9 +- .../cloud/automl/v1beta1/InputConfig.java | 1133 ++++- .../automl/v1beta1/InputConfigOrBuilder.java | 126 +- .../com/google/cloud/automl/v1beta1/Io.java | 187 +- .../v1beta1/ListColumnSpecsRequest.java | 1282 ++++++ .../ListColumnSpecsRequestOrBuilder.java | 122 + .../v1beta1/ListColumnSpecsResponse.java | 1098 +++++ .../ListColumnSpecsResponseOrBuilder.java | 85 + .../automl/v1beta1/ListDatasetsRequest.java | 76 +- .../v1beta1/ListDatasetsRequestOrBuilder.java | 20 +- .../automl/v1beta1/ListDatasetsResponse.java | 34 +- .../ListDatasetsResponseOrBuilder.java | 8 +- .../v1beta1/ListModelEvaluationsRequest.java | 41 +- .../ListModelEvaluationsRequestOrBuilder.java | 10 +- .../v1beta1/ListModelEvaluationsResponse.java | 27 +- ...ListModelEvaluationsResponseOrBuilder.java | 6 +- .../automl/v1beta1/ListModelsRequest.java | 90 +- .../v1beta1/ListModelsRequestOrBuilder.java | 24 +- .../automl/v1beta1/ListModelsResponse.java | 20 +- .../v1beta1/ListModelsResponseOrBuilder.java | 4 +- .../automl/v1beta1/ListTableSpecsRequest.java | 1282 ++++++ .../ListTableSpecsRequestOrBuilder.java | 122 + .../v1beta1/ListTableSpecsResponse.java | 1097 +++++ .../ListTableSpecsResponseOrBuilder.java | 85 + .../google/cloud/automl/v1beta1/Model.java | 2541 +++++++++-- .../cloud/automl/v1beta1/ModelEvaluation.java | 2130 +++++++++- .../v1beta1/ModelEvaluationOrBuilder.java | 234 +- .../v1beta1/ModelEvaluationOuterClass.java | 62 +- .../v1beta1/ModelExportOutputConfig.java | 1906 +++++++++ .../ModelExportOutputConfigOrBuilder.java | 250 ++ .../cloud/automl/v1beta1/ModelOrBuilder.java | 229 +- .../cloud/automl/v1beta1/ModelOuterClass.java | 74 +- .../automl/v1beta1/NormalizedVertex.java | 603 +++ .../v1beta1/NormalizedVertexOrBuilder.java | 32 + .../automl/v1beta1/OperationMetadata.java | 3730 +++++++++++++--- .../v1beta1/OperationMetadataOrBuilder.java | 275 ++ .../cloud/automl/v1beta1/Operations.java | 238 +- .../cloud/automl/v1beta1/OutputConfig.java | 498 ++- .../automl/v1beta1/OutputConfigOrBuilder.java | 52 +- .../cloud/automl/v1beta1/PredictRequest.java | 138 +- .../v1beta1/PredictRequestOrBuilder.java | 60 +- .../cloud/automl/v1beta1/PredictResponse.java | 167 +- .../v1beta1/PredictResponseOrBuilder.java | 65 + .../v1beta1/PredictionServiceProto.java | 98 +- .../cloud/automl/v1beta1/RangesProto.java | 63 + .../cloud/automl/v1beta1/RegressionProto.java | 908 ++++ .../com/google/cloud/automl/v1beta1/Row.java | 1283 ++++++ .../cloud/automl/v1beta1/RowOrBuilder.java | 137 + .../cloud/automl/v1beta1/StringStats.java | 1708 ++++++++ .../automl/v1beta1/StringStatsOrBuilder.java | 73 + .../cloud/automl/v1beta1/StructStats.java | 787 ++++ .../automl/v1beta1/StructStatsOrBuilder.java | 70 + .../cloud/automl/v1beta1/StructType.java | 788 ++++ .../automl/v1beta1/StructTypeOrBuilder.java | 75 + .../cloud/automl/v1beta1/TableSpec.java | 1682 ++++++++ .../automl/v1beta1/TableSpecOrBuilder.java | 173 + .../automl/v1beta1/TableSpecOuterClass.java | 69 + .../google/cloud/automl/v1beta1/Tables.java | 165 + .../automl/v1beta1/TablesAnnotation.java | 1790 ++++++++ .../v1beta1/TablesAnnotationOrBuilder.java | 190 + .../automl/v1beta1/TablesDatasetMetadata.java | 2087 +++++++++ .../TablesDatasetMetadataOrBuilder.java | 306 ++ .../automl/v1beta1/TablesModelColumnInfo.java | 896 ++++ .../TablesModelColumnInfoOrBuilder.java | 77 + .../automl/v1beta1/TablesModelMetadata.java | 2700 ++++++++++++ .../v1beta1/TablesModelMetadataOrBuilder.java | 345 ++ .../google/cloud/automl/v1beta1/Temporal.java | 67 + .../cloud/automl/v1beta1/TextExtraction.java | 101 + .../v1beta1/TextExtractionAnnotation.java | 788 ++++ .../TextExtractionAnnotationOrBuilder.java | 53 + .../TextExtractionDatasetMetadata.java | 440 ++ ...extExtractionDatasetMetadataOrBuilder.java | 9 + .../TextExtractionEvaluationMetrics.java | 2033 +++++++++ ...tExtractionEvaluationMetricsOrBuilder.java | 95 + .../v1beta1/TextExtractionModelMetadata.java | 436 ++ .../TextExtractionModelMetadataOrBuilder.java | 9 + .../cloud/automl/v1beta1/TextProto.java | 56 +- .../cloud/automl/v1beta1/TextSegment.java | 768 ++++ .../automl/v1beta1/TextSegmentOrBuilder.java | 56 + .../automl/v1beta1/TextSegmentProto.java | 64 + .../v1beta1/TextSentimentDatasetMetadata.java | 543 +++ ...TextSentimentDatasetMetadataOrBuilder.java | 27 + .../v1beta1/TextSentimentModelMetadata.java | 436 ++ .../TextSentimentModelMetadataOrBuilder.java | 9 + .../automl/v1beta1/TextSentimentProto.java | 2600 ++++++++++++ .../cloud/automl/v1beta1/TextSnippet.java | 49 +- .../automl/v1beta1/TextSnippetOrBuilder.java | 14 +- .../cloud/automl/v1beta1/TimeSegment.java | 988 +++++ .../automl/v1beta1/TimeSegmentOrBuilder.java | 78 + .../cloud/automl/v1beta1/TimestampStats.java | 1678 ++++++++ .../v1beta1/TimestampStatsOrBuilder.java | 99 + .../google/cloud/automl/v1beta1/TypeCode.java | 266 ++ .../UndeployModelOperationMetadata.java | 443 ++ ...deployModelOperationMetadataOrBuilder.java | 9 + .../automl/v1beta1/UndeployModelRequest.java | 6 +- .../v1beta1/UpdateColumnSpecRequest.java | 1013 +++++ .../UpdateColumnSpecRequestOrBuilder.java | 84 + .../automl/v1beta1/UpdateDatasetRequest.java | 1011 +++++ .../UpdateDatasetRequestOrBuilder.java | 84 + .../v1beta1/UpdateTableSpecRequest.java | 1012 +++++ .../UpdateTableSpecRequestOrBuilder.java | 84 + .../VideoClassificationDatasetMetadata.java | 450 ++ ...lassificationDatasetMetadataOrBuilder.java | 9 + .../VideoClassificationModelMetadata.java | 444 ++ ...oClassificationModelMetadataOrBuilder.java | 9 + .../cloud/automl/v1beta1/VideoProto.java | 75 + .../automl/v1beta1/annotation_payload.proto | 38 +- .../cloud/automl/v1beta1/classification.proto | 121 +- .../cloud/automl/v1beta1/column_spec.proto | 78 + .../cloud/automl/v1beta1/data_items.proto | 48 +- .../cloud/automl/v1beta1/data_stats.proto | 164 + .../cloud/automl/v1beta1/data_types.proto | 116 + .../google/cloud/automl/v1beta1/dataset.proto | 56 +- .../cloud/automl/v1beta1/detection.proto | 89 + .../cloud/automl/v1beta1/geometry.proto | 47 + .../google/cloud/automl/v1beta1/image.proto | 97 +- .../google/cloud/automl/v1beta1/io.proto | 770 +++- .../google/cloud/automl/v1beta1/model.proto | 37 +- .../automl/v1beta1/model_evaluation.proto | 54 +- .../cloud/automl/v1beta1/operations.proto | 137 +- .../automl/v1beta1/prediction_service.proto | 130 +- .../google/cloud/automl/v1beta1/ranges.proto | 36 + .../cloud/automl/v1beta1/regression.proto | 42 + .../google/cloud/automl/v1beta1/service.proto | 397 +- .../cloud/automl/v1beta1/table_spec.proto | 69 + .../google/cloud/automl/v1beta1/tables.proto | 251 ++ .../cloud/automl/v1beta1/temporal.proto | 38 + .../google/cloud/automl/v1beta1/text.proto | 35 +- .../automl/v1beta1/text_extraction.proto | 64 + .../cloud/automl/v1beta1/text_segment.proto | 43 + .../cloud/automl/v1beta1/text_sentiment.proto | 84 + .../cloud/automl/v1beta1/translation.proto | 4 +- .../google/cloud/automl/v1beta1/video.proto | 39 + .../cloud/automl/v1beta1/AutoMlClient.java | 828 +++- .../cloud/automl/v1beta1/AutoMlSettings.java | 114 + .../v1beta1/PredictionServiceClient.java | 115 +- .../v1beta1/PredictionServiceSettings.java | 11 + .../cloud/automl/v1beta1/package-info.java | 8 + .../cloud/automl/v1beta1/stub/AutoMlStub.java | 68 + .../v1beta1/stub/AutoMlStubSettings.java | 387 +- .../automl/v1beta1/stub/GrpcAutoMlStub.java | 347 ++ .../stub/GrpcPredictionServiceStub.java | 31 + .../v1beta1/stub/PredictionServiceStub.java | 6 + .../stub/PredictionServiceStubSettings.java | 27 +- .../automl/v1beta1/AutoMlClientTest.java | 10 + .../cloud/automl/v1beta1/MockAutoMlImpl.java | 151 +- .../v1beta1/MockPredictionServiceImpl.java | 18 +- .../google-cloud-automl/synth.metadata | 10 +- 262 files changed, 113235 insertions(+), 3202 deletions(-) create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpec.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStats.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStatsOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfig.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfig.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequest.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResult.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResultOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestination.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestinationOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySource.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySourceOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntry.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntryOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPoly.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPolyOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStats.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStatsOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpec.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOuterClass.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStats.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStatsOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStats.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOuterClass.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataType.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypeOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypes.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Detection.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Document.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfig.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRange.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRangeOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfig.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequest.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequest.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64Stats.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64StatsOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestination.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestinationOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Geometry.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequest.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequest.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequest.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotation.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotationOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetrics.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetricsOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequest.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponse.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequest.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponse.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfig.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfigOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertex.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertexOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/RangesProto.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/RegressionProto.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Row.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/RowOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStats.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStatsOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStats.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStatsOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructType.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructTypeOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpec.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOuterClass.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Tables.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotation.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotationOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfo.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfoOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Temporal.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtraction.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotation.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotationOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetrics.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetricsOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegment.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentProto.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentProto.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegment.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegmentOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStats.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStatsOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TypeCode.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequest.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequest.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequest.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadata.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadataOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoProto.java create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/column_spec.proto create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_stats.proto create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_types.proto create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/detection.proto create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/geometry.proto create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/ranges.proto create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/regression.proto create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/table_spec.proto create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/tables.proto create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/temporal.proto create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_extraction.proto create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_segment.proto create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_sentiment.proto create mode 100644 google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/video.proto diff --git a/google-api-grpc/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java b/google-api-grpc/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java index 2a7d26d0df26..686f86d3f9b3 100644 --- a/google-api-grpc/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java +++ b/google-api-grpc/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlGrpc.java @@ -18,6 +18,9 @@ * An ID of a resource is the last element of the item's resource name. For * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then * the id for the item is `{dataset_id}`. + * Currently the only supported `location_id` is "us-central1". + * On any input that is documented to expect a string parameter in + * snake_case or kebab-case, either of those cases is accepted. * */ @javax.annotation.Generated( @@ -202,6 +205,63 @@ private AutoMlGrpc() {} return getListDatasetsMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateDatasetMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UpdateDatasetRequest, + com.google.cloud.automl.v1beta1.Dataset> + METHOD_UPDATE_DATASET = getUpdateDatasetMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UpdateDatasetRequest, + com.google.cloud.automl.v1beta1.Dataset> + getUpdateDatasetMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UpdateDatasetRequest, + com.google.cloud.automl.v1beta1.Dataset> + getUpdateDatasetMethod() { + return getUpdateDatasetMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UpdateDatasetRequest, + com.google.cloud.automl.v1beta1.Dataset> + getUpdateDatasetMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UpdateDatasetRequest, + com.google.cloud.automl.v1beta1.Dataset> + getUpdateDatasetMethod; + if ((getUpdateDatasetMethod = AutoMlGrpc.getUpdateDatasetMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getUpdateDatasetMethod = AutoMlGrpc.getUpdateDatasetMethod) == null) { + AutoMlGrpc.getUpdateDatasetMethod = + getUpdateDatasetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.automl.v1beta1.AutoMl", "UpdateDataset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.UpdateDatasetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UpdateDataset")) + .build(); + } + } + } + return getUpdateDatasetMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @java.lang.Deprecated // Use {@link #getDeleteDatasetMethod()} instead. public static final io.grpc.MethodDescriptor< @@ -358,6 +418,407 @@ private AutoMlGrpc() {} return getExportDataMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetAnnotationSpecMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest, + com.google.cloud.automl.v1beta1.AnnotationSpec> + METHOD_GET_ANNOTATION_SPEC = getGetAnnotationSpecMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest, + com.google.cloud.automl.v1beta1.AnnotationSpec> + getGetAnnotationSpecMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest, + com.google.cloud.automl.v1beta1.AnnotationSpec> + getGetAnnotationSpecMethod() { + return getGetAnnotationSpecMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest, + com.google.cloud.automl.v1beta1.AnnotationSpec> + getGetAnnotationSpecMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest, + com.google.cloud.automl.v1beta1.AnnotationSpec> + getGetAnnotationSpecMethod; + if ((getGetAnnotationSpecMethod = AutoMlGrpc.getGetAnnotationSpecMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getGetAnnotationSpecMethod = AutoMlGrpc.getGetAnnotationSpecMethod) == null) { + AutoMlGrpc.getGetAnnotationSpecMethod = + getGetAnnotationSpecMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.automl.v1beta1.AutoMl", "GetAnnotationSpec")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.AnnotationSpec.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetAnnotationSpec")) + .build(); + } + } + } + return getGetAnnotationSpecMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetTableSpecMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetTableSpecRequest, + com.google.cloud.automl.v1beta1.TableSpec> + METHOD_GET_TABLE_SPEC = getGetTableSpecMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetTableSpecRequest, + com.google.cloud.automl.v1beta1.TableSpec> + getGetTableSpecMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetTableSpecRequest, + com.google.cloud.automl.v1beta1.TableSpec> + getGetTableSpecMethod() { + return getGetTableSpecMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetTableSpecRequest, + com.google.cloud.automl.v1beta1.TableSpec> + getGetTableSpecMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetTableSpecRequest, + com.google.cloud.automl.v1beta1.TableSpec> + getGetTableSpecMethod; + if ((getGetTableSpecMethod = AutoMlGrpc.getGetTableSpecMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getGetTableSpecMethod = AutoMlGrpc.getGetTableSpecMethod) == null) { + AutoMlGrpc.getGetTableSpecMethod = + getGetTableSpecMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.automl.v1beta1.AutoMl", "GetTableSpec")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.GetTableSpecRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.TableSpec.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetTableSpec")) + .build(); + } + } + } + return getGetTableSpecMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListTableSpecsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListTableSpecsRequest, + com.google.cloud.automl.v1beta1.ListTableSpecsResponse> + METHOD_LIST_TABLE_SPECS = getListTableSpecsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListTableSpecsRequest, + com.google.cloud.automl.v1beta1.ListTableSpecsResponse> + getListTableSpecsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListTableSpecsRequest, + com.google.cloud.automl.v1beta1.ListTableSpecsResponse> + getListTableSpecsMethod() { + return getListTableSpecsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListTableSpecsRequest, + com.google.cloud.automl.v1beta1.ListTableSpecsResponse> + getListTableSpecsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListTableSpecsRequest, + com.google.cloud.automl.v1beta1.ListTableSpecsResponse> + getListTableSpecsMethod; + if ((getListTableSpecsMethod = AutoMlGrpc.getListTableSpecsMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getListTableSpecsMethod = AutoMlGrpc.getListTableSpecsMethod) == null) { + AutoMlGrpc.getListTableSpecsMethod = + getListTableSpecsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.automl.v1beta1.AutoMl", "ListTableSpecs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ListTableSpecsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ListTableSpecsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListTableSpecs")) + .build(); + } + } + } + return getListTableSpecsMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateTableSpecMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest, + com.google.cloud.automl.v1beta1.TableSpec> + METHOD_UPDATE_TABLE_SPEC = getUpdateTableSpecMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest, + com.google.cloud.automl.v1beta1.TableSpec> + getUpdateTableSpecMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest, + com.google.cloud.automl.v1beta1.TableSpec> + getUpdateTableSpecMethod() { + return getUpdateTableSpecMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest, + com.google.cloud.automl.v1beta1.TableSpec> + getUpdateTableSpecMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest, + com.google.cloud.automl.v1beta1.TableSpec> + getUpdateTableSpecMethod; + if ((getUpdateTableSpecMethod = AutoMlGrpc.getUpdateTableSpecMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getUpdateTableSpecMethod = AutoMlGrpc.getUpdateTableSpecMethod) == null) { + AutoMlGrpc.getUpdateTableSpecMethod = + getUpdateTableSpecMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.automl.v1beta1.AutoMl", "UpdateTableSpec")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.TableSpec.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UpdateTableSpec")) + .build(); + } + } + } + return getUpdateTableSpecMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetColumnSpecMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetColumnSpecRequest, + com.google.cloud.automl.v1beta1.ColumnSpec> + METHOD_GET_COLUMN_SPEC = getGetColumnSpecMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetColumnSpecRequest, + com.google.cloud.automl.v1beta1.ColumnSpec> + getGetColumnSpecMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetColumnSpecRequest, + com.google.cloud.automl.v1beta1.ColumnSpec> + getGetColumnSpecMethod() { + return getGetColumnSpecMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetColumnSpecRequest, + com.google.cloud.automl.v1beta1.ColumnSpec> + getGetColumnSpecMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.GetColumnSpecRequest, + com.google.cloud.automl.v1beta1.ColumnSpec> + getGetColumnSpecMethod; + if ((getGetColumnSpecMethod = AutoMlGrpc.getGetColumnSpecMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getGetColumnSpecMethod = AutoMlGrpc.getGetColumnSpecMethod) == null) { + AutoMlGrpc.getGetColumnSpecMethod = + getGetColumnSpecMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.automl.v1beta1.AutoMl", "GetColumnSpec")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.GetColumnSpecRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("GetColumnSpec")) + .build(); + } + } + } + return getGetColumnSpecMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListColumnSpecsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest, + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse> + METHOD_LIST_COLUMN_SPECS = getListColumnSpecsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest, + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse> + getListColumnSpecsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest, + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse> + getListColumnSpecsMethod() { + return getListColumnSpecsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest, + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse> + getListColumnSpecsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest, + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse> + getListColumnSpecsMethod; + if ((getListColumnSpecsMethod = AutoMlGrpc.getListColumnSpecsMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getListColumnSpecsMethod = AutoMlGrpc.getListColumnSpecsMethod) == null) { + AutoMlGrpc.getListColumnSpecsMethod = + getListColumnSpecsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.automl.v1beta1.AutoMl", "ListColumnSpecs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ListColumnSpecs")) + .build(); + } + } + } + return getListColumnSpecsMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateColumnSpecMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest, + com.google.cloud.automl.v1beta1.ColumnSpec> + METHOD_UPDATE_COLUMN_SPEC = getUpdateColumnSpecMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest, + com.google.cloud.automl.v1beta1.ColumnSpec> + getUpdateColumnSpecMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest, + com.google.cloud.automl.v1beta1.ColumnSpec> + getUpdateColumnSpecMethod() { + return getUpdateColumnSpecMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest, + com.google.cloud.automl.v1beta1.ColumnSpec> + getUpdateColumnSpecMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest, + com.google.cloud.automl.v1beta1.ColumnSpec> + getUpdateColumnSpecMethod; + if ((getUpdateColumnSpecMethod = AutoMlGrpc.getUpdateColumnSpecMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getUpdateColumnSpecMethod = AutoMlGrpc.getUpdateColumnSpecMethod) == null) { + AutoMlGrpc.getUpdateColumnSpecMethod = + getUpdateColumnSpecMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.automl.v1beta1.AutoMl", "UpdateColumnSpec")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UpdateColumnSpec")) + .build(); + } + } + } + return getUpdateColumnSpecMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @java.lang.Deprecated // Use {@link #getCreateModelMethod()} instead. public static final io.grpc.MethodDescriptor< @@ -573,105 +1034,216 @@ private AutoMlGrpc() {} @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @java.lang.Deprecated // Use {@link #getDeployModelMethod()} instead. public static final io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.DeployModelRequest, com.google.longrunning.Operation> - METHOD_DEPLOY_MODEL = getDeployModelMethodHelper(); + com.google.cloud.automl.v1beta1.DeployModelRequest, com.google.longrunning.Operation> + METHOD_DEPLOY_MODEL = getDeployModelMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.DeployModelRequest, com.google.longrunning.Operation> + getDeployModelMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.DeployModelRequest, com.google.longrunning.Operation> + getDeployModelMethod() { + return getDeployModelMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.DeployModelRequest, com.google.longrunning.Operation> + getDeployModelMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.DeployModelRequest, com.google.longrunning.Operation> + getDeployModelMethod; + if ((getDeployModelMethod = AutoMlGrpc.getDeployModelMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getDeployModelMethod = AutoMlGrpc.getDeployModelMethod) == null) { + AutoMlGrpc.getDeployModelMethod = + getDeployModelMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.automl.v1beta1.AutoMl", "DeployModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.DeployModelRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeployModel")) + .build(); + } + } + } + return getDeployModelMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUndeployModelMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UndeployModelRequest, com.google.longrunning.Operation> + METHOD_UNDEPLOY_MODEL = getUndeployModelMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UndeployModelRequest, com.google.longrunning.Operation> + getUndeployModelMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UndeployModelRequest, com.google.longrunning.Operation> + getUndeployModelMethod() { + return getUndeployModelMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UndeployModelRequest, com.google.longrunning.Operation> + getUndeployModelMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.UndeployModelRequest, com.google.longrunning.Operation> + getUndeployModelMethod; + if ((getUndeployModelMethod = AutoMlGrpc.getUndeployModelMethod) == null) { + synchronized (AutoMlGrpc.class) { + if ((getUndeployModelMethod = AutoMlGrpc.getUndeployModelMethod) == null) { + AutoMlGrpc.getUndeployModelMethod = + getUndeployModelMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.automl.v1beta1.AutoMl", "UndeployModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.UndeployModelRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UndeployModel")) + .build(); + } + } + } + return getUndeployModelMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getExportModelMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.ExportModelRequest, com.google.longrunning.Operation> + METHOD_EXPORT_MODEL = getExportModelMethodHelper(); private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.DeployModelRequest, com.google.longrunning.Operation> - getDeployModelMethod; + com.google.cloud.automl.v1beta1.ExportModelRequest, com.google.longrunning.Operation> + getExportModelMethod; @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.DeployModelRequest, com.google.longrunning.Operation> - getDeployModelMethod() { - return getDeployModelMethodHelper(); + com.google.cloud.automl.v1beta1.ExportModelRequest, com.google.longrunning.Operation> + getExportModelMethod() { + return getExportModelMethodHelper(); } private static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.DeployModelRequest, com.google.longrunning.Operation> - getDeployModelMethodHelper() { + com.google.cloud.automl.v1beta1.ExportModelRequest, com.google.longrunning.Operation> + getExportModelMethodHelper() { io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.DeployModelRequest, com.google.longrunning.Operation> - getDeployModelMethod; - if ((getDeployModelMethod = AutoMlGrpc.getDeployModelMethod) == null) { + com.google.cloud.automl.v1beta1.ExportModelRequest, com.google.longrunning.Operation> + getExportModelMethod; + if ((getExportModelMethod = AutoMlGrpc.getExportModelMethod) == null) { synchronized (AutoMlGrpc.class) { - if ((getDeployModelMethod = AutoMlGrpc.getDeployModelMethod) == null) { - AutoMlGrpc.getDeployModelMethod = - getDeployModelMethod = + if ((getExportModelMethod = AutoMlGrpc.getExportModelMethod) == null) { + AutoMlGrpc.getExportModelMethod = + getExportModelMethod = io.grpc.MethodDescriptor - . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName( - "google.cloud.automl.v1beta1.AutoMl", "DeployModel")) + "google.cloud.automl.v1beta1.AutoMl", "ExportModel")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.DeployModelRequest + com.google.cloud.automl.v1beta1.ExportModelRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("DeployModel")) + .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("ExportModel")) .build(); } } } - return getDeployModelMethod; + return getExportModelMethod; } @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getUndeployModelMethod()} instead. + @java.lang.Deprecated // Use {@link #getExportEvaluatedExamplesMethod()} instead. public static final io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.UndeployModelRequest, com.google.longrunning.Operation> - METHOD_UNDEPLOY_MODEL = getUndeployModelMethodHelper(); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, + com.google.longrunning.Operation> + METHOD_EXPORT_EVALUATED_EXAMPLES = getExportEvaluatedExamplesMethodHelper(); private static volatile io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.UndeployModelRequest, com.google.longrunning.Operation> - getUndeployModelMethod; + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, + com.google.longrunning.Operation> + getExportEvaluatedExamplesMethod; @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.UndeployModelRequest, com.google.longrunning.Operation> - getUndeployModelMethod() { - return getUndeployModelMethodHelper(); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, + com.google.longrunning.Operation> + getExportEvaluatedExamplesMethod() { + return getExportEvaluatedExamplesMethodHelper(); } private static io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.UndeployModelRequest, com.google.longrunning.Operation> - getUndeployModelMethodHelper() { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, + com.google.longrunning.Operation> + getExportEvaluatedExamplesMethodHelper() { io.grpc.MethodDescriptor< - com.google.cloud.automl.v1beta1.UndeployModelRequest, com.google.longrunning.Operation> - getUndeployModelMethod; - if ((getUndeployModelMethod = AutoMlGrpc.getUndeployModelMethod) == null) { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, + com.google.longrunning.Operation> + getExportEvaluatedExamplesMethod; + if ((getExportEvaluatedExamplesMethod = AutoMlGrpc.getExportEvaluatedExamplesMethod) == null) { synchronized (AutoMlGrpc.class) { - if ((getUndeployModelMethod = AutoMlGrpc.getUndeployModelMethod) == null) { - AutoMlGrpc.getUndeployModelMethod = - getUndeployModelMethod = + if ((getExportEvaluatedExamplesMethod = AutoMlGrpc.getExportEvaluatedExamplesMethod) + == null) { + AutoMlGrpc.getExportEvaluatedExamplesMethod = + getExportEvaluatedExamplesMethod = io.grpc.MethodDescriptor - . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName( - "google.cloud.automl.v1beta1.AutoMl", "UndeployModel")) + "google.cloud.automl.v1beta1.AutoMl", "ExportEvaluatedExamples")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.automl.v1beta1.UndeployModelRequest + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new AutoMlMethodDescriptorSupplier("UndeployModel")) + .setSchemaDescriptor( + new AutoMlMethodDescriptorSupplier("ExportEvaluatedExamples")) .build(); } } } - return getUndeployModelMethod; + return getExportEvaluatedExamplesMethod; } @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @@ -818,6 +1390,9 @@ public static AutoMlFutureStub newFutureStub(io.grpc.Channel channel) { * An ID of a resource is the last element of the item's resource name. For * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then * the id for the item is `{dataset_id}`. + * Currently the only supported `location_id` is "us-central1". + * On any input that is documented to expect a string parameter in + * snake_case or kebab-case, either of those cases is accepted. * */ public abstract static class AutoMlImplBase implements io.grpc.BindableService { @@ -862,6 +1437,19 @@ public void listDatasets( asyncUnimplementedUnaryCall(getListDatasetsMethodHelper(), responseObserver); } + /** + * + * + *
+     * Updates a dataset.
+     * 
+ */ + public void updateDataset( + com.google.cloud.automl.v1beta1.UpdateDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateDatasetMethodHelper(), responseObserver); + } + /** * * @@ -883,7 +1471,11 @@ public void deleteDataset( * * *
-     * Imports data into a dataset.
+     * Imports data into a dataset. For Tables this method can only be called on an empty Dataset.
+     * For Tables:
+     * *   A
+     * [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params]
+     *     parameter must be explicitly set.
      * Returns an empty response in the
      * [response][google.longrunning.Operation.response] field when it completes.
      * 
@@ -898,7 +1490,7 @@ public void importData( * * *
-     * Exports dataset's data to a Google Cloud Storage bucket.
+     * Exports dataset's data to the provided output location.
      * Returns an empty response in the
      * [response][google.longrunning.Operation.response] field when it completes.
      * 
@@ -909,6 +1501,100 @@ public void exportData( asyncUnimplementedUnaryCall(getExportDataMethodHelper(), responseObserver); } + /** + * + * + *
+     * Gets an annotation spec.
+     * 
+ */ + public void getAnnotationSpec( + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getGetAnnotationSpecMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Gets a table spec.
+     * 
+ */ + public void getTableSpec( + com.google.cloud.automl.v1beta1.GetTableSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetTableSpecMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Lists table specs in a dataset.
+     * 
+ */ + public void listTableSpecs( + com.google.cloud.automl.v1beta1.ListTableSpecsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getListTableSpecsMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Updates a table spec.
+     * 
+ */ + public void updateTableSpec( + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateTableSpecMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Gets a column spec.
+     * 
+ */ + public void getColumnSpec( + com.google.cloud.automl.v1beta1.GetColumnSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetColumnSpecMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Lists column specs in a table spec.
+     * 
+ */ + public void listColumnSpecs( + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getListColumnSpecsMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Updates a column spec.
+     * 
+ */ + public void updateColumnSpec( + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateColumnSpecMethodHelper(), responseObserver); + } + /** * * @@ -958,9 +1644,6 @@ public void listModels( * *
      * Deletes a model.
-     * If a model is already deployed, this only deletes the model in AutoML BE,
-     * and does not change the status of the deployed model in the production
-     * environment.
      * Returns `google.protobuf.Empty` in the
      * [response][google.longrunning.Operation.response] field when it completes,
      * and `delete_details` in the
@@ -977,8 +1660,14 @@ public void deleteModel(
      *
      *
      * 
-     * Deploys model.
-     * Returns a [DeployModelResponse][] in the
+     * Deploys a model. If a model is already deployed, deploying it with the
+     * same parameters has no effect. Deploying with different parametrs
+     * (as e.g. changing
+     * [node_number][google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.node_number]
+     * ) will update the deployment without pausing the model's availability.
+     * Only applicable for Text Classification, Image Object Detection and Tables;
+     * all other domains manage deployment automatically.
+     * Returns an empty response in the
      * [response][google.longrunning.Operation.response] field when it completes.
      * 
*/ @@ -992,8 +1681,10 @@ public void deployModel( * * *
-     * Undeploys model.
-     * Returns an `UndeployModelResponse` in the
+     * Undeploys a model. If the model is not deployed this method has no effect.
+     * Only applicable for Text Classification, Image Object Detection and Tables;
+     * all other domains manage deployment automatically.
+     * Returns an empty response in the
      * [response][google.longrunning.Operation.response] field when it completes.
      * 
*/ @@ -1003,6 +1694,47 @@ public void undeployModel( asyncUnimplementedUnaryCall(getUndeployModelMethodHelper(), responseObserver); } + /** + * + * + *
+     * Exports a trained, "export-able", model to a user specified Google Cloud
+     * Storage location. A model is considered export-able if and only if it has
+     * an export format defined for it in
+     * [ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig].
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void exportModel( + com.google.cloud.automl.v1beta1.ExportModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getExportModelMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Exports examples on which the model was evaluated (i.e. which were in the
+     * TEST set of the dataset the model was created from), together with their
+     * ground truth annotations and the annotations created (predicted) by the
+     * model.
+     * The examples, ground truth and predictions are exported in the state
+     * they were at the moment the model was evaluated.
+     * This export is available only for 30 days since the model evaluation is
+     * created.
+     * Currently only available for Tables.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void exportEvaluatedExamples( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getExportEvaluatedExamplesMethodHelper(), responseObserver); + } + /** * * @@ -1053,6 +1785,12 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.cloud.automl.v1beta1.ListDatasetsRequest, com.google.cloud.automl.v1beta1.ListDatasetsResponse>( this, METHODID_LIST_DATASETS))) + .addMethod( + getUpdateDatasetMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.UpdateDatasetRequest, + com.google.cloud.automl.v1beta1.Dataset>(this, METHODID_UPDATE_DATASET))) .addMethod( getDeleteDatasetMethodHelper(), asyncUnaryCall( @@ -1071,6 +1809,52 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.automl.v1beta1.ExportDataRequest, com.google.longrunning.Operation>(this, METHODID_EXPORT_DATA))) + .addMethod( + getGetAnnotationSpecMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest, + com.google.cloud.automl.v1beta1.AnnotationSpec>( + this, METHODID_GET_ANNOTATION_SPEC))) + .addMethod( + getGetTableSpecMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.GetTableSpecRequest, + com.google.cloud.automl.v1beta1.TableSpec>(this, METHODID_GET_TABLE_SPEC))) + .addMethod( + getListTableSpecsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.ListTableSpecsRequest, + com.google.cloud.automl.v1beta1.ListTableSpecsResponse>( + this, METHODID_LIST_TABLE_SPECS))) + .addMethod( + getUpdateTableSpecMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest, + com.google.cloud.automl.v1beta1.TableSpec>(this, METHODID_UPDATE_TABLE_SPEC))) + .addMethod( + getGetColumnSpecMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.GetColumnSpecRequest, + com.google.cloud.automl.v1beta1.ColumnSpec>(this, METHODID_GET_COLUMN_SPEC))) + .addMethod( + getListColumnSpecsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest, + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse>( + this, METHODID_LIST_COLUMN_SPECS))) + .addMethod( + getUpdateColumnSpecMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest, + com.google.cloud.automl.v1beta1.ColumnSpec>( + this, METHODID_UPDATE_COLUMN_SPEC))) .addMethod( getCreateModelMethodHelper(), asyncUnaryCall( @@ -1108,6 +1892,18 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.automl.v1beta1.UndeployModelRequest, com.google.longrunning.Operation>(this, METHODID_UNDEPLOY_MODEL))) + .addMethod( + getExportModelMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.ExportModelRequest, + com.google.longrunning.Operation>(this, METHODID_EXPORT_MODEL))) + .addMethod( + getExportEvaluatedExamplesMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest, + com.google.longrunning.Operation>(this, METHODID_EXPORT_EVALUATED_EXAMPLES))) .addMethod( getGetModelEvaluationMethodHelper(), asyncUnaryCall( @@ -1137,6 +1933,9 @@ public final io.grpc.ServerServiceDefinition bindService() { * An ID of a resource is the last element of the item's resource name. For * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then * the id for the item is `{dataset_id}`. + * Currently the only supported `location_id` is "us-central1". + * On any input that is documented to expect a string parameter in + * snake_case or kebab-case, either of those cases is accepted. *
*/ public static final class AutoMlStub extends io.grpc.stub.AbstractStub { @@ -1202,6 +2001,22 @@ public void listDatasets( responseObserver); } + /** + * + * + *
+     * Updates a dataset.
+     * 
+ */ + public void updateDataset( + com.google.cloud.automl.v1beta1.UpdateDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateDatasetMethodHelper(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1226,7 +2041,11 @@ public void deleteDataset( * * *
-     * Imports data into a dataset.
+     * Imports data into a dataset. For Tables this method can only be called on an empty Dataset.
+     * For Tables:
+     * *   A
+     * [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params]
+     *     parameter must be explicitly set.
      * Returns an empty response in the
      * [response][google.longrunning.Operation.response] field when it completes.
      * 
@@ -1244,7 +2063,7 @@ public void importData( * * *
-     * Exports dataset's data to a Google Cloud Storage bucket.
+     * Exports dataset's data to the provided output location.
      * Returns an empty response in the
      * [response][google.longrunning.Operation.response] field when it completes.
      * 
@@ -1253,7 +2072,122 @@ public void exportData( com.google.cloud.automl.v1beta1.ExportDataRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getExportDataMethodHelper(), getCallOptions()), + getChannel().newCall(getExportDataMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets an annotation spec.
+     * 
+ */ + public void getAnnotationSpec( + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetAnnotationSpecMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a table spec.
+     * 
+ */ + public void getTableSpec( + com.google.cloud.automl.v1beta1.GetTableSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetTableSpecMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists table specs in a dataset.
+     * 
+ */ + public void listTableSpecs( + com.google.cloud.automl.v1beta1.ListTableSpecsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListTableSpecsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a table spec.
+     * 
+ */ + public void updateTableSpec( + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateTableSpecMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a column spec.
+     * 
+ */ + public void getColumnSpec( + com.google.cloud.automl.v1beta1.GetColumnSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetColumnSpecMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists column specs in a table spec.
+     * 
+ */ + public void listColumnSpecs( + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListColumnSpecsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a column spec.
+     * 
+ */ + public void updateColumnSpec( + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateColumnSpecMethodHelper(), getCallOptions()), request, responseObserver); } @@ -1316,9 +2250,6 @@ public void listModels( * *
      * Deletes a model.
-     * If a model is already deployed, this only deletes the model in AutoML BE,
-     * and does not change the status of the deployed model in the production
-     * environment.
      * Returns `google.protobuf.Empty` in the
      * [response][google.longrunning.Operation.response] field when it completes,
      * and `delete_details` in the
@@ -1338,8 +2269,14 @@ public void deleteModel(
      *
      *
      * 
-     * Deploys model.
-     * Returns a [DeployModelResponse][] in the
+     * Deploys a model. If a model is already deployed, deploying it with the
+     * same parameters has no effect. Deploying with different parametrs
+     * (as e.g. changing
+     * [node_number][google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.node_number]
+     * ) will update the deployment without pausing the model's availability.
+     * Only applicable for Text Classification, Image Object Detection and Tables;
+     * all other domains manage deployment automatically.
+     * Returns an empty response in the
      * [response][google.longrunning.Operation.response] field when it completes.
      * 
*/ @@ -1356,8 +2293,10 @@ public void deployModel( * * *
-     * Undeploys model.
-     * Returns an `UndeployModelResponse` in the
+     * Undeploys a model. If the model is not deployed this method has no effect.
+     * Only applicable for Text Classification, Image Object Detection and Tables;
+     * all other domains manage deployment automatically.
+     * Returns an empty response in the
      * [response][google.longrunning.Operation.response] field when it completes.
      * 
*/ @@ -1370,6 +2309,53 @@ public void undeployModel( responseObserver); } + /** + * + * + *
+     * Exports a trained, "export-able", model to a user specified Google Cloud
+     * Storage location. A model is considered export-able if and only if it has
+     * an export format defined for it in
+     * [ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig].
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void exportModel( + com.google.cloud.automl.v1beta1.ExportModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getExportModelMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Exports examples on which the model was evaluated (i.e. which were in the
+     * TEST set of the dataset the model was created from), together with their
+     * ground truth annotations and the annotations created (predicted) by the
+     * model.
+     * The examples, ground truth and predictions are exported in the state
+     * they were at the moment the model was evaluated.
+     * This export is available only for 30 days since the model evaluation is
+     * created.
+     * Currently only available for Tables.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public void exportEvaluatedExamples( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getExportEvaluatedExamplesMethodHelper(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1416,6 +2402,9 @@ public void listModelEvaluations( * An ID of a resource is the last element of the item's resource name. For * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then * the id for the item is `{dataset_id}`. + * Currently the only supported `location_id` is "us-central1". + * On any input that is documented to expect a string parameter in + * snake_case or kebab-case, either of those cases is accepted. *
*/ public static final class AutoMlBlockingStub @@ -1472,6 +2461,19 @@ public com.google.cloud.automl.v1beta1.ListDatasetsResponse listDatasets( getChannel(), getListDatasetsMethodHelper(), getCallOptions(), request); } + /** + * + * + *
+     * Updates a dataset.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.Dataset updateDataset( + com.google.cloud.automl.v1beta1.UpdateDatasetRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateDatasetMethodHelper(), getCallOptions(), request); + } + /** * * @@ -1493,7 +2495,11 @@ public com.google.longrunning.Operation deleteDataset( * * *
-     * Imports data into a dataset.
+     * Imports data into a dataset. For Tables this method can only be called on an empty Dataset.
+     * For Tables:
+     * *   A
+     * [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params]
+     *     parameter must be explicitly set.
      * Returns an empty response in the
      * [response][google.longrunning.Operation.response] field when it completes.
      * 
@@ -1508,7 +2514,7 @@ public com.google.longrunning.Operation importData( * * *
-     * Exports dataset's data to a Google Cloud Storage bucket.
+     * Exports dataset's data to the provided output location.
      * Returns an empty response in the
      * [response][google.longrunning.Operation.response] field when it completes.
      * 
@@ -1519,6 +2525,97 @@ public com.google.longrunning.Operation exportData( getChannel(), getExportDataMethodHelper(), getCallOptions(), request); } + /** + * + * + *
+     * Gets an annotation spec.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.AnnotationSpec getAnnotationSpec( + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request) { + return blockingUnaryCall( + getChannel(), getGetAnnotationSpecMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a table spec.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.TableSpec getTableSpec( + com.google.cloud.automl.v1beta1.GetTableSpecRequest request) { + return blockingUnaryCall( + getChannel(), getGetTableSpecMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists table specs in a dataset.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.ListTableSpecsResponse listTableSpecs( + com.google.cloud.automl.v1beta1.ListTableSpecsRequest request) { + return blockingUnaryCall( + getChannel(), getListTableSpecsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a table spec.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.TableSpec updateTableSpec( + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateTableSpecMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a column spec.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpec( + com.google.cloud.automl.v1beta1.GetColumnSpecRequest request) { + return blockingUnaryCall( + getChannel(), getGetColumnSpecMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists column specs in a table spec.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.ListColumnSpecsResponse listColumnSpecs( + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request) { + return blockingUnaryCall( + getChannel(), getListColumnSpecsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a column spec.
+     * 
+ */ + public com.google.cloud.automl.v1beta1.ColumnSpec updateColumnSpec( + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateColumnSpecMethodHelper(), getCallOptions(), request); + } + /** * * @@ -1566,9 +2663,6 @@ public com.google.cloud.automl.v1beta1.ListModelsResponse listModels( * *
      * Deletes a model.
-     * If a model is already deployed, this only deletes the model in AutoML BE,
-     * and does not change the status of the deployed model in the production
-     * environment.
      * Returns `google.protobuf.Empty` in the
      * [response][google.longrunning.Operation.response] field when it completes,
      * and `delete_details` in the
@@ -1585,8 +2679,14 @@ public com.google.longrunning.Operation deleteModel(
      *
      *
      * 
-     * Deploys model.
-     * Returns a [DeployModelResponse][] in the
+     * Deploys a model. If a model is already deployed, deploying it with the
+     * same parameters has no effect. Deploying with different parametrs
+     * (as e.g. changing
+     * [node_number][google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.node_number]
+     * ) will update the deployment without pausing the model's availability.
+     * Only applicable for Text Classification, Image Object Detection and Tables;
+     * all other domains manage deployment automatically.
+     * Returns an empty response in the
      * [response][google.longrunning.Operation.response] field when it completes.
      * 
*/ @@ -1600,8 +2700,10 @@ public com.google.longrunning.Operation deployModel( * * *
-     * Undeploys model.
-     * Returns an `UndeployModelResponse` in the
+     * Undeploys a model. If the model is not deployed this method has no effect.
+     * Only applicable for Text Classification, Image Object Detection and Tables;
+     * all other domains manage deployment automatically.
+     * Returns an empty response in the
      * [response][google.longrunning.Operation.response] field when it completes.
      * 
*/ @@ -1611,6 +2713,47 @@ public com.google.longrunning.Operation undeployModel( getChannel(), getUndeployModelMethodHelper(), getCallOptions(), request); } + /** + * + * + *
+     * Exports a trained, "export-able", model to a user specified Google Cloud
+     * Storage location. A model is considered export-able if and only if it has
+     * an export format defined for it in
+     * [ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig].
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.longrunning.Operation exportModel( + com.google.cloud.automl.v1beta1.ExportModelRequest request) { + return blockingUnaryCall( + getChannel(), getExportModelMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Exports examples on which the model was evaluated (i.e. which were in the
+     * TEST set of the dataset the model was created from), together with their
+     * ground truth annotations and the annotations created (predicted) by the
+     * model.
+     * The examples, ground truth and predictions are exported in the state
+     * they were at the moment the model was evaluated.
+     * This export is available only for 30 days since the model evaluation is
+     * created.
+     * Currently only available for Tables.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.longrunning.Operation exportEvaluatedExamples( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest request) { + return blockingUnaryCall( + getChannel(), getExportEvaluatedExamplesMethodHelper(), getCallOptions(), request); + } + /** * * @@ -1649,6 +2792,9 @@ public com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse listModelEva * An ID of a resource is the last element of the item's resource name. For * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then * the id for the item is `{dataset_id}`. + * Currently the only supported `location_id` is "us-central1". + * On any input that is documented to expect a string parameter in + * snake_case or kebab-case, either of those cases is accepted. *
*/ public static final class AutoMlFutureStub extends io.grpc.stub.AbstractStub { @@ -1707,6 +2853,20 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca getChannel().newCall(getListDatasetsMethodHelper(), getCallOptions()), request); } + /** + * + * + *
+     * Updates a dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.automl.v1beta1.Dataset> + updateDataset(com.google.cloud.automl.v1beta1.UpdateDatasetRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateDatasetMethodHelper(), getCallOptions()), request); + } + /** * * @@ -1728,7 +2888,11 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
-     * Imports data into a dataset.
+     * Imports data into a dataset. For Tables this method can only be called on an empty Dataset.
+     * For Tables:
+     * *   A
+     * [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params]
+     *     parameter must be explicitly set.
      * Returns an empty response in the
      * [response][google.longrunning.Operation.response] field when it completes.
      * 
@@ -1743,7 +2907,7 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
-     * Exports dataset's data to a Google Cloud Storage bucket.
+     * Exports dataset's data to the provided output location.
      * Returns an empty response in the
      * [response][google.longrunning.Operation.response] field when it completes.
      * 
@@ -1754,6 +2918,104 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca getChannel().newCall(getExportDataMethodHelper(), getCallOptions()), request); } + /** + * + * + *
+     * Gets an annotation spec.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.automl.v1beta1.AnnotationSpec> + getAnnotationSpec(com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetAnnotationSpecMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a table spec.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.automl.v1beta1.TableSpec> + getTableSpec(com.google.cloud.automl.v1beta1.GetTableSpecRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetTableSpecMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists table specs in a dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.automl.v1beta1.ListTableSpecsResponse> + listTableSpecs(com.google.cloud.automl.v1beta1.ListTableSpecsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListTableSpecsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a table spec.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.automl.v1beta1.TableSpec> + updateTableSpec(com.google.cloud.automl.v1beta1.UpdateTableSpecRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateTableSpecMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a column spec.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.automl.v1beta1.ColumnSpec> + getColumnSpec(com.google.cloud.automl.v1beta1.GetColumnSpecRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetColumnSpecMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists column specs in a table spec.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse> + listColumnSpecs(com.google.cloud.automl.v1beta1.ListColumnSpecsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListColumnSpecsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a column spec.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.automl.v1beta1.ColumnSpec> + updateColumnSpec(com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateColumnSpecMethodHelper(), getCallOptions()), request); + } + /** * * @@ -1803,9 +3065,6 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * *
      * Deletes a model.
-     * If a model is already deployed, this only deletes the model in AutoML BE,
-     * and does not change the status of the deployed model in the production
-     * environment.
      * Returns `google.protobuf.Empty` in the
      * [response][google.longrunning.Operation.response] field when it completes,
      * and `delete_details` in the
@@ -1822,8 +3081,14 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca
      *
      *
      * 
-     * Deploys model.
-     * Returns a [DeployModelResponse][] in the
+     * Deploys a model. If a model is already deployed, deploying it with the
+     * same parameters has no effect. Deploying with different parametrs
+     * (as e.g. changing
+     * [node_number][google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.node_number]
+     * ) will update the deployment without pausing the model's availability.
+     * Only applicable for Text Classification, Image Object Detection and Tables;
+     * all other domains manage deployment automatically.
+     * Returns an empty response in the
      * [response][google.longrunning.Operation.response] field when it completes.
      * 
*/ @@ -1837,8 +3102,10 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
-     * Undeploys model.
-     * Returns an `UndeployModelResponse` in the
+     * Undeploys a model. If the model is not deployed this method has no effect.
+     * Only applicable for Text Classification, Image Object Detection and Tables;
+     * all other domains manage deployment automatically.
+     * Returns an empty response in the
      * [response][google.longrunning.Operation.response] field when it completes.
      * 
*/ @@ -1848,6 +3115,49 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca getChannel().newCall(getUndeployModelMethodHelper(), getCallOptions()), request); } + /** + * + * + *
+     * Exports a trained, "export-able", model to a user specified Google Cloud
+     * Storage location. A model is considered export-able if and only if it has
+     * an export format defined for it in
+     * [ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig].
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + exportModel(com.google.cloud.automl.v1beta1.ExportModelRequest request) { + return futureUnaryCall( + getChannel().newCall(getExportModelMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Exports examples on which the model was evaluated (i.e. which were in the
+     * TEST set of the dataset the model was created from), together with their
+     * ground truth annotations and the annotations created (predicted) by the
+     * model.
+     * The examples, ground truth and predictions are exported in the state
+     * they were at the moment the model was evaluated.
+     * This export is available only for 30 days since the model evaluation is
+     * created.
+     * Currently only available for Tables.
+     * Returns an empty response in the
+     * [response][google.longrunning.Operation.response] field when it completes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + exportEvaluatedExamples( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest request) { + return futureUnaryCall( + getChannel().newCall(getExportEvaluatedExamplesMethodHelper(), getCallOptions()), + request); + } + /** * * @@ -1880,17 +3190,27 @@ protected AutoMlFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca private static final int METHODID_CREATE_DATASET = 0; private static final int METHODID_GET_DATASET = 1; private static final int METHODID_LIST_DATASETS = 2; - private static final int METHODID_DELETE_DATASET = 3; - private static final int METHODID_IMPORT_DATA = 4; - private static final int METHODID_EXPORT_DATA = 5; - private static final int METHODID_CREATE_MODEL = 6; - private static final int METHODID_GET_MODEL = 7; - private static final int METHODID_LIST_MODELS = 8; - private static final int METHODID_DELETE_MODEL = 9; - private static final int METHODID_DEPLOY_MODEL = 10; - private static final int METHODID_UNDEPLOY_MODEL = 11; - private static final int METHODID_GET_MODEL_EVALUATION = 12; - private static final int METHODID_LIST_MODEL_EVALUATIONS = 13; + private static final int METHODID_UPDATE_DATASET = 3; + private static final int METHODID_DELETE_DATASET = 4; + private static final int METHODID_IMPORT_DATA = 5; + private static final int METHODID_EXPORT_DATA = 6; + private static final int METHODID_GET_ANNOTATION_SPEC = 7; + private static final int METHODID_GET_TABLE_SPEC = 8; + private static final int METHODID_LIST_TABLE_SPECS = 9; + private static final int METHODID_UPDATE_TABLE_SPEC = 10; + private static final int METHODID_GET_COLUMN_SPEC = 11; + private static final int METHODID_LIST_COLUMN_SPECS = 12; + private static final int METHODID_UPDATE_COLUMN_SPEC = 13; + private static final int METHODID_CREATE_MODEL = 14; + private static final int METHODID_GET_MODEL = 15; + private static final int METHODID_LIST_MODELS = 16; + private static final int METHODID_DELETE_MODEL = 17; + private static final int METHODID_DEPLOY_MODEL = 18; + private static final int METHODID_UNDEPLOY_MODEL = 19; + private static final int METHODID_EXPORT_MODEL = 20; + private static final int METHODID_EXPORT_EVALUATED_EXAMPLES = 21; + private static final int METHODID_GET_MODEL_EVALUATION = 22; + private static final int METHODID_LIST_MODEL_EVALUATIONS = 23; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1927,6 +3247,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_DATASET: + serviceImpl.updateDataset( + (com.google.cloud.automl.v1beta1.UpdateDatasetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_DELETE_DATASET: serviceImpl.deleteDataset( (com.google.cloud.automl.v1beta1.DeleteDatasetRequest) request, @@ -1942,6 +3268,48 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.automl.v1beta1.ExportDataRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_ANNOTATION_SPEC: + serviceImpl.getAnnotationSpec( + (com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_TABLE_SPEC: + serviceImpl.getTableSpec( + (com.google.cloud.automl.v1beta1.GetTableSpecRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_TABLE_SPECS: + serviceImpl.listTableSpecs( + (com.google.cloud.automl.v1beta1.ListTableSpecsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_TABLE_SPEC: + serviceImpl.updateTableSpec( + (com.google.cloud.automl.v1beta1.UpdateTableSpecRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_COLUMN_SPEC: + serviceImpl.getColumnSpec( + (com.google.cloud.automl.v1beta1.GetColumnSpecRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_COLUMN_SPECS: + serviceImpl.listColumnSpecs( + (com.google.cloud.automl.v1beta1.ListColumnSpecsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_COLUMN_SPEC: + serviceImpl.updateColumnSpec( + (com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_CREATE_MODEL: serviceImpl.createModel( (com.google.cloud.automl.v1beta1.CreateModelRequest) request, @@ -1974,6 +3342,16 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.automl.v1beta1.UndeployModelRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_EXPORT_MODEL: + serviceImpl.exportModel( + (com.google.cloud.automl.v1beta1.ExportModelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_EXPORT_EVALUATED_EXAMPLES: + serviceImpl.exportEvaluatedExamples( + (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_GET_MODEL_EVALUATION: serviceImpl.getModelEvaluation( (com.google.cloud.automl.v1beta1.GetModelEvaluationRequest) request, @@ -2052,15 +3430,25 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateDatasetMethodHelper()) .addMethod(getGetDatasetMethodHelper()) .addMethod(getListDatasetsMethodHelper()) + .addMethod(getUpdateDatasetMethodHelper()) .addMethod(getDeleteDatasetMethodHelper()) .addMethod(getImportDataMethodHelper()) .addMethod(getExportDataMethodHelper()) + .addMethod(getGetAnnotationSpecMethodHelper()) + .addMethod(getGetTableSpecMethodHelper()) + .addMethod(getListTableSpecsMethodHelper()) + .addMethod(getUpdateTableSpecMethodHelper()) + .addMethod(getGetColumnSpecMethodHelper()) + .addMethod(getListColumnSpecsMethodHelper()) + .addMethod(getUpdateColumnSpecMethodHelper()) .addMethod(getCreateModelMethodHelper()) .addMethod(getGetModelMethodHelper()) .addMethod(getListModelsMethodHelper()) .addMethod(getDeleteModelMethodHelper()) .addMethod(getDeployModelMethodHelper()) .addMethod(getUndeployModelMethodHelper()) + .addMethod(getExportModelMethodHelper()) + .addMethod(getExportEvaluatedExamplesMethodHelper()) .addMethod(getGetModelEvaluationMethodHelper()) .addMethod(getListModelEvaluationsMethodHelper()) .build(); diff --git a/google-api-grpc/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java b/google-api-grpc/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java index 3e98dce72a0c..bac1f7815ba8 100644 --- a/google-api-grpc/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java +++ b/google-api-grpc/grpc-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceGrpc.java @@ -12,6 +12,8 @@ * *
  * AutoML Prediction API.
+ * On any input that is documented to expect a string parameter in
+ * snake_case or kebab-case, either of those cases is accepted.
  * 
*/ @javax.annotation.Generated( @@ -80,6 +82,59 @@ private PredictionServiceGrpc() {} return getPredictMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getBatchPredictMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.BatchPredictRequest, com.google.longrunning.Operation> + METHOD_BATCH_PREDICT = getBatchPredictMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.BatchPredictRequest, com.google.longrunning.Operation> + getBatchPredictMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.BatchPredictRequest, com.google.longrunning.Operation> + getBatchPredictMethod() { + return getBatchPredictMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.BatchPredictRequest, com.google.longrunning.Operation> + getBatchPredictMethodHelper() { + io.grpc.MethodDescriptor< + com.google.cloud.automl.v1beta1.BatchPredictRequest, com.google.longrunning.Operation> + getBatchPredictMethod; + if ((getBatchPredictMethod = PredictionServiceGrpc.getBatchPredictMethod) == null) { + synchronized (PredictionServiceGrpc.class) { + if ((getBatchPredictMethod = PredictionServiceGrpc.getBatchPredictMethod) == null) { + PredictionServiceGrpc.getBatchPredictMethod = + getBatchPredictMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.cloud.automl.v1beta1.PredictionService", "BatchPredict")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.automl.v1beta1.BatchPredictRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new PredictionServiceMethodDescriptorSupplier("BatchPredict")) + .build(); + } + } + } + return getBatchPredictMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static PredictionServiceStub newStub(io.grpc.Channel channel) { return new PredictionServiceStub(channel); @@ -102,6 +157,8 @@ public static PredictionServiceFutureStub newFutureStub(io.grpc.Channel channel) * *
    * AutoML Prediction API.
+   * On any input that is documented to expect a string parameter in
+   * snake_case or kebab-case, either of those cases is accepted.
    * 
*/ public abstract static class PredictionServiceImplBase implements io.grpc.BindableService { @@ -110,7 +167,21 @@ public abstract static class PredictionServiceImplBase implements io.grpc.Bindab * * *
-     * Perform a prediction.
+     * Perform an online prediction. The prediction result will be directly
+     * returned in the response.
+     * Available for following ML problems, and their expected request payloads:
+     * * Image Classification - Image in .JPEG, .GIF or .PNG format, image_bytes
+     *                          up to 30MB.
+     * * Image Object Detection - Image in .JPEG, .GIF or .PNG format, image_bytes
+     *                            up to 30MB.
+     * * Text Classification - TextSnippet, content up to 10,000 characters,
+     *                         UTF-8 encoded.
+     * * Text Extraction - TextSnippet, content up to 30,000 characters,
+     *                     UTF-8 NFC encoded. * Translation - TextSnippet, content up to 25,000 characters, UTF-8
+     *                 encoded.
+     * * Tables - Row, with column values matching the columns of the model,
+     *            up to 5MB.
+     * * Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded.
      * 
*/ public void predict( @@ -120,6 +191,28 @@ public void predict( asyncUnimplementedUnaryCall(getPredictMethodHelper(), responseObserver); } + /** + * + * + *
+     * Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1beta1.PredictionService.Predict], batch
+     * prediction result won't be immediately available in the response. Instead,
+     * a long running operation object is returned. User can poll the operation
+     * result via [GetOperation][google.longrunning.Operations.GetOperation]
+     * method. Once the operation is done, [BatchPredictResult][google.cloud.automl.v1beta1.BatchPredictResult] is returned in
+     * the [response][google.longrunning.Operation.response] field.
+     * Available for following ML problems:
+     * * Video Classification
+     * * Text Extraction
+     * * Tables
+     * 
+ */ + public void batchPredict( + com.google.cloud.automl.v1beta1.BatchPredictRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getBatchPredictMethodHelper(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -129,6 +222,12 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.automl.v1beta1.PredictRequest, com.google.cloud.automl.v1beta1.PredictResponse>(this, METHODID_PREDICT))) + .addMethod( + getBatchPredictMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.automl.v1beta1.BatchPredictRequest, + com.google.longrunning.Operation>(this, METHODID_BATCH_PREDICT))) .build(); } } @@ -138,6 +237,8 @@ public final io.grpc.ServerServiceDefinition bindService() { * *
    * AutoML Prediction API.
+   * On any input that is documented to expect a string parameter in
+   * snake_case or kebab-case, either of those cases is accepted.
    * 
*/ public static final class PredictionServiceStub @@ -160,7 +261,21 @@ protected PredictionServiceStub build( * * *
-     * Perform a prediction.
+     * Perform an online prediction. The prediction result will be directly
+     * returned in the response.
+     * Available for following ML problems, and their expected request payloads:
+     * * Image Classification - Image in .JPEG, .GIF or .PNG format, image_bytes
+     *                          up to 30MB.
+     * * Image Object Detection - Image in .JPEG, .GIF or .PNG format, image_bytes
+     *                            up to 30MB.
+     * * Text Classification - TextSnippet, content up to 10,000 characters,
+     *                         UTF-8 encoded.
+     * * Text Extraction - TextSnippet, content up to 30,000 characters,
+     *                     UTF-8 NFC encoded. * Translation - TextSnippet, content up to 25,000 characters, UTF-8
+     *                 encoded.
+     * * Tables - Row, with column values matching the columns of the model,
+     *            up to 5MB.
+     * * Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded.
      * 
*/ public void predict( @@ -172,6 +287,31 @@ public void predict( request, responseObserver); } + + /** + * + * + *
+     * Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1beta1.PredictionService.Predict], batch
+     * prediction result won't be immediately available in the response. Instead,
+     * a long running operation object is returned. User can poll the operation
+     * result via [GetOperation][google.longrunning.Operations.GetOperation]
+     * method. Once the operation is done, [BatchPredictResult][google.cloud.automl.v1beta1.BatchPredictResult] is returned in
+     * the [response][google.longrunning.Operation.response] field.
+     * Available for following ML problems:
+     * * Video Classification
+     * * Text Extraction
+     * * Tables
+     * 
+ */ + public void batchPredict( + com.google.cloud.automl.v1beta1.BatchPredictRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getBatchPredictMethodHelper(), getCallOptions()), + request, + responseObserver); + } } /** @@ -179,6 +319,8 @@ public void predict( * *
    * AutoML Prediction API.
+   * On any input that is documented to expect a string parameter in
+   * snake_case or kebab-case, either of those cases is accepted.
    * 
*/ public static final class PredictionServiceBlockingStub @@ -202,13 +344,49 @@ protected PredictionServiceBlockingStub build( * * *
-     * Perform a prediction.
+     * Perform an online prediction. The prediction result will be directly
+     * returned in the response.
+     * Available for following ML problems, and their expected request payloads:
+     * * Image Classification - Image in .JPEG, .GIF or .PNG format, image_bytes
+     *                          up to 30MB.
+     * * Image Object Detection - Image in .JPEG, .GIF or .PNG format, image_bytes
+     *                            up to 30MB.
+     * * Text Classification - TextSnippet, content up to 10,000 characters,
+     *                         UTF-8 encoded.
+     * * Text Extraction - TextSnippet, content up to 30,000 characters,
+     *                     UTF-8 NFC encoded. * Translation - TextSnippet, content up to 25,000 characters, UTF-8
+     *                 encoded.
+     * * Tables - Row, with column values matching the columns of the model,
+     *            up to 5MB.
+     * * Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded.
      * 
*/ public com.google.cloud.automl.v1beta1.PredictResponse predict( com.google.cloud.automl.v1beta1.PredictRequest request) { return blockingUnaryCall(getChannel(), getPredictMethodHelper(), getCallOptions(), request); } + + /** + * + * + *
+     * Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1beta1.PredictionService.Predict], batch
+     * prediction result won't be immediately available in the response. Instead,
+     * a long running operation object is returned. User can poll the operation
+     * result via [GetOperation][google.longrunning.Operations.GetOperation]
+     * method. Once the operation is done, [BatchPredictResult][google.cloud.automl.v1beta1.BatchPredictResult] is returned in
+     * the [response][google.longrunning.Operation.response] field.
+     * Available for following ML problems:
+     * * Video Classification
+     * * Text Extraction
+     * * Tables
+     * 
+ */ + public com.google.longrunning.Operation batchPredict( + com.google.cloud.automl.v1beta1.BatchPredictRequest request) { + return blockingUnaryCall( + getChannel(), getBatchPredictMethodHelper(), getCallOptions(), request); + } } /** @@ -216,6 +394,8 @@ public com.google.cloud.automl.v1beta1.PredictResponse predict( * *
    * AutoML Prediction API.
+   * On any input that is documented to expect a string parameter in
+   * snake_case or kebab-case, either of those cases is accepted.
    * 
*/ public static final class PredictionServiceFutureStub @@ -238,7 +418,21 @@ protected PredictionServiceFutureStub build( * * *
-     * Perform a prediction.
+     * Perform an online prediction. The prediction result will be directly
+     * returned in the response.
+     * Available for following ML problems, and their expected request payloads:
+     * * Image Classification - Image in .JPEG, .GIF or .PNG format, image_bytes
+     *                          up to 30MB.
+     * * Image Object Detection - Image in .JPEG, .GIF or .PNG format, image_bytes
+     *                            up to 30MB.
+     * * Text Classification - TextSnippet, content up to 10,000 characters,
+     *                         UTF-8 encoded.
+     * * Text Extraction - TextSnippet, content up to 30,000 characters,
+     *                     UTF-8 NFC encoded. * Translation - TextSnippet, content up to 25,000 characters, UTF-8
+     *                 encoded.
+     * * Tables - Row, with column values matching the columns of the model,
+     *            up to 5MB.
+     * * Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -247,9 +441,32 @@ protected PredictionServiceFutureStub build( return futureUnaryCall( getChannel().newCall(getPredictMethodHelper(), getCallOptions()), request); } + + /** + * + * + *
+     * Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1beta1.PredictionService.Predict], batch
+     * prediction result won't be immediately available in the response. Instead,
+     * a long running operation object is returned. User can poll the operation
+     * result via [GetOperation][google.longrunning.Operations.GetOperation]
+     * method. Once the operation is done, [BatchPredictResult][google.cloud.automl.v1beta1.BatchPredictResult] is returned in
+     * the [response][google.longrunning.Operation.response] field.
+     * Available for following ML problems:
+     * * Video Classification
+     * * Text Extraction
+     * * Tables
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + batchPredict(com.google.cloud.automl.v1beta1.BatchPredictRequest request) { + return futureUnaryCall( + getChannel().newCall(getBatchPredictMethodHelper(), getCallOptions()), request); + } } private static final int METHODID_PREDICT = 0; + private static final int METHODID_BATCH_PREDICT = 1; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -274,6 +491,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_BATCH_PREDICT: + serviceImpl.batchPredict( + (com.google.cloud.automl.v1beta1.BatchPredictRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -339,6 +561,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new PredictionServiceFileDescriptorSupplier()) .addMethod(getPredictMethodHelper()) + .addMethod(getBatchPredictMethodHelper()) .build(); } } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayload.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayload.java index 7e7b0a696778..b8f976ee9b8b 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayload.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayload.java @@ -101,6 +101,27 @@ private AnnotationPayload( detailCase_ = 3; break; } + case 34: + { + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.Builder subBuilder = + null; + if (detailCase_ == 4) { + subBuilder = + ((com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) detail_) + .toBuilder(); + } + detail_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) detail_); + detail_ = subBuilder.buildPartial(); + } + detailCase_ = 4; + break; + } case 42: { java.lang.String s = input.readStringRequireUtf8(); @@ -108,6 +129,94 @@ private AnnotationPayload( displayName_ = s; break; } + case 50: + { + com.google.cloud.automl.v1beta1.TextExtractionAnnotation.Builder subBuilder = null; + if (detailCase_ == 6) { + subBuilder = + ((com.google.cloud.automl.v1beta1.TextExtractionAnnotation) detail_) + .toBuilder(); + } + detail_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TextExtractionAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.TextExtractionAnnotation) detail_); + detail_ = subBuilder.buildPartial(); + } + detailCase_ = 6; + break; + } + case 58: + { + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.Builder + subBuilder = null; + if (detailCase_ == 7) { + subBuilder = + ((com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) + detail_) + .toBuilder(); + } + detail_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) + detail_); + detail_ = subBuilder.buildPartial(); + } + detailCase_ = 7; + break; + } + case 74: + { + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + .Builder + subBuilder = null; + if (detailCase_ == 9) { + subBuilder = + ((com.google.cloud.automl.v1beta1.ClassificationProto + .VideoClassificationAnnotation) + detail_) + .toBuilder(); + } + detail_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ClassificationProto + .VideoClassificationAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.ClassificationProto + .VideoClassificationAnnotation) + detail_); + detail_ = subBuilder.buildPartial(); + } + detailCase_ = 9; + break; + } + case 82: + { + com.google.cloud.automl.v1beta1.TablesAnnotation.Builder subBuilder = null; + if (detailCase_ == 10) { + subBuilder = + ((com.google.cloud.automl.v1beta1.TablesAnnotation) detail_).toBuilder(); + } + detail_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TablesAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TablesAnnotation) detail_); + detail_ = subBuilder.buildPartial(); + } + detailCase_ = 10; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -148,6 +257,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public enum DetailCase implements com.google.protobuf.Internal.EnumLite { TRANSLATION(2), CLASSIFICATION(3), + IMAGE_OBJECT_DETECTION(4), + VIDEO_CLASSIFICATION(9), + TEXT_EXTRACTION(6), + TEXT_SENTIMENT(7), + TABLES(10), DETAIL_NOT_SET(0); private final int value; @@ -166,6 +280,16 @@ public static DetailCase forNumber(int value) { return TRANSLATION; case 3: return CLASSIFICATION; + case 4: + return IMAGE_OBJECT_DETECTION; + case 9: + return VIDEO_CLASSIFICATION; + case 6: + return TEXT_EXTRACTION; + case 7: + return TEXT_SENTIMENT; + case 10: + return TABLES; case 0: return DETAIL_NOT_SET; default: @@ -274,6 +398,247 @@ public boolean hasClassification() { .getDefaultInstance(); } + public static final int IMAGE_OBJECT_DETECTION_FIELD_NUMBER = 4; + /** + * + * + *
+   * Annotation details for image object detection.
+   * 
+ * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + */ + public boolean hasImageObjectDetection() { + return detailCase_ == 4; + } + /** + * + * + *
+   * Annotation details for image object detection.
+   * 
+ * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation getImageObjectDetection() { + if (detailCase_ == 4) { + return (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) detail_; + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.getDefaultInstance(); + } + /** + * + * + *
+   * Annotation details for image object detection.
+   * 
+ * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotationOrBuilder + getImageObjectDetectionOrBuilder() { + if (detailCase_ == 4) { + return (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) detail_; + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.getDefaultInstance(); + } + + public static final int VIDEO_CLASSIFICATION_FIELD_NUMBER = 9; + /** + * + * + *
+   * Annotation details for video classification.
+   * Returned for Video Classification predictions.
+   * 
+ * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * + */ + public boolean hasVideoClassification() { + return detailCase_ == 9; + } + /** + * + * + *
+   * Annotation details for video classification.
+   * Returned for Video Classification predictions.
+   * 
+ * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * + */ + public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + getVideoClassification() { + if (detailCase_ == 9) { + return (com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation) + detail_; + } + return com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + .getDefaultInstance(); + } + /** + * + * + *
+   * Annotation details for video classification.
+   * Returned for Video Classification predictions.
+   * 
+ * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * + */ + public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotationOrBuilder + getVideoClassificationOrBuilder() { + if (detailCase_ == 9) { + return (com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation) + detail_; + } + return com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + .getDefaultInstance(); + } + + public static final int TEXT_EXTRACTION_FIELD_NUMBER = 6; + /** + * + * + *
+   * Annotation details for text extraction.
+   * 
+ * + * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; + */ + public boolean hasTextExtraction() { + return detailCase_ == 6; + } + /** + * + * + *
+   * Annotation details for text extraction.
+   * 
+ * + * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; + */ + public com.google.cloud.automl.v1beta1.TextExtractionAnnotation getTextExtraction() { + if (detailCase_ == 6) { + return (com.google.cloud.automl.v1beta1.TextExtractionAnnotation) detail_; + } + return com.google.cloud.automl.v1beta1.TextExtractionAnnotation.getDefaultInstance(); + } + /** + * + * + *
+   * Annotation details for text extraction.
+   * 
+ * + * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; + */ + public com.google.cloud.automl.v1beta1.TextExtractionAnnotationOrBuilder + getTextExtractionOrBuilder() { + if (detailCase_ == 6) { + return (com.google.cloud.automl.v1beta1.TextExtractionAnnotation) detail_; + } + return com.google.cloud.automl.v1beta1.TextExtractionAnnotation.getDefaultInstance(); + } + + public static final int TEXT_SENTIMENT_FIELD_NUMBER = 7; + /** + * + * + *
+   * Annotation details for text sentiment.
+   * 
+ * + * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; + */ + public boolean hasTextSentiment() { + return detailCase_ == 7; + } + /** + * + * + *
+   * Annotation details for text sentiment.
+   * 
+ * + * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; + */ + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + getTextSentiment() { + if (detailCase_ == 7) { + return (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) detail_; + } + return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + .getDefaultInstance(); + } + /** + * + * + *
+   * Annotation details for text sentiment.
+   * 
+ * + * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; + */ + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotationOrBuilder + getTextSentimentOrBuilder() { + if (detailCase_ == 7) { + return (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) detail_; + } + return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + .getDefaultInstance(); + } + + public static final int TABLES_FIELD_NUMBER = 10; + /** + * + * + *
+   * Annotation details for Tables.
+   * 
+ * + * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; + */ + public boolean hasTables() { + return detailCase_ == 10; + } + /** + * + * + *
+   * Annotation details for Tables.
+   * 
+ * + * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; + */ + public com.google.cloud.automl.v1beta1.TablesAnnotation getTables() { + if (detailCase_ == 10) { + return (com.google.cloud.automl.v1beta1.TablesAnnotation) detail_; + } + return com.google.cloud.automl.v1beta1.TablesAnnotation.getDefaultInstance(); + } + /** + * + * + *
+   * Annotation details for Tables.
+   * 
+ * + * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; + */ + public com.google.cloud.automl.v1beta1.TablesAnnotationOrBuilder getTablesOrBuilder() { + if (detailCase_ == 10) { + return (com.google.cloud.automl.v1beta1.TablesAnnotation) detail_; + } + return com.google.cloud.automl.v1beta1.TablesAnnotation.getDefaultInstance(); + } + public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER = 1; private volatile java.lang.Object annotationSpecId_; /** @@ -327,12 +692,11 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes() { * * *
-   * Output only. The value of
-   * [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
-   * when the model was trained. Because this field returns a value at model
-   * training time, for different models trained using the same dataset, the
-   * returned value could be different as model owner could update the
-   * display_name between any two model training.
+   * Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model
+   * was trained. Because this field returns a value at model training time,
+   * for different models trained using the same dataset, the returned value
+   * could be different as model owner could update the display_name between
+   * any two model training.
    * 
* * string display_name = 5; @@ -352,12 +716,11 @@ public java.lang.String getDisplayName() { * * *
-   * Output only. The value of
-   * [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
-   * when the model was trained. Because this field returns a value at model
-   * training time, for different models trained using the same dataset, the
-   * returned value could be different as model owner could update the
-   * display_name between any two model training.
+   * Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model
+   * was trained. Because this field returns a value at model training time,
+   * for different models trained using the same dataset, the returned value
+   * could be different as model owner could update the display_name between
+   * any two model training.
    * 
* * string display_name = 5; @@ -399,9 +762,29 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 3, (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_); } + if (detailCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) detail_); + } if (!getDisplayNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } + if (detailCase_ == 6) { + output.writeMessage(6, (com.google.cloud.automl.v1beta1.TextExtractionAnnotation) detail_); + } + if (detailCase_ == 7) { + output.writeMessage( + 7, (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) detail_); + } + if (detailCase_ == 9) { + output.writeMessage( + 9, + (com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation) + detail_); + } + if (detailCase_ == 10) { + output.writeMessage(10, (com.google.cloud.automl.v1beta1.TablesAnnotation) detail_); + } unknownFields.writeTo(output); } @@ -426,9 +809,37 @@ public int getSerializedSize() { (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation) detail_); } + if (detailCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) detail_); + } if (!getDisplayNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } + if (detailCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.automl.v1beta1.TextExtractionAnnotation) detail_); + } + if (detailCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) detail_); + } + if (detailCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, + (com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation) + detail_); + } + if (detailCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.cloud.automl.v1beta1.TablesAnnotation) detail_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -455,6 +866,21 @@ public boolean equals(final java.lang.Object obj) { case 3: if (!getClassification().equals(other.getClassification())) return false; break; + case 4: + if (!getImageObjectDetection().equals(other.getImageObjectDetection())) return false; + break; + case 9: + if (!getVideoClassification().equals(other.getVideoClassification())) return false; + break; + case 6: + if (!getTextExtraction().equals(other.getTextExtraction())) return false; + break; + case 7: + if (!getTextSentiment().equals(other.getTextSentiment())) return false; + break; + case 10: + if (!getTables().equals(other.getTables())) return false; + break; case 0: default: } @@ -482,6 +908,26 @@ public int hashCode() { hash = (37 * hash) + CLASSIFICATION_FIELD_NUMBER; hash = (53 * hash) + getClassification().hashCode(); break; + case 4: + hash = (37 * hash) + IMAGE_OBJECT_DETECTION_FIELD_NUMBER; + hash = (53 * hash) + getImageObjectDetection().hashCode(); + break; + case 9: + hash = (37 * hash) + VIDEO_CLASSIFICATION_FIELD_NUMBER; + hash = (53 * hash) + getVideoClassification().hashCode(); + break; + case 6: + hash = (37 * hash) + TEXT_EXTRACTION_FIELD_NUMBER; + hash = (53 * hash) + getTextExtraction().hashCode(); + break; + case 7: + hash = (37 * hash) + TEXT_SENTIMENT_FIELD_NUMBER; + hash = (53 * hash) + getTextSentiment().hashCode(); + break; + case 10: + hash = (37 * hash) + TABLES_FIELD_NUMBER; + hash = (53 * hash) + getTables().hashCode(); + break; case 0: default: } @@ -677,20 +1123,55 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload buildPartial() { result.detail_ = classificationBuilder_.build(); } } - result.annotationSpecId_ = annotationSpecId_; - result.displayName_ = displayName_; - result.detailCase_ = detailCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( + if (detailCase_ == 4) { + if (imageObjectDetectionBuilder_ == null) { + result.detail_ = detail_; + } else { + result.detail_ = imageObjectDetectionBuilder_.build(); + } + } + if (detailCase_ == 9) { + if (videoClassificationBuilder_ == null) { + result.detail_ = detail_; + } else { + result.detail_ = videoClassificationBuilder_.build(); + } + } + if (detailCase_ == 6) { + if (textExtractionBuilder_ == null) { + result.detail_ = detail_; + } else { + result.detail_ = textExtractionBuilder_.build(); + } + } + if (detailCase_ == 7) { + if (textSentimentBuilder_ == null) { + result.detail_ = detail_; + } else { + result.detail_ = textSentimentBuilder_.build(); + } + } + if (detailCase_ == 10) { + if (tablesBuilder_ == null) { + result.detail_ = detail_; + } else { + result.detail_ = tablesBuilder_.build(); + } + } + result.annotationSpecId_ = annotationSpecId_; + result.displayName_ = displayName_; + result.detailCase_ = detailCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @@ -749,6 +1230,31 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.AnnotationPayload other mergeClassification(other.getClassification()); break; } + case IMAGE_OBJECT_DETECTION: + { + mergeImageObjectDetection(other.getImageObjectDetection()); + break; + } + case VIDEO_CLASSIFICATION: + { + mergeVideoClassification(other.getVideoClassification()); + break; + } + case TEXT_EXTRACTION: + { + mergeTextExtraction(other.getTextExtraction()); + break; + } + case TEXT_SENTIMENT: + { + mergeTextSentiment(other.getTextSentiment()); + break; + } + case TABLES: + { + mergeTables(other.getTables()); + break; + } case DETAIL_NOT_SET: { break; @@ -1224,6 +1730,1100 @@ public Builder clearClassification() { return classificationBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation, + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.Builder, + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotationOrBuilder> + imageObjectDetectionBuilder_; + /** + * + * + *
+     * Annotation details for image object detection.
+     * 
+ * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + */ + public boolean hasImageObjectDetection() { + return detailCase_ == 4; + } + /** + * + * + *
+     * Annotation details for image object detection.
+     * 
+ * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation + getImageObjectDetection() { + if (imageObjectDetectionBuilder_ == null) { + if (detailCase_ == 4) { + return (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) detail_; + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.getDefaultInstance(); + } else { + if (detailCase_ == 4) { + return imageObjectDetectionBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.getDefaultInstance(); + } + } + /** + * + * + *
+     * Annotation details for image object detection.
+     * 
+ * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + */ + public Builder setImageObjectDetection( + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation value) { + if (imageObjectDetectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + detail_ = value; + onChanged(); + } else { + imageObjectDetectionBuilder_.setMessage(value); + } + detailCase_ = 4; + return this; + } + /** + * + * + *
+     * Annotation details for image object detection.
+     * 
+ * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + */ + public Builder setImageObjectDetection( + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.Builder builderForValue) { + if (imageObjectDetectionBuilder_ == null) { + detail_ = builderForValue.build(); + onChanged(); + } else { + imageObjectDetectionBuilder_.setMessage(builderForValue.build()); + } + detailCase_ = 4; + return this; + } + /** + * + * + *
+     * Annotation details for image object detection.
+     * 
+ * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + */ + public Builder mergeImageObjectDetection( + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation value) { + if (imageObjectDetectionBuilder_ == null) { + if (detailCase_ == 4 + && detail_ + != com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation + .getDefaultInstance()) { + detail_ = + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.newBuilder( + (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) detail_) + .mergeFrom(value) + .buildPartial(); + } else { + detail_ = value; + } + onChanged(); + } else { + if (detailCase_ == 4) { + imageObjectDetectionBuilder_.mergeFrom(value); + } + imageObjectDetectionBuilder_.setMessage(value); + } + detailCase_ = 4; + return this; + } + /** + * + * + *
+     * Annotation details for image object detection.
+     * 
+ * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + */ + public Builder clearImageObjectDetection() { + if (imageObjectDetectionBuilder_ == null) { + if (detailCase_ == 4) { + detailCase_ = 0; + detail_ = null; + onChanged(); + } + } else { + if (detailCase_ == 4) { + detailCase_ = 0; + detail_ = null; + } + imageObjectDetectionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Annotation details for image object detection.
+     * 
+ * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.Builder + getImageObjectDetectionBuilder() { + return getImageObjectDetectionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Annotation details for image object detection.
+     * 
+ * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotationOrBuilder + getImageObjectDetectionOrBuilder() { + if ((detailCase_ == 4) && (imageObjectDetectionBuilder_ != null)) { + return imageObjectDetectionBuilder_.getMessageOrBuilder(); + } else { + if (detailCase_ == 4) { + return (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) detail_; + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.getDefaultInstance(); + } + } + /** + * + * + *
+     * Annotation details for image object detection.
+     * 
+ * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation, + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.Builder, + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotationOrBuilder> + getImageObjectDetectionFieldBuilder() { + if (imageObjectDetectionBuilder_ == null) { + if (!(detailCase_ == 4)) { + detail_ = + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.getDefaultInstance(); + } + imageObjectDetectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation, + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.Builder, + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotationOrBuilder>( + (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) detail_, + getParentForChildren(), + isClean()); + detail_ = null; + } + detailCase_ = 4; + onChanged(); + ; + return imageObjectDetectionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation, + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + .Builder, + com.google.cloud.automl.v1beta1.ClassificationProto + .VideoClassificationAnnotationOrBuilder> + videoClassificationBuilder_; + /** + * + * + *
+     * Annotation details for video classification.
+     * Returned for Video Classification predictions.
+     * 
+ * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * + */ + public boolean hasVideoClassification() { + return detailCase_ == 9; + } + /** + * + * + *
+     * Annotation details for video classification.
+     * Returned for Video Classification predictions.
+     * 
+ * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * + */ + public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + getVideoClassification() { + if (videoClassificationBuilder_ == null) { + if (detailCase_ == 9) { + return (com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation) + detail_; + } + return com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + .getDefaultInstance(); + } else { + if (detailCase_ == 9) { + return videoClassificationBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Annotation details for video classification.
+     * Returned for Video Classification predictions.
+     * 
+ * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * + */ + public Builder setVideoClassification( + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation value) { + if (videoClassificationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + detail_ = value; + onChanged(); + } else { + videoClassificationBuilder_.setMessage(value); + } + detailCase_ = 9; + return this; + } + /** + * + * + *
+     * Annotation details for video classification.
+     * Returned for Video Classification predictions.
+     * 
+ * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * + */ + public Builder setVideoClassification( + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation.Builder + builderForValue) { + if (videoClassificationBuilder_ == null) { + detail_ = builderForValue.build(); + onChanged(); + } else { + videoClassificationBuilder_.setMessage(builderForValue.build()); + } + detailCase_ = 9; + return this; + } + /** + * + * + *
+     * Annotation details for video classification.
+     * Returned for Video Classification predictions.
+     * 
+ * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * + */ + public Builder mergeVideoClassification( + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation value) { + if (videoClassificationBuilder_ == null) { + if (detailCase_ == 9 + && detail_ + != com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + .getDefaultInstance()) { + detail_ = + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + .newBuilder( + (com.google.cloud.automl.v1beta1.ClassificationProto + .VideoClassificationAnnotation) + detail_) + .mergeFrom(value) + .buildPartial(); + } else { + detail_ = value; + } + onChanged(); + } else { + if (detailCase_ == 9) { + videoClassificationBuilder_.mergeFrom(value); + } + videoClassificationBuilder_.setMessage(value); + } + detailCase_ = 9; + return this; + } + /** + * + * + *
+     * Annotation details for video classification.
+     * Returned for Video Classification predictions.
+     * 
+ * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * + */ + public Builder clearVideoClassification() { + if (videoClassificationBuilder_ == null) { + if (detailCase_ == 9) { + detailCase_ = 0; + detail_ = null; + onChanged(); + } + } else { + if (detailCase_ == 9) { + detailCase_ = 0; + detail_ = null; + } + videoClassificationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Annotation details for video classification.
+     * Returned for Video Classification predictions.
+     * 
+ * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * + */ + public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation.Builder + getVideoClassificationBuilder() { + return getVideoClassificationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Annotation details for video classification.
+     * Returned for Video Classification predictions.
+     * 
+ * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * + */ + public com.google.cloud.automl.v1beta1.ClassificationProto + .VideoClassificationAnnotationOrBuilder + getVideoClassificationOrBuilder() { + if ((detailCase_ == 9) && (videoClassificationBuilder_ != null)) { + return videoClassificationBuilder_.getMessageOrBuilder(); + } else { + if (detailCase_ == 9) { + return (com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation) + detail_; + } + return com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Annotation details for video classification.
+     * Returned for Video Classification predictions.
+     * 
+ * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation, + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + .Builder, + com.google.cloud.automl.v1beta1.ClassificationProto + .VideoClassificationAnnotationOrBuilder> + getVideoClassificationFieldBuilder() { + if (videoClassificationBuilder_ == null) { + if (!(detailCase_ == 9)) { + detail_ = + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + .getDefaultInstance(); + } + videoClassificationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation, + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + .Builder, + com.google.cloud.automl.v1beta1.ClassificationProto + .VideoClassificationAnnotationOrBuilder>( + (com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation) + detail_, + getParentForChildren(), + isClean()); + detail_ = null; + } + detailCase_ = 9; + onChanged(); + ; + return videoClassificationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextExtractionAnnotation, + com.google.cloud.automl.v1beta1.TextExtractionAnnotation.Builder, + com.google.cloud.automl.v1beta1.TextExtractionAnnotationOrBuilder> + textExtractionBuilder_; + /** + * + * + *
+     * Annotation details for text extraction.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; + */ + public boolean hasTextExtraction() { + return detailCase_ == 6; + } + /** + * + * + *
+     * Annotation details for text extraction.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; + */ + public com.google.cloud.automl.v1beta1.TextExtractionAnnotation getTextExtraction() { + if (textExtractionBuilder_ == null) { + if (detailCase_ == 6) { + return (com.google.cloud.automl.v1beta1.TextExtractionAnnotation) detail_; + } + return com.google.cloud.automl.v1beta1.TextExtractionAnnotation.getDefaultInstance(); + } else { + if (detailCase_ == 6) { + return textExtractionBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.TextExtractionAnnotation.getDefaultInstance(); + } + } + /** + * + * + *
+     * Annotation details for text extraction.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; + */ + public Builder setTextExtraction( + com.google.cloud.automl.v1beta1.TextExtractionAnnotation value) { + if (textExtractionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + detail_ = value; + onChanged(); + } else { + textExtractionBuilder_.setMessage(value); + } + detailCase_ = 6; + return this; + } + /** + * + * + *
+     * Annotation details for text extraction.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; + */ + public Builder setTextExtraction( + com.google.cloud.automl.v1beta1.TextExtractionAnnotation.Builder builderForValue) { + if (textExtractionBuilder_ == null) { + detail_ = builderForValue.build(); + onChanged(); + } else { + textExtractionBuilder_.setMessage(builderForValue.build()); + } + detailCase_ = 6; + return this; + } + /** + * + * + *
+     * Annotation details for text extraction.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; + */ + public Builder mergeTextExtraction( + com.google.cloud.automl.v1beta1.TextExtractionAnnotation value) { + if (textExtractionBuilder_ == null) { + if (detailCase_ == 6 + && detail_ + != com.google.cloud.automl.v1beta1.TextExtractionAnnotation.getDefaultInstance()) { + detail_ = + com.google.cloud.automl.v1beta1.TextExtractionAnnotation.newBuilder( + (com.google.cloud.automl.v1beta1.TextExtractionAnnotation) detail_) + .mergeFrom(value) + .buildPartial(); + } else { + detail_ = value; + } + onChanged(); + } else { + if (detailCase_ == 6) { + textExtractionBuilder_.mergeFrom(value); + } + textExtractionBuilder_.setMessage(value); + } + detailCase_ = 6; + return this; + } + /** + * + * + *
+     * Annotation details for text extraction.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; + */ + public Builder clearTextExtraction() { + if (textExtractionBuilder_ == null) { + if (detailCase_ == 6) { + detailCase_ = 0; + detail_ = null; + onChanged(); + } + } else { + if (detailCase_ == 6) { + detailCase_ = 0; + detail_ = null; + } + textExtractionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Annotation details for text extraction.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; + */ + public com.google.cloud.automl.v1beta1.TextExtractionAnnotation.Builder + getTextExtractionBuilder() { + return getTextExtractionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Annotation details for text extraction.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; + */ + public com.google.cloud.automl.v1beta1.TextExtractionAnnotationOrBuilder + getTextExtractionOrBuilder() { + if ((detailCase_ == 6) && (textExtractionBuilder_ != null)) { + return textExtractionBuilder_.getMessageOrBuilder(); + } else { + if (detailCase_ == 6) { + return (com.google.cloud.automl.v1beta1.TextExtractionAnnotation) detail_; + } + return com.google.cloud.automl.v1beta1.TextExtractionAnnotation.getDefaultInstance(); + } + } + /** + * + * + *
+     * Annotation details for text extraction.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextExtractionAnnotation, + com.google.cloud.automl.v1beta1.TextExtractionAnnotation.Builder, + com.google.cloud.automl.v1beta1.TextExtractionAnnotationOrBuilder> + getTextExtractionFieldBuilder() { + if (textExtractionBuilder_ == null) { + if (!(detailCase_ == 6)) { + detail_ = com.google.cloud.automl.v1beta1.TextExtractionAnnotation.getDefaultInstance(); + } + textExtractionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextExtractionAnnotation, + com.google.cloud.automl.v1beta1.TextExtractionAnnotation.Builder, + com.google.cloud.automl.v1beta1.TextExtractionAnnotationOrBuilder>( + (com.google.cloud.automl.v1beta1.TextExtractionAnnotation) detail_, + getParentForChildren(), + isClean()); + detail_ = null; + } + detailCase_ = 6; + onChanged(); + ; + return textExtractionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation, + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.Builder, + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotationOrBuilder> + textSentimentBuilder_; + /** + * + * + *
+     * Annotation details for text sentiment.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; + */ + public boolean hasTextSentiment() { + return detailCase_ == 7; + } + /** + * + * + *
+     * Annotation details for text sentiment.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; + */ + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + getTextSentiment() { + if (textSentimentBuilder_ == null) { + if (detailCase_ == 7) { + return (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) + detail_; + } + return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + .getDefaultInstance(); + } else { + if (detailCase_ == 7) { + return textSentimentBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Annotation details for text sentiment.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; + */ + public Builder setTextSentiment( + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation value) { + if (textSentimentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + detail_ = value; + onChanged(); + } else { + textSentimentBuilder_.setMessage(value); + } + detailCase_ = 7; + return this; + } + /** + * + * + *
+     * Annotation details for text sentiment.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; + */ + public Builder setTextSentiment( + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.Builder + builderForValue) { + if (textSentimentBuilder_ == null) { + detail_ = builderForValue.build(); + onChanged(); + } else { + textSentimentBuilder_.setMessage(builderForValue.build()); + } + detailCase_ = 7; + return this; + } + /** + * + * + *
+     * Annotation details for text sentiment.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; + */ + public Builder mergeTextSentiment( + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation value) { + if (textSentimentBuilder_ == null) { + if (detailCase_ == 7 + && detail_ + != com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + .getDefaultInstance()) { + detail_ = + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.newBuilder( + (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) + detail_) + .mergeFrom(value) + .buildPartial(); + } else { + detail_ = value; + } + onChanged(); + } else { + if (detailCase_ == 7) { + textSentimentBuilder_.mergeFrom(value); + } + textSentimentBuilder_.setMessage(value); + } + detailCase_ = 7; + return this; + } + /** + * + * + *
+     * Annotation details for text sentiment.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; + */ + public Builder clearTextSentiment() { + if (textSentimentBuilder_ == null) { + if (detailCase_ == 7) { + detailCase_ = 0; + detail_ = null; + onChanged(); + } + } else { + if (detailCase_ == 7) { + detailCase_ = 0; + detail_ = null; + } + textSentimentBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Annotation details for text sentiment.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; + */ + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.Builder + getTextSentimentBuilder() { + return getTextSentimentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Annotation details for text sentiment.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; + */ + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotationOrBuilder + getTextSentimentOrBuilder() { + if ((detailCase_ == 7) && (textSentimentBuilder_ != null)) { + return textSentimentBuilder_.getMessageOrBuilder(); + } else { + if (detailCase_ == 7) { + return (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) + detail_; + } + return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Annotation details for text sentiment.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation, + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.Builder, + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotationOrBuilder> + getTextSentimentFieldBuilder() { + if (textSentimentBuilder_ == null) { + if (!(detailCase_ == 7)) { + detail_ = + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + .getDefaultInstance(); + } + textSentimentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation, + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.Builder, + com.google.cloud.automl.v1beta1.TextSentimentProto + .TextSentimentAnnotationOrBuilder>( + (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) + detail_, + getParentForChildren(), + isClean()); + detail_ = null; + } + detailCase_ = 7; + onChanged(); + ; + return textSentimentBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TablesAnnotation, + com.google.cloud.automl.v1beta1.TablesAnnotation.Builder, + com.google.cloud.automl.v1beta1.TablesAnnotationOrBuilder> + tablesBuilder_; + /** + * + * + *
+     * Annotation details for Tables.
+     * 
+ * + * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; + */ + public boolean hasTables() { + return detailCase_ == 10; + } + /** + * + * + *
+     * Annotation details for Tables.
+     * 
+ * + * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; + */ + public com.google.cloud.automl.v1beta1.TablesAnnotation getTables() { + if (tablesBuilder_ == null) { + if (detailCase_ == 10) { + return (com.google.cloud.automl.v1beta1.TablesAnnotation) detail_; + } + return com.google.cloud.automl.v1beta1.TablesAnnotation.getDefaultInstance(); + } else { + if (detailCase_ == 10) { + return tablesBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.TablesAnnotation.getDefaultInstance(); + } + } + /** + * + * + *
+     * Annotation details for Tables.
+     * 
+ * + * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; + */ + public Builder setTables(com.google.cloud.automl.v1beta1.TablesAnnotation value) { + if (tablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + detail_ = value; + onChanged(); + } else { + tablesBuilder_.setMessage(value); + } + detailCase_ = 10; + return this; + } + /** + * + * + *
+     * Annotation details for Tables.
+     * 
+ * + * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; + */ + public Builder setTables( + com.google.cloud.automl.v1beta1.TablesAnnotation.Builder builderForValue) { + if (tablesBuilder_ == null) { + detail_ = builderForValue.build(); + onChanged(); + } else { + tablesBuilder_.setMessage(builderForValue.build()); + } + detailCase_ = 10; + return this; + } + /** + * + * + *
+     * Annotation details for Tables.
+     * 
+ * + * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; + */ + public Builder mergeTables(com.google.cloud.automl.v1beta1.TablesAnnotation value) { + if (tablesBuilder_ == null) { + if (detailCase_ == 10 + && detail_ != com.google.cloud.automl.v1beta1.TablesAnnotation.getDefaultInstance()) { + detail_ = + com.google.cloud.automl.v1beta1.TablesAnnotation.newBuilder( + (com.google.cloud.automl.v1beta1.TablesAnnotation) detail_) + .mergeFrom(value) + .buildPartial(); + } else { + detail_ = value; + } + onChanged(); + } else { + if (detailCase_ == 10) { + tablesBuilder_.mergeFrom(value); + } + tablesBuilder_.setMessage(value); + } + detailCase_ = 10; + return this; + } + /** + * + * + *
+     * Annotation details for Tables.
+     * 
+ * + * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; + */ + public Builder clearTables() { + if (tablesBuilder_ == null) { + if (detailCase_ == 10) { + detailCase_ = 0; + detail_ = null; + onChanged(); + } + } else { + if (detailCase_ == 10) { + detailCase_ = 0; + detail_ = null; + } + tablesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Annotation details for Tables.
+     * 
+ * + * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; + */ + public com.google.cloud.automl.v1beta1.TablesAnnotation.Builder getTablesBuilder() { + return getTablesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Annotation details for Tables.
+     * 
+ * + * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; + */ + public com.google.cloud.automl.v1beta1.TablesAnnotationOrBuilder getTablesOrBuilder() { + if ((detailCase_ == 10) && (tablesBuilder_ != null)) { + return tablesBuilder_.getMessageOrBuilder(); + } else { + if (detailCase_ == 10) { + return (com.google.cloud.automl.v1beta1.TablesAnnotation) detail_; + } + return com.google.cloud.automl.v1beta1.TablesAnnotation.getDefaultInstance(); + } + } + /** + * + * + *
+     * Annotation details for Tables.
+     * 
+ * + * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TablesAnnotation, + com.google.cloud.automl.v1beta1.TablesAnnotation.Builder, + com.google.cloud.automl.v1beta1.TablesAnnotationOrBuilder> + getTablesFieldBuilder() { + if (tablesBuilder_ == null) { + if (!(detailCase_ == 10)) { + detail_ = com.google.cloud.automl.v1beta1.TablesAnnotation.getDefaultInstance(); + } + tablesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TablesAnnotation, + com.google.cloud.automl.v1beta1.TablesAnnotation.Builder, + com.google.cloud.automl.v1beta1.TablesAnnotationOrBuilder>( + (com.google.cloud.automl.v1beta1.TablesAnnotation) detail_, + getParentForChildren(), + isClean()); + detail_ = null; + } + detailCase_ = 10; + onChanged(); + ; + return tablesBuilder_; + } + private java.lang.Object annotationSpecId_ = ""; /** * @@ -1333,12 +2933,11 @@ public Builder setAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. The value of
-     * [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
-     * when the model was trained. Because this field returns a value at model
-     * training time, for different models trained using the same dataset, the
-     * returned value could be different as model owner could update the
-     * display_name between any two model training.
+     * Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model
+     * was trained. Because this field returns a value at model training time,
+     * for different models trained using the same dataset, the returned value
+     * could be different as model owner could update the display_name between
+     * any two model training.
      * 
* * string display_name = 5; @@ -1358,12 +2957,11 @@ public java.lang.String getDisplayName() { * * *
-     * Output only. The value of
-     * [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
-     * when the model was trained. Because this field returns a value at model
-     * training time, for different models trained using the same dataset, the
-     * returned value could be different as model owner could update the
-     * display_name between any two model training.
+     * Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model
+     * was trained. Because this field returns a value at model training time,
+     * for different models trained using the same dataset, the returned value
+     * could be different as model owner could update the display_name between
+     * any two model training.
      * 
* * string display_name = 5; @@ -1383,12 +2981,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * Output only. The value of
-     * [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
-     * when the model was trained. Because this field returns a value at model
-     * training time, for different models trained using the same dataset, the
-     * returned value could be different as model owner could update the
-     * display_name between any two model training.
+     * Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model
+     * was trained. Because this field returns a value at model training time,
+     * for different models trained using the same dataset, the returned value
+     * could be different as model owner could update the display_name between
+     * any two model training.
      * 
* * string display_name = 5; @@ -1406,12 +3003,11 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * Output only. The value of
-     * [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
-     * when the model was trained. Because this field returns a value at model
-     * training time, for different models trained using the same dataset, the
-     * returned value could be different as model owner could update the
-     * display_name between any two model training.
+     * Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model
+     * was trained. Because this field returns a value at model training time,
+     * for different models trained using the same dataset, the returned value
+     * could be different as model owner could update the display_name between
+     * any two model training.
      * 
* * string display_name = 5; @@ -1426,12 +3022,11 @@ public Builder clearDisplayName() { * * *
-     * Output only. The value of
-     * [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
-     * when the model was trained. Because this field returns a value at model
-     * training time, for different models trained using the same dataset, the
-     * returned value could be different as model owner could update the
-     * display_name between any two model training.
+     * Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model
+     * was trained. Because this field returns a value at model training time,
+     * for different models trained using the same dataset, the returned value
+     * could be different as model owner could update the display_name between
+     * any two model training.
      * 
* * string display_name = 5; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOrBuilder.java index 724982048194..b8c028876166 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOrBuilder.java @@ -71,6 +71,174 @@ public interface AnnotationPayloadOrBuilder com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder getClassificationOrBuilder(); + /** + * + * + *
+   * Annotation details for image object detection.
+   * 
+ * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + */ + boolean hasImageObjectDetection(); + /** + * + * + *
+   * Annotation details for image object detection.
+   * 
+ * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + */ + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation getImageObjectDetection(); + /** + * + * + *
+   * Annotation details for image object detection.
+   * 
+ * + * .google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation image_object_detection = 4; + * + */ + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotationOrBuilder + getImageObjectDetectionOrBuilder(); + + /** + * + * + *
+   * Annotation details for video classification.
+   * Returned for Video Classification predictions.
+   * 
+ * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * + */ + boolean hasVideoClassification(); + /** + * + * + *
+   * Annotation details for video classification.
+   * Returned for Video Classification predictions.
+   * 
+ * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * + */ + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + getVideoClassification(); + /** + * + * + *
+   * Annotation details for video classification.
+   * Returned for Video Classification predictions.
+   * 
+ * + * .google.cloud.automl.v1beta1.VideoClassificationAnnotation video_classification = 9; + * + */ + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotationOrBuilder + getVideoClassificationOrBuilder(); + + /** + * + * + *
+   * Annotation details for text extraction.
+   * 
+ * + * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; + */ + boolean hasTextExtraction(); + /** + * + * + *
+   * Annotation details for text extraction.
+   * 
+ * + * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; + */ + com.google.cloud.automl.v1beta1.TextExtractionAnnotation getTextExtraction(); + /** + * + * + *
+   * Annotation details for text extraction.
+   * 
+ * + * .google.cloud.automl.v1beta1.TextExtractionAnnotation text_extraction = 6; + */ + com.google.cloud.automl.v1beta1.TextExtractionAnnotationOrBuilder getTextExtractionOrBuilder(); + + /** + * + * + *
+   * Annotation details for text sentiment.
+   * 
+ * + * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; + */ + boolean hasTextSentiment(); + /** + * + * + *
+   * Annotation details for text sentiment.
+   * 
+ * + * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; + */ + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation getTextSentiment(); + /** + * + * + *
+   * Annotation details for text sentiment.
+   * 
+ * + * .google.cloud.automl.v1beta1.TextSentimentAnnotation text_sentiment = 7; + */ + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotationOrBuilder + getTextSentimentOrBuilder(); + + /** + * + * + *
+   * Annotation details for Tables.
+   * 
+ * + * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; + */ + boolean hasTables(); + /** + * + * + *
+   * Annotation details for Tables.
+   * 
+ * + * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; + */ + com.google.cloud.automl.v1beta1.TablesAnnotation getTables(); + /** + * + * + *
+   * Annotation details for Tables.
+   * 
+ * + * .google.cloud.automl.v1beta1.TablesAnnotation tables = 10; + */ + com.google.cloud.automl.v1beta1.TablesAnnotationOrBuilder getTablesOrBuilder(); + /** * * @@ -100,12 +268,11 @@ public interface AnnotationPayloadOrBuilder * * *
-   * Output only. The value of
-   * [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
-   * when the model was trained. Because this field returns a value at model
-   * training time, for different models trained using the same dataset, the
-   * returned value could be different as model owner could update the
-   * display_name between any two model training.
+   * Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model
+   * was trained. Because this field returns a value at model training time,
+   * for different models trained using the same dataset, the returned value
+   * could be different as model owner could update the display_name between
+   * any two model training.
    * 
* * string display_name = 5; @@ -115,12 +282,11 @@ public interface AnnotationPayloadOrBuilder * * *
-   * Output only. The value of
-   * [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
-   * when the model was trained. Because this field returns a value at model
-   * training time, for different models trained using the same dataset, the
-   * returned value could be different as model owner could update the
-   * display_name between any two model training.
+   * Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model
+   * was trained. Because this field returns a value at model training time,
+   * for different models trained using the same dataset, the returned value
+   * could be different as model owner could update the display_name between
+   * any two model training.
    * 
* * string display_name = 5; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java index 3842aa2298dd..ec44de9ba469 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationPayloadOuterClass.java @@ -29,17 +29,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_payload.proto\022\033google.cloud.automl.v1be" + "ta1\032\034google/api/annotations.proto\0320googl" + "e/cloud/automl/v1beta1/classification.pr" - + "oto\032-google/cloud/automl/v1beta1/transla" - + "tion.proto\"\353\001\n\021AnnotationPayload\022I\n\013tran" - + "slation\030\002 \001(\01322.google.cloud.automl.v1be" - + "ta1.TranslationAnnotationH\000\022O\n\016classific" - + "ation\030\003 \001(\01325.google.cloud.automl.v1beta" - + "1.ClassificationAnnotationH\000\022\032\n\022annotati" - + "on_spec_id\030\001 \001(\t\022\024\n\014display_name\030\005 \001(\tB\010" - + "\n\006detailB\204\001\n\037com.google.cloud.automl.v1b" - + "eta1P\001ZAgoogle.golang.org/genproto/googl" - + "eapis/cloud/automl/v1beta1;automl\312\002\033Goog" - + "le\\Cloud\\AutoMl\\V1beta1b\006proto3" + + "oto\032+google/cloud/automl/v1beta1/detecti" + + "on.proto\032(google/cloud/automl/v1beta1/ta" + + "bles.proto\0321google/cloud/automl/v1beta1/" + + "text_extraction.proto\0320google/cloud/auto" + + "ml/v1beta1/text_sentiment.proto\032-google/" + + "cloud/automl/v1beta1/translation.proto\032\031" + + "google/protobuf/any.proto\"\211\005\n\021Annotation" + + "Payload\022I\n\013translation\030\002 \001(\01322.google.cl" + + "oud.automl.v1beta1.TranslationAnnotation" + + "H\000\022O\n\016classification\030\003 \001(\01325.google.clou" + + "d.automl.v1beta1.ClassificationAnnotatio" + + "nH\000\022]\n\026image_object_detection\030\004 \001(\0132;.go" + + "ogle.cloud.automl.v1beta1.ImageObjectDet" + + "ectionAnnotationH\000\022Z\n\024video_classificati" + + "on\030\t \001(\0132:.google.cloud.automl.v1beta1.V" + + "ideoClassificationAnnotationH\000\022P\n\017text_e" + + "xtraction\030\006 \001(\01325.google.cloud.automl.v1" + + "beta1.TextExtractionAnnotationH\000\022N\n\016text" + + "_sentiment\030\007 \001(\01324.google.cloud.automl.v" + + "1beta1.TextSentimentAnnotationH\000\022?\n\006tabl" + + "es\030\n \001(\0132-.google.cloud.automl.v1beta1.T" + + "ablesAnnotationH\000\022\032\n\022annotation_spec_id\030" + + "\001 \001(\t\022\024\n\014display_name\030\005 \001(\tB\010\n\006detailB\204\001" + + "\n\037com.google.cloud.automl.v1beta1P\001ZAgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/automl/v1beta1;automl\312\002\033Google\\Cloud\\Au" + + "toMl\\V1beta1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -54,7 +70,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(), + com.google.cloud.automl.v1beta1.Detection.getDescriptor(), + com.google.cloud.automl.v1beta1.Tables.getDescriptor(), + com.google.cloud.automl.v1beta1.TextExtraction.getDescriptor(), + com.google.cloud.automl.v1beta1.TextSentimentProto.getDescriptor(), com.google.cloud.automl.v1beta1.TranslationProto.getDescriptor(), + com.google.protobuf.AnyProto.getDescriptor(), }, assigner); internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor = @@ -63,11 +84,25 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_AnnotationPayload_descriptor, new java.lang.String[] { - "Translation", "Classification", "AnnotationSpecId", "DisplayName", "Detail", + "Translation", + "Classification", + "ImageObjectDetection", + "VideoClassification", + "TextExtraction", + "TextSentiment", + "Tables", + "AnnotationSpecId", + "DisplayName", + "Detail", }); com.google.api.AnnotationsProto.getDescriptor(); com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(); + com.google.cloud.automl.v1beta1.Detection.getDescriptor(); + com.google.cloud.automl.v1beta1.Tables.getDescriptor(); + com.google.cloud.automl.v1beta1.TextExtraction.getDescriptor(); + com.google.cloud.automl.v1beta1.TextSentimentProto.getDescriptor(); com.google.cloud.automl.v1beta1.TranslationProto.getDescriptor(); + com.google.protobuf.AnyProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpec.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpec.java new file mode 100644 index 000000000000..66be071cf597 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpec.java @@ -0,0 +1,882 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/dataset.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * A definition of an annotation.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.AnnotationSpec} + */ +public final class AnnotationSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.AnnotationSpec) + AnnotationSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use AnnotationSpec.newBuilder() to construct. + private AnnotationSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AnnotationSpec() { + name_ = ""; + displayName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AnnotationSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 72: + { + exampleCount_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DatasetOuterClass + .internal_static_google_cloud_automl_v1beta1_AnnotationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DatasetOuterClass + .internal_static_google_cloud_automl_v1beta1_AnnotationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.AnnotationSpec.class, + com.google.cloud.automl.v1beta1.AnnotationSpec.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. Resource name of the annotation spec.
+   * Form:
+   * 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of the annotation spec.
+   * Form:
+   * 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Required.
+   * The name of the annotation spec to show in the interface. The name can be
+   * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+   * and a-z, underscores
+   * (_), and ASCII digits 0-9.
+   * 
+ * + * string display_name = 2; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The name of the annotation spec to show in the interface. The name can be
+   * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+   * and a-z, underscores
+   * (_), and ASCII digits 0-9.
+   * 
+ * + * string display_name = 2; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXAMPLE_COUNT_FIELD_NUMBER = 9; + private int exampleCount_; + /** + * + * + *
+   * Output only. The number of examples in the parent dataset
+   * labeled by the annotation spec.
+   * 
+ * + * int32 example_count = 9; + */ + public int getExampleCount() { + return exampleCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (exampleCount_ != 0) { + output.writeInt32(9, exampleCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (exampleCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, exampleCount_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.AnnotationSpec)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.AnnotationSpec other = + (com.google.cloud.automl.v1beta1.AnnotationSpec) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (getExampleCount() != other.getExampleCount()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + EXAMPLE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getExampleCount(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.AnnotationSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.AnnotationSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.AnnotationSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.AnnotationSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.AnnotationSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.AnnotationSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.AnnotationSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.AnnotationSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.AnnotationSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.AnnotationSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.AnnotationSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.AnnotationSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.AnnotationSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A definition of an annotation.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.AnnotationSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.AnnotationSpec) + com.google.cloud.automl.v1beta1.AnnotationSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DatasetOuterClass + .internal_static_google_cloud_automl_v1beta1_AnnotationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DatasetOuterClass + .internal_static_google_cloud_automl_v1beta1_AnnotationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.AnnotationSpec.class, + com.google.cloud.automl.v1beta1.AnnotationSpec.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.AnnotationSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + displayName_ = ""; + + exampleCount_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DatasetOuterClass + .internal_static_google_cloud_automl_v1beta1_AnnotationSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.AnnotationSpec getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.AnnotationSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.AnnotationSpec build() { + com.google.cloud.automl.v1beta1.AnnotationSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.AnnotationSpec buildPartial() { + com.google.cloud.automl.v1beta1.AnnotationSpec result = + new com.google.cloud.automl.v1beta1.AnnotationSpec(this); + result.name_ = name_; + result.displayName_ = displayName_; + result.exampleCount_ = exampleCount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.AnnotationSpec) { + return mergeFrom((com.google.cloud.automl.v1beta1.AnnotationSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.AnnotationSpec other) { + if (other == com.google.cloud.automl.v1beta1.AnnotationSpec.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (other.getExampleCount() != 0) { + setExampleCount(other.getExampleCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.AnnotationSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.AnnotationSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of the annotation spec.
+     * Form:
+     * 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of the annotation spec.
+     * Form:
+     * 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of the annotation spec.
+     * Form:
+     * 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of the annotation spec.
+     * Form:
+     * 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of the annotation spec.
+     * Form:
+     * 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required.
+     * The name of the annotation spec to show in the interface. The name can be
+     * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+     * and a-z, underscores
+     * (_), and ASCII digits 0-9.
+     * 
+ * + * string display_name = 2; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required.
+     * The name of the annotation spec to show in the interface. The name can be
+     * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+     * and a-z, underscores
+     * (_), and ASCII digits 0-9.
+     * 
+ * + * string display_name = 2; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required.
+     * The name of the annotation spec to show in the interface. The name can be
+     * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+     * and a-z, underscores
+     * (_), and ASCII digits 0-9.
+     * 
+ * + * string display_name = 2; + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The name of the annotation spec to show in the interface. The name can be
+     * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+     * and a-z, underscores
+     * (_), and ASCII digits 0-9.
+     * 
+ * + * string display_name = 2; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * The name of the annotation spec to show in the interface. The name can be
+     * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+     * and a-z, underscores
+     * (_), and ASCII digits 0-9.
+     * 
+ * + * string display_name = 2; + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private int exampleCount_; + /** + * + * + *
+     * Output only. The number of examples in the parent dataset
+     * labeled by the annotation spec.
+     * 
+ * + * int32 example_count = 9; + */ + public int getExampleCount() { + return exampleCount_; + } + /** + * + * + *
+     * Output only. The number of examples in the parent dataset
+     * labeled by the annotation spec.
+     * 
+ * + * int32 example_count = 9; + */ + public Builder setExampleCount(int value) { + + exampleCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The number of examples in the parent dataset
+     * labeled by the annotation spec.
+     * 
+ * + * int32 example_count = 9; + */ + public Builder clearExampleCount() { + + exampleCount_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.AnnotationSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.AnnotationSpec) + private static final com.google.cloud.automl.v1beta1.AnnotationSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.AnnotationSpec(); + } + + public static com.google.cloud.automl.v1beta1.AnnotationSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotationSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotationSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.AnnotationSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOrBuilder.java new file mode 100644 index 000000000000..458e0c021462 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AnnotationSpecOrBuilder.java @@ -0,0 +1,76 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/dataset.proto + +package com.google.cloud.automl.v1beta1; + +public interface AnnotationSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.AnnotationSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of the annotation spec.
+   * Form:
+   * 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of the annotation spec.
+   * Form:
+   * 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required.
+   * The name of the annotation spec to show in the interface. The name can be
+   * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+   * and a-z, underscores
+   * (_), and ASCII digits 0-9.
+   * 
+ * + * string display_name = 2; + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required.
+   * The name of the annotation spec to show in the interface. The name can be
+   * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+   * and a-z, underscores
+   * (_), and ASCII digits 0-9.
+   * 
+ * + * string display_name = 2; + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. The number of examples in the parent dataset
+   * labeled by the annotation spec.
+   * 
+ * + * int32 example_count = 9; + */ + int getExampleCount(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStats.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStats.java new file mode 100644 index 000000000000..c37dd0822ab7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStats.java @@ -0,0 +1,713 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_stats.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * The data statistics of a series of ARRAY values.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ArrayStats} + */ +public final class ArrayStats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ArrayStats) + ArrayStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArrayStats.newBuilder() to construct. + private ArrayStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ArrayStats() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ArrayStats( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + com.google.cloud.automl.v1beta1.DataStats.Builder subBuilder = null; + if (memberStats_ != null) { + subBuilder = memberStats_.toBuilder(); + } + memberStats_ = + input.readMessage( + com.google.cloud.automl.v1beta1.DataStats.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(memberStats_); + memberStats_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_ArrayStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_ArrayStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ArrayStats.class, + com.google.cloud.automl.v1beta1.ArrayStats.Builder.class); + } + + public static final int MEMBER_STATS_FIELD_NUMBER = 2; + private com.google.cloud.automl.v1beta1.DataStats memberStats_; + /** + * + * + *
+   * Stats of all the values of all arrays, as if they were a single long
+   * series of data. The type depends on the element type of the array.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataStats member_stats = 2; + */ + public boolean hasMemberStats() { + return memberStats_ != null; + } + /** + * + * + *
+   * Stats of all the values of all arrays, as if they were a single long
+   * series of data. The type depends on the element type of the array.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataStats member_stats = 2; + */ + public com.google.cloud.automl.v1beta1.DataStats getMemberStats() { + return memberStats_ == null + ? com.google.cloud.automl.v1beta1.DataStats.getDefaultInstance() + : memberStats_; + } + /** + * + * + *
+   * Stats of all the values of all arrays, as if they were a single long
+   * series of data. The type depends on the element type of the array.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataStats member_stats = 2; + */ + public com.google.cloud.automl.v1beta1.DataStatsOrBuilder getMemberStatsOrBuilder() { + return getMemberStats(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (memberStats_ != null) { + output.writeMessage(2, getMemberStats()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (memberStats_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMemberStats()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.ArrayStats)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ArrayStats other = + (com.google.cloud.automl.v1beta1.ArrayStats) obj; + + if (hasMemberStats() != other.hasMemberStats()) return false; + if (hasMemberStats()) { + if (!getMemberStats().equals(other.getMemberStats())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMemberStats()) { + hash = (37 * hash) + MEMBER_STATS_FIELD_NUMBER; + hash = (53 * hash) + getMemberStats().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ArrayStats parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ArrayStats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ArrayStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ArrayStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ArrayStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ArrayStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ArrayStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ArrayStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ArrayStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ArrayStats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ArrayStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ArrayStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.ArrayStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The data statistics of a series of ARRAY values.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ArrayStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ArrayStats) + com.google.cloud.automl.v1beta1.ArrayStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_ArrayStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_ArrayStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ArrayStats.class, + com.google.cloud.automl.v1beta1.ArrayStats.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.ArrayStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (memberStatsBuilder_ == null) { + memberStats_ = null; + } else { + memberStats_ = null; + memberStatsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_ArrayStats_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ArrayStats getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ArrayStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ArrayStats build() { + com.google.cloud.automl.v1beta1.ArrayStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ArrayStats buildPartial() { + com.google.cloud.automl.v1beta1.ArrayStats result = + new com.google.cloud.automl.v1beta1.ArrayStats(this); + if (memberStatsBuilder_ == null) { + result.memberStats_ = memberStats_; + } else { + result.memberStats_ = memberStatsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.ArrayStats) { + return mergeFrom((com.google.cloud.automl.v1beta1.ArrayStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.ArrayStats other) { + if (other == com.google.cloud.automl.v1beta1.ArrayStats.getDefaultInstance()) return this; + if (other.hasMemberStats()) { + mergeMemberStats(other.getMemberStats()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ArrayStats parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.ArrayStats) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.automl.v1beta1.DataStats memberStats_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DataStats, + com.google.cloud.automl.v1beta1.DataStats.Builder, + com.google.cloud.automl.v1beta1.DataStatsOrBuilder> + memberStatsBuilder_; + /** + * + * + *
+     * Stats of all the values of all arrays, as if they were a single long
+     * series of data. The type depends on the element type of the array.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataStats member_stats = 2; + */ + public boolean hasMemberStats() { + return memberStatsBuilder_ != null || memberStats_ != null; + } + /** + * + * + *
+     * Stats of all the values of all arrays, as if they were a single long
+     * series of data. The type depends on the element type of the array.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataStats member_stats = 2; + */ + public com.google.cloud.automl.v1beta1.DataStats getMemberStats() { + if (memberStatsBuilder_ == null) { + return memberStats_ == null + ? com.google.cloud.automl.v1beta1.DataStats.getDefaultInstance() + : memberStats_; + } else { + return memberStatsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Stats of all the values of all arrays, as if they were a single long
+     * series of data. The type depends on the element type of the array.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataStats member_stats = 2; + */ + public Builder setMemberStats(com.google.cloud.automl.v1beta1.DataStats value) { + if (memberStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + memberStats_ = value; + onChanged(); + } else { + memberStatsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Stats of all the values of all arrays, as if they were a single long
+     * series of data. The type depends on the element type of the array.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataStats member_stats = 2; + */ + public Builder setMemberStats( + com.google.cloud.automl.v1beta1.DataStats.Builder builderForValue) { + if (memberStatsBuilder_ == null) { + memberStats_ = builderForValue.build(); + onChanged(); + } else { + memberStatsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Stats of all the values of all arrays, as if they were a single long
+     * series of data. The type depends on the element type of the array.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataStats member_stats = 2; + */ + public Builder mergeMemberStats(com.google.cloud.automl.v1beta1.DataStats value) { + if (memberStatsBuilder_ == null) { + if (memberStats_ != null) { + memberStats_ = + com.google.cloud.automl.v1beta1.DataStats.newBuilder(memberStats_) + .mergeFrom(value) + .buildPartial(); + } else { + memberStats_ = value; + } + onChanged(); + } else { + memberStatsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Stats of all the values of all arrays, as if they were a single long
+     * series of data. The type depends on the element type of the array.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataStats member_stats = 2; + */ + public Builder clearMemberStats() { + if (memberStatsBuilder_ == null) { + memberStats_ = null; + onChanged(); + } else { + memberStats_ = null; + memberStatsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Stats of all the values of all arrays, as if they were a single long
+     * series of data. The type depends on the element type of the array.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataStats member_stats = 2; + */ + public com.google.cloud.automl.v1beta1.DataStats.Builder getMemberStatsBuilder() { + + onChanged(); + return getMemberStatsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Stats of all the values of all arrays, as if they were a single long
+     * series of data. The type depends on the element type of the array.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataStats member_stats = 2; + */ + public com.google.cloud.automl.v1beta1.DataStatsOrBuilder getMemberStatsOrBuilder() { + if (memberStatsBuilder_ != null) { + return memberStatsBuilder_.getMessageOrBuilder(); + } else { + return memberStats_ == null + ? com.google.cloud.automl.v1beta1.DataStats.getDefaultInstance() + : memberStats_; + } + } + /** + * + * + *
+     * Stats of all the values of all arrays, as if they were a single long
+     * series of data. The type depends on the element type of the array.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataStats member_stats = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DataStats, + com.google.cloud.automl.v1beta1.DataStats.Builder, + com.google.cloud.automl.v1beta1.DataStatsOrBuilder> + getMemberStatsFieldBuilder() { + if (memberStatsBuilder_ == null) { + memberStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DataStats, + com.google.cloud.automl.v1beta1.DataStats.Builder, + com.google.cloud.automl.v1beta1.DataStatsOrBuilder>( + getMemberStats(), getParentForChildren(), isClean()); + memberStats_ = null; + } + return memberStatsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ArrayStats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ArrayStats) + private static final com.google.cloud.automl.v1beta1.ArrayStats DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ArrayStats(); + } + + public static com.google.cloud.automl.v1beta1.ArrayStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArrayStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArrayStats(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ArrayStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStatsOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStatsOrBuilder.java new file mode 100644 index 000000000000..493c5fc5a5e6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ArrayStatsOrBuilder.java @@ -0,0 +1,44 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_stats.proto + +package com.google.cloud.automl.v1beta1; + +public interface ArrayStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ArrayStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Stats of all the values of all arrays, as if they were a single long
+   * series of data. The type depends on the element type of the array.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataStats member_stats = 2; + */ + boolean hasMemberStats(); + /** + * + * + *
+   * Stats of all the values of all arrays, as if they were a single long
+   * series of data. The type depends on the element type of the array.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataStats member_stats = 2; + */ + com.google.cloud.automl.v1beta1.DataStats getMemberStats(); + /** + * + * + *
+   * Stats of all the values of all arrays, as if they were a single long
+   * series of data. The type depends on the element type of the array.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataStats member_stats = 2; + */ + com.google.cloud.automl.v1beta1.DataStatsOrBuilder getMemberStatsOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java index 7935e0855279..8cfb19f7ea41 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/AutoMlProto.java @@ -28,6 +28,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_ListDatasetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_UpdateDatasetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_UpdateDatasetRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -40,6 +44,42 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_automl_v1beta1_ExportDataRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_ExportDataRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_GetAnnotationSpecRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_GetAnnotationSpecRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_GetTableSpecRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_GetTableSpecRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ListTableSpecsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ListTableSpecsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ListTableSpecsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ListTableSpecsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_UpdateTableSpecRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_UpdateTableSpecRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_GetColumnSpecRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_GetColumnSpecRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ListColumnSpecsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ListColumnSpecsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ListColumnSpecsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ListColumnSpecsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_UpdateColumnSpecRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_UpdateColumnSpecRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_automl_v1beta1_CreateModelRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -68,6 +108,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ExportModelRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ExportModelRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -92,110 +140,201 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n)google/cloud/automl/v1beta1/service.pr" + "oto\022\033google.cloud.automl.v1beta1\032\034google" + "/api/annotations.proto\0324google/cloud/aut" - + "oml/v1beta1/annotation_payload.proto\032)go" - + "ogle/cloud/automl/v1beta1/dataset.proto\032" - + "$google/cloud/automl/v1beta1/io.proto\032\'g" - + "oogle/cloud/automl/v1beta1/model.proto\0322" - + "google/cloud/automl/v1beta1/model_evalua" - + "tion.proto\032,google/cloud/automl/v1beta1/" - + "operations.proto\032#google/longrunning/ope" - + "rations.proto\032 google/protobuf/field_mas" - + "k.proto\"]\n\024CreateDatasetRequest\022\016\n\006paren" - + "t\030\001 \001(\t\0225\n\007dataset\030\002 \001(\0132$.google.cloud." - + "automl.v1beta1.Dataset\"!\n\021GetDatasetRequ" - + "est\022\014\n\004name\030\001 \001(\t\"\\\n\023ListDatasetsRequest" - + "\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter\030\003 \001(\t\022\021\n\tpage" - + "_size\030\004 \001(\005\022\022\n\npage_token\030\006 \001(\t\"g\n\024ListD" - + "atasetsResponse\0226\n\010datasets\030\001 \003(\0132$.goog" - + "le.cloud.automl.v1beta1.Dataset\022\027\n\017next_" - + "page_token\030\002 \001(\t\"$\n\024DeleteDatasetRequest" - + "\022\014\n\004name\030\001 \001(\t\"a\n\021ImportDataRequest\022\014\n\004n" - + "ame\030\001 \001(\t\022>\n\014input_config\030\003 \001(\0132(.google" - + ".cloud.automl.v1beta1.InputConfig\"c\n\021Exp" - + "ortDataRequest\022\014\n\004name\030\001 \001(\t\022@\n\routput_c" - + "onfig\030\003 \001(\0132).google.cloud.automl.v1beta" - + "1.OutputConfig\"W\n\022CreateModelRequest\022\016\n\006" - + "parent\030\001 \001(\t\0221\n\005model\030\004 \001(\0132\".google.clo" - + "ud.automl.v1beta1.Model\"\037\n\017GetModelReque" - + "st\022\014\n\004name\030\001 \001(\t\"Z\n\021ListModelsRequest\022\016\n" - + "\006parent\030\001 \001(\t\022\016\n\006filter\030\003 \001(\t\022\021\n\tpage_si" - + "ze\030\004 \001(\005\022\022\n\npage_token\030\006 \001(\t\"`\n\022ListMode" - + "lsResponse\0221\n\005model\030\001 \003(\0132\".google.cloud" - + ".automl.v1beta1.Model\022\027\n\017next_page_token" - + "\030\002 \001(\t\"\"\n\022DeleteModelRequest\022\014\n\004name\030\001 \001" - + "(\t\"\"\n\022DeployModelRequest\022\014\n\004name\030\001 \001(\t\"$" - + "\n\024UndeployModelRequest\022\014\n\004name\030\001 \001(\t\")\n\031" - + "GetModelEvaluationRequest\022\014\n\004name\030\001 \001(\t\"" - + "d\n\033ListModelEvaluationsRequest\022\016\n\006parent" - + "\030\001 \001(\t\022\016\n\006filter\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(" - + "\005\022\022\n\npage_token\030\006 \001(\t\"\177\n\034ListModelEvalua" - + "tionsResponse\022F\n\020model_evaluation\030\001 \003(\0132" - + ",.google.cloud.automl.v1beta1.ModelEvalu" - + "ation\022\027\n\017next_page_token\030\002 \001(\t2\336\022\n\006AutoM" - + "l\022\254\001\n\rCreateDataset\0221.google.cloud.autom" - + "l.v1beta1.CreateDatasetRequest\032$.google." - + "cloud.automl.v1beta1.Dataset\"B\202\323\344\223\002<\"1/v" - + "1beta1/{parent=projects/*/locations/*}/d" - + "atasets:\007dataset\022\235\001\n\nGetDataset\022..google" - + ".cloud.automl.v1beta1.GetDatasetRequest\032" - + "$.google.cloud.automl.v1beta1.Dataset\"9\202" - + "\323\344\223\0023\0221/v1beta1/{name=projects/*/locatio" - + "ns/*/datasets/*}\022\256\001\n\014ListDatasets\0220.goog" - + "le.cloud.automl.v1beta1.ListDatasetsRequ" - + "est\0321.google.cloud.automl.v1beta1.ListDa" - + "tasetsResponse\"9\202\323\344\223\0023\0221/v1beta1/{parent" - + "=projects/*/locations/*}/datasets\022\234\001\n\rDe" - + "leteDataset\0221.google.cloud.automl.v1beta" - + "1.DeleteDatasetRequest\032\035.google.longrunn" - + "ing.Operation\"9\202\323\344\223\0023*1/v1beta1/{name=pr" - + "ojects/*/locations/*/datasets/*}\022\244\001\n\nImp" - + "ortData\022..google.cloud.automl.v1beta1.Im" - + "portDataRequest\032\035.google.longrunning.Ope" - + "ration\"G\202\323\344\223\002A\"\202\323\344\223\0028\"//v1beta1" - + "/{parent=projects/*/locations/*}/models:" - + "\005model\022\225\001\n\010GetModel\022,.google.cloud.autom" - + "l.v1beta1.GetModelRequest\032\".google.cloud" - + ".automl.v1beta1.Model\"7\202\323\344\223\0021\022//v1beta1/" - + "{name=projects/*/locations/*/models/*}\022\246" - + "\001\n\nListModels\022..google.cloud.automl.v1be" - + "ta1.ListModelsRequest\032/.google.cloud.aut" - + "oml.v1beta1.ListModelsResponse\"7\202\323\344\223\0021\022/" - + "/v1beta1/{parent=projects/*/locations/*}" - + "/models\022\226\001\n\013DeleteModel\022/.google.cloud.a" - + "utoml.v1beta1.DeleteModelRequest\032\035.googl" - + "e.longrunning.Operation\"7\202\323\344\223\0021*//v1beta" - + "1/{name=projects/*/locations/*/models/*}" - + "\022\240\001\n\013DeployModel\022/.google.cloud.automl.v" - + "1beta1.DeployModelRequest\032\035.google.longr" - + "unning.Operation\"A\202\323\344\223\002;\"6/v1beta1/{name" - + "=projects/*/locations/*/models/*}:deploy" - + ":\001*\022\246\001\n\rUndeployModel\0221.google.cloud.aut" - + "oml.v1beta1.UndeployModelRequest\032\035.googl" - + "e.longrunning.Operation\"C\202\323\344\223\002=\"8/v1beta" - + "1/{name=projects/*/locations/*/models/*}" - + ":undeploy:\001*\022\306\001\n\022GetModelEvaluation\0226.go" - + "ogle.cloud.automl.v1beta1.GetModelEvalua" - + "tionRequest\032,.google.cloud.automl.v1beta" - + "1.ModelEvaluation\"J\202\323\344\223\002D\022B/v1beta1/{nam" - + "e=projects/*/locations/*/models/*/modelE" - + "valuations/*}\022\327\001\n\024ListModelEvaluations\0228" - + ".google.cloud.automl.v1beta1.ListModelEv" - + "aluationsRequest\0329.google.cloud.automl.v" - + "1beta1.ListModelEvaluationsResponse\"J\202\323\344" - + "\223\002D\022B/v1beta1/{parent=projects/*/locatio" - + "ns/*/models/*}/modelEvaluationsB\221\001\n\037com." - + "google.cloud.automl.v1beta1B\013AutoMlProto" - + "P\001ZAgoogle.golang.org/genproto/googleapi" - + "s/cloud/automl/v1beta1;automl\312\002\033Google\\C" - + "loud\\AutoMl\\V1beta1b\006proto3" + + "oml/v1beta1/annotation_payload.proto\032-go" + + "ogle/cloud/automl/v1beta1/column_spec.pr" + + "oto\032)google/cloud/automl/v1beta1/dataset" + + ".proto\032\'google/cloud/automl/v1beta1/imag" + + "e.proto\032$google/cloud/automl/v1beta1/io." + + "proto\032\'google/cloud/automl/v1beta1/model" + + ".proto\0322google/cloud/automl/v1beta1/mode" + + "l_evaluation.proto\032,google/cloud/automl/" + + "v1beta1/operations.proto\032,google/cloud/a" + + "utoml/v1beta1/table_spec.proto\032#google/l" + + "ongrunning/operations.proto\032 google/prot" + + "obuf/field_mask.proto\"]\n\024CreateDatasetRe" + + "quest\022\016\n\006parent\030\001 \001(\t\0225\n\007dataset\030\002 \001(\0132$" + + ".google.cloud.automl.v1beta1.Dataset\"!\n\021" + + "GetDatasetRequest\022\014\n\004name\030\001 \001(\t\"\\\n\023ListD" + + "atasetsRequest\022\016\n\006parent\030\001 \001(\t\022\016\n\006filter" + + "\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_token\030" + + "\006 \001(\t\"g\n\024ListDatasetsResponse\0226\n\010dataset" + + "s\030\001 \003(\0132$.google.cloud.automl.v1beta1.Da" + + "taset\022\027\n\017next_page_token\030\002 \001(\t\"~\n\024Update" + + "DatasetRequest\0225\n\007dataset\030\001 \001(\0132$.google" + + ".cloud.automl.v1beta1.Dataset\022/\n\013update_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"$" + + "\n\024DeleteDatasetRequest\022\014\n\004name\030\001 \001(\t\"a\n\021" + + "ImportDataRequest\022\014\n\004name\030\001 \001(\t\022>\n\014input" + + "_config\030\003 \001(\0132(.google.cloud.automl.v1be" + + "ta1.InputConfig\"c\n\021ExportDataRequest\022\014\n\004" + + "name\030\001 \001(\t\022@\n\routput_config\030\003 \001(\0132).goog" + + "le.cloud.automl.v1beta1.OutputConfig\"(\n\030" + + "GetAnnotationSpecRequest\022\014\n\004name\030\001 \001(\t\"S" + + "\n\023GetTableSpecRequest\022\014\n\004name\030\001 \001(\t\022.\n\nf" + + "ield_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "ask\"\216\001\n\025ListTableSpecsRequest\022\016\n\006parent\030" + + "\001 \001(\t\022.\n\nfield_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMask\022\016\n\006filter\030\003 \001(\t\022\021\n\tpage_si" + + "ze\030\004 \001(\005\022\022\n\npage_token\030\006 \001(\t\"n\n\026ListTabl" + + "eSpecsResponse\022;\n\013table_specs\030\001 \003(\0132&.go" + + "ogle.cloud.automl.v1beta1.TableSpec\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\"\205\001\n\026UpdateTableSpec" + + "Request\022:\n\ntable_spec\030\001 \001(\0132&.google.clo" + + "ud.automl.v1beta1.TableSpec\022/\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\"T\n\024" + + "GetColumnSpecRequest\022\014\n\004name\030\001 \001(\t\022.\n\nfi" + + "eld_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + + "sk\"\217\001\n\026ListColumnSpecsRequest\022\016\n\006parent\030" + + "\001 \001(\t\022.\n\nfield_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMask\022\016\n\006filter\030\003 \001(\t\022\021\n\tpage_si" + + "ze\030\004 \001(\005\022\022\n\npage_token\030\006 \001(\t\"q\n\027ListColu" + + "mnSpecsResponse\022=\n\014column_specs\030\001 \003(\0132\'." + + "google.cloud.automl.v1beta1.ColumnSpec\022\027" + + "\n\017next_page_token\030\002 \001(\t\"\210\001\n\027UpdateColumn" + + "SpecRequest\022<\n\013column_spec\030\001 \001(\0132\'.googl" + + "e.cloud.automl.v1beta1.ColumnSpec\022/\n\013upd" + + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + + "sk\"W\n\022CreateModelRequest\022\016\n\006parent\030\001 \001(\t" + + "\0221\n\005model\030\004 \001(\0132\".google.cloud.automl.v1" + + "beta1.Model\"\037\n\017GetModelRequest\022\014\n\004name\030\001" + + " \001(\t\"Z\n\021ListModelsRequest\022\016\n\006parent\030\001 \001(" + + "\t\022\016\n\006filter\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\022\022\n\n" + + "page_token\030\006 \001(\t\"`\n\022ListModelsResponse\0221" + + "\n\005model\030\001 \003(\0132\".google.cloud.automl.v1be" + + "ta1.Model\022\027\n\017next_page_token\030\002 \001(\t\"\"\n\022De" + + "leteModelRequest\022\014\n\004name\030\001 \001(\t\"\306\001\n\022Deplo" + + "yModelRequest\022\204\001\n0image_object_detection" + + "_model_deployment_metadata\030\002 \001(\0132H.googl" + + "e.cloud.automl.v1beta1.ImageObjectDetect" + + "ionModelDeploymentMetadataH\000\022\014\n\004name\030\001 \001" + + "(\tB\033\n\031model_deployment_metadata\"$\n\024Undep" + + "loyModelRequest\022\014\n\004name\030\001 \001(\t\"o\n\022ExportM" + + "odelRequest\022\014\n\004name\030\001 \001(\t\022K\n\routput_conf" + + "ig\030\003 \001(\01324.google.cloud.automl.v1beta1.M" + + "odelExportOutputConfig\"\207\001\n\036ExportEvaluat" + + "edExamplesRequest\022\014\n\004name\030\001 \001(\t\022W\n\routpu" + + "t_config\030\003 \001(\0132@.google.cloud.automl.v1b" + + "eta1.ExportEvaluatedExamplesOutputConfig" + + "\")\n\031GetModelEvaluationRequest\022\014\n\004name\030\001 " + + "\001(\t\"d\n\033ListModelEvaluationsRequest\022\016\n\006pa" + + "rent\030\001 \001(\t\022\016\n\006filter\030\003 \001(\t\022\021\n\tpage_size\030" + + "\004 \001(\005\022\022\n\npage_token\030\006 \001(\t\"\177\n\034ListModelEv" + + "aluationsResponse\022F\n\020model_evaluation\030\001 " + + "\003(\0132,.google.cloud.automl.v1beta1.ModelE" + + "valuation\022\027\n\017next_page_token\030\002 \001(\t2\216\"\n\006A" + + "utoMl\022\254\001\n\rCreateDataset\0221.google.cloud.a" + + "utoml.v1beta1.CreateDatasetRequest\032$.goo" + + "gle.cloud.automl.v1beta1.Dataset\"B\202\323\344\223\002<" + + "\"1/v1beta1/{parent=projects/*/locations/" + + "*}/datasets:\007dataset\022\235\001\n\nGetDataset\022..go" + + "ogle.cloud.automl.v1beta1.GetDatasetRequ" + + "est\032$.google.cloud.automl.v1beta1.Datase" + + "t\"9\202\323\344\223\0023\0221/v1beta1/{name=projects/*/loc" + + "ations/*/datasets/*}\022\256\001\n\014ListDatasets\0220." + + "google.cloud.automl.v1beta1.ListDatasets" + + "Request\0321.google.cloud.automl.v1beta1.Li" + + "stDatasetsResponse\"9\202\323\344\223\0023\0221/v1beta1/{pa" + + "rent=projects/*/locations/*}/datasets\022\264\001" + + "\n\rUpdateDataset\0221.google.cloud.automl.v1" + + "beta1.UpdateDatasetRequest\032$.google.clou" + + "d.automl.v1beta1.Dataset\"J\202\323\344\223\002D29/v1bet" + + "a1/{dataset.name=projects/*/locations/*/" + + "datasets/*}:\007dataset\022\234\001\n\rDeleteDataset\0221" + + ".google.cloud.automl.v1beta1.DeleteDatas" + + "etRequest\032\035.google.longrunning.Operation" + + "\"9\202\323\344\223\0023*1/v1beta1/{name=projects/*/loca" + + "tions/*/datasets/*}\022\244\001\n\nImportData\022..goo" + + "gle.cloud.automl.v1beta1.ImportDataReque" + + "st\032\035.google.longrunning.Operation\"G\202\323\344\223\002" + + "A\"/v1beta1/{n" + + "ame=projects/*/locations/*/datasets/*/ta" + + "bleSpecs/*}\022\301\001\n\016ListTableSpecs\0222.google." + + "cloud.automl.v1beta1.ListTableSpecsReque" + + "st\0323.google.cloud.automl.v1beta1.ListTab" + + "leSpecsResponse\"F\202\323\344\223\002@\022>/v1beta1/{paren" + + "t=projects/*/locations/*/datasets/*}/tab" + + "leSpecs\022\315\001\n\017UpdateTableSpec\0223.google.clo" + + "ud.automl.v1beta1.UpdateTableSpecRequest" + + "\032&.google.cloud.automl.v1beta1.TableSpec" + + "\"]\202\323\344\223\002W2I/v1beta1/{table_spec.name=proj" + + "ects/*/locations/*/datasets/*/tableSpecs" + + "/*}:\ntable_spec\022\301\001\n\rGetColumnSpec\0221.goog" + + "le.cloud.automl.v1beta1.GetColumnSpecReq" + + "uest\032\'.google.cloud.automl.v1beta1.Colum" + + "nSpec\"T\202\323\344\223\002N\022L/v1beta1/{name=projects/*" + + "/locations/*/datasets/*/tableSpecs/*/col" + + "umnSpecs/*}\022\322\001\n\017ListColumnSpecs\0223.google" + + ".cloud.automl.v1beta1.ListColumnSpecsReq" + + "uest\0324.google.cloud.automl.v1beta1.ListC" + + "olumnSpecsResponse\"T\202\323\344\223\002N\022L/v1beta1/{pa" + + "rent=projects/*/locations/*/datasets/*/t" + + "ableSpecs/*}/columnSpecs\022\340\001\n\020UpdateColum" + + "nSpec\0224.google.cloud.automl.v1beta1.Upda" + + "teColumnSpecRequest\032\'.google.cloud.autom" + + "l.v1beta1.ColumnSpec\"m\202\323\344\223\002g2X/v1beta1/{" + + "column_spec.name=projects/*/locations/*/" + + "datasets/*/tableSpecs/*/columnSpecs/*}:\013" + + "column_spec\022\235\001\n\013CreateModel\022/.google.clo" + + "ud.automl.v1beta1.CreateModelRequest\032\035.g" + + "oogle.longrunning.Operation\">\202\323\344\223\0028\"//v1" + + "beta1/{parent=projects/*/locations/*}/mo" + + "dels:\005model\022\225\001\n\010GetModel\022,.google.cloud." + + "automl.v1beta1.GetModelRequest\032\".google." + + "cloud.automl.v1beta1.Model\"7\202\323\344\223\0021\022//v1b" + + "eta1/{name=projects/*/locations/*/models" + + "/*}\022\246\001\n\nListModels\022..google.cloud.automl" + + ".v1beta1.ListModelsRequest\032/.google.clou" + + "d.automl.v1beta1.ListModelsResponse\"7\202\323\344" + + "\223\0021\022//v1beta1/{parent=projects/*/locatio" + + "ns/*}/models\022\226\001\n\013DeleteModel\022/.google.cl" + + "oud.automl.v1beta1.DeleteModelRequest\032\035." + + "google.longrunning.Operation\"7\202\323\344\223\0021*//v" + + "1beta1/{name=projects/*/locations/*/mode" + + "ls/*}\022\240\001\n\013DeployModel\022/.google.cloud.aut" + + "oml.v1beta1.DeployModelRequest\032\035.google." + + "longrunning.Operation\"A\202\323\344\223\002;\"6/v1beta1/" + + "{name=projects/*/locations/*/models/*}:d" + + "eploy:\001*\022\246\001\n\rUndeployModel\0221.google.clou" + + "d.automl.v1beta1.UndeployModelRequest\032\035." + + "google.longrunning.Operation\"C\202\323\344\223\002=\"8/v" + + "1beta1/{name=projects/*/locations/*/mode" + + "ls/*}:undeploy:\001*\022\240\001\n\013ExportModel\022/.goog" + + "le.cloud.automl.v1beta1.ExportModelReque" + + "st\032\035.google.longrunning.Operation\"A\202\323\344\223\002" + + ";\"6/v1beta1/{name=projects/*/locations/*" + + "/models/*}:export:\001*\022\311\001\n\027ExportEvaluated" + + "Examples\022;.google.cloud.automl.v1beta1.E" + + "xportEvaluatedExamplesRequest\032\035.google.l" + + "ongrunning.Operation\"R\202\323\344\223\002L\"G/v1beta1/{" + + "name=projects/*/locations/*/models/*}:ex" + + "portEvaluatedExamples:\001*\022\306\001\n\022GetModelEva" + + "luation\0226.google.cloud.automl.v1beta1.Ge" + + "tModelEvaluationRequest\032,.google.cloud.a" + + "utoml.v1beta1.ModelEvaluation\"J\202\323\344\223\002D\022B/" + + "v1beta1/{name=projects/*/locations/*/mod" + + "els/*/modelEvaluations/*}\022\327\001\n\024ListModelE" + + "valuations\0228.google.cloud.automl.v1beta1" + + ".ListModelEvaluationsRequest\0329.google.cl" + + "oud.automl.v1beta1.ListModelEvaluationsR" + + "esponse\"J\202\323\344\223\002D\022B/v1beta1/{parent=projec" + + "ts/*/locations/*/models/*}/modelEvaluati" + + "onsB\221\001\n\037com.google.cloud.automl.v1beta1B" + + "\013AutoMlProtoP\001ZAgoogle.golang.org/genpro" + + "to/googleapis/cloud/automl/v1beta1;autom" + + "l\312\002\033Google\\Cloud\\AutoMl\\V1beta1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -210,11 +349,14 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.getDescriptor(), + com.google.cloud.automl.v1beta1.ColumnSpecOuterClass.getDescriptor(), com.google.cloud.automl.v1beta1.DatasetOuterClass.getDescriptor(), + com.google.cloud.automl.v1beta1.ImageProto.getDescriptor(), com.google.cloud.automl.v1beta1.Io.getDescriptor(), com.google.cloud.automl.v1beta1.ModelOuterClass.getDescriptor(), com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass.getDescriptor(), com.google.cloud.automl.v1beta1.Operations.getDescriptor(), + com.google.cloud.automl.v1beta1.TableSpecOuterClass.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), }, @@ -251,8 +393,16 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Datasets", "NextPageToken", }); - internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_descriptor = + internal_static_google_cloud_automl_v1beta1_UpdateDatasetRequest_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_automl_v1beta1_UpdateDatasetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_UpdateDatasetRequest_descriptor, + new java.lang.String[] { + "Dataset", "UpdateMask", + }); + internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_descriptor = + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_DeleteDatasetRequest_descriptor, @@ -260,7 +410,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Name", }); internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_automl_v1beta1_ImportDataRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_ImportDataRequest_descriptor, @@ -268,15 +418,87 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Name", "InputConfig", }); internal_static_google_cloud_automl_v1beta1_ExportDataRequest_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_automl_v1beta1_ExportDataRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_ExportDataRequest_descriptor, new java.lang.String[] { "Name", "OutputConfig", }); + internal_static_google_cloud_automl_v1beta1_GetAnnotationSpecRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_automl_v1beta1_GetAnnotationSpecRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_GetAnnotationSpecRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_automl_v1beta1_GetTableSpecRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_automl_v1beta1_GetTableSpecRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_GetTableSpecRequest_descriptor, + new java.lang.String[] { + "Name", "FieldMask", + }); + internal_static_google_cloud_automl_v1beta1_ListTableSpecsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_automl_v1beta1_ListTableSpecsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ListTableSpecsRequest_descriptor, + new java.lang.String[] { + "Parent", "FieldMask", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_automl_v1beta1_ListTableSpecsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_automl_v1beta1_ListTableSpecsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ListTableSpecsResponse_descriptor, + new java.lang.String[] { + "TableSpecs", "NextPageToken", + }); + internal_static_google_cloud_automl_v1beta1_UpdateTableSpecRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_automl_v1beta1_UpdateTableSpecRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_UpdateTableSpecRequest_descriptor, + new java.lang.String[] { + "TableSpec", "UpdateMask", + }); + internal_static_google_cloud_automl_v1beta1_GetColumnSpecRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_automl_v1beta1_GetColumnSpecRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_GetColumnSpecRequest_descriptor, + new java.lang.String[] { + "Name", "FieldMask", + }); + internal_static_google_cloud_automl_v1beta1_ListColumnSpecsRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_automl_v1beta1_ListColumnSpecsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ListColumnSpecsRequest_descriptor, + new java.lang.String[] { + "Parent", "FieldMask", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_automl_v1beta1_ListColumnSpecsResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_automl_v1beta1_ListColumnSpecsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ListColumnSpecsResponse_descriptor, + new java.lang.String[] { + "ColumnSpecs", "NextPageToken", + }); + internal_static_google_cloud_automl_v1beta1_UpdateColumnSpecRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_automl_v1beta1_UpdateColumnSpecRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_UpdateColumnSpecRequest_descriptor, + new java.lang.String[] { + "ColumnSpec", "UpdateMask", + }); internal_static_google_cloud_automl_v1beta1_CreateModelRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_automl_v1beta1_CreateModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_CreateModelRequest_descriptor, @@ -284,7 +506,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Parent", "Model", }); internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_automl_v1beta1_GetModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_GetModelRequest_descriptor, @@ -292,7 +514,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Name", }); internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_automl_v1beta1_ListModelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_ListModelsRequest_descriptor, @@ -300,7 +522,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Parent", "Filter", "PageSize", "PageToken", }); internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_automl_v1beta1_ListModelsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_ListModelsResponse_descriptor, @@ -308,7 +530,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Model", "NextPageToken", }); internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_DeleteModelRequest_descriptor, @@ -316,23 +538,39 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Name", }); internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_automl_v1beta1_DeployModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_DeployModelRequest_descriptor, new java.lang.String[] { - "Name", + "ImageObjectDetectionModelDeploymentMetadata", "Name", "ModelDeploymentMetadata", }); internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_UndeployModelRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_cloud_automl_v1beta1_ExportModelRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_automl_v1beta1_ExportModelRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ExportModelRequest_descriptor, + new java.lang.String[] { + "Name", "OutputConfig", + }); + internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesRequest_descriptor, + new java.lang.String[] { + "Name", "OutputConfig", + }); internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_GetModelEvaluationRequest_descriptor, @@ -340,7 +578,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Name", }); internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsRequest_descriptor, @@ -348,7 +586,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Parent", "Filter", "PageSize", "PageToken", }); internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_ListModelEvaluationsResponse_descriptor, @@ -362,11 +600,14 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.getDescriptor(); + com.google.cloud.automl.v1beta1.ColumnSpecOuterClass.getDescriptor(); com.google.cloud.automl.v1beta1.DatasetOuterClass.getDescriptor(); + com.google.cloud.automl.v1beta1.ImageProto.getDescriptor(); com.google.cloud.automl.v1beta1.Io.getDescriptor(); com.google.cloud.automl.v1beta1.ModelOuterClass.getDescriptor(); com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass.getDescriptor(); com.google.cloud.automl.v1beta1.Operations.getDescriptor(); + com.google.cloud.automl.v1beta1.TableSpecOuterClass.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfig.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfig.java new file mode 100644 index 000000000000..412e0fbd983b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfig.java @@ -0,0 +1,1302 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/io.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Input configuration for BatchPredict Action.
+ * The format of input depends on the ML problem of the model used for
+ * prediction. As input source the
+ * [gcs_source][google.cloud.automl.v1beta1.InputConfig.gcs_source]
+ * is expected, unless specified otherwise.
+ * The formats are represented in EBNF with commas being literal and with
+ * non-terminal symbols defined near the end of this comment. The formats are:
+ *  *  For Video Classification:
+ *         CSV file(s) with each line in format:
+ *           GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END
+ *           GCS_FILE_PATH leads to video of up to 50GB in size and up to 3h
+ *           duration. Supported extensions: .MOV, .MPEG4, .MP4, .AVI.
+ *           TIME_SEGMENT_START and TIME_SEGMENT_END must be within the
+ *           length of the video, and end has to be after the start.
+ *         Three sample rows:
+ *           gs://folder/video1.mp4,10,40
+ *           gs://folder/video1.mp4,20,60
+ *           gs://folder/vid2.mov,0,inf
+ *  * For Text Extraction
+ *         .JSONL (i.e. JSON Lines) file(s) which either provide text in-line or
+ *         as documents (for a single BatchPredict call only one of the these
+ *         formats may be used).
+ *         The in-line .JSONL file(s) contain per line a proto that
+ *           wraps a temporary user-assigned TextSnippet ID (string up to 2000
+ *           characters long) called "id" followed by a TextSnippet proto (in
+ *           json representation). Any given text snippet content must have
+ *           30,000 characters or less, and also be UTF-8 NFC encoded (ASCII
+ *           already is). The IDs provided should be unique.
+ *         The document .JSONL file(s) contain, per line, a proto that wraps a
+ *           Document proto with input_config set. Only PDF documents are
+ *           supported now, and each document must be up to 2MB large.
+ *         Any given .JSONL file must be 100MB or smaller, and no more than 20
+ *         files may be given.
+ *         Sample in-line JSON Lines file (presented here with artificial line
+ *         breaks, but the only actual line break is denoted by \n):
+ *           {
+ *             "id": "my_first_id",
+ *             "text_snippet": { "content": "dog car cat"}
+ *           }\n
+ *           {
+ *             "id": "2",
+ *             "text_snippet": {
+ *               "content": "An elaborate content",
+ *               "mime_type": "text/plain"
+ *             }
+ *           }
+ *         Sample document JSON Lines file (presented here with artificial line
+ *         breaks, but the only actual line break is denoted by \n).:
+ *           {
+ *             "document": {
+ *               "input_config": {
+ *                 "gcs_source": { "input_uris": [ "gs://folder/document1.pdf" ]
+ *                 }
+ *               }
+ *             }
+ *           }\n
+ *           {
+ *             "document": {
+ *               "input_config": {
+ *                 "gcs_source": { "input_uris": [ "gs://folder/document2.pdf" ]
+ *                 }
+ *               }
+ *             }
+ *           }
+ *  *  For Tables:
+ *         Either
+ *         [gcs_source][google.cloud.automl.v1beta1.InputConfig.gcs_source] or
+ * [bigquery_source][google.cloud.automl.v1beta1.InputConfig.bigquery_source].
+ *         For gcs_source:
+ *           CSV file(s), where first file must have a header containing
+ *           column names, other files may have such header line too, and all
+ *           other lines contain values for the header columns. The column
+ *           names must be exactly same (order may differ) as the model's
+ * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+ *           [display_names][google.cloud.automl.v1beta1.display_name], with
+ *           values compatible with these column specs data types.
+ *           Prediction on all the rows, i.e. the CSV lines, will be
+ *           attempted.
+ *           Each line must have 1,000,000 or fewer characters.
+ *           First three sample rows of a CSV file:
+ *           "First Name","Last Name","Dob","Addresses"
+ * "John","Doe","1968-01-22","[{"status":"current","address":"123_First_Avenue","city":"Seattle","state":"WA","zip":"11111","numberOfYears":"1"},{"status":"previous","address":"456_Main_Street","city":"Portland","state":"OR","zip":"22222","numberOfYears":"5"}]"
+ * "Jane","Doe","1980-10-16","[{"status":"current","address":"789_Any_Avenue","city":"Albany","state":"NY","zip":"33333","numberOfYears":"2"},{"status":"previous","address":"321_Main_Street","city":"Hoboken","state":"NJ","zip":"44444","numberOfYears":"3"}]}
+ *         For bigquery_source:
+ *           An URI of a BigQuery table. The table's columns must be exactly
+ *           same (order may differ) as all model's
+ * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+ *           [display_names][google.cloud.automl.v1beta1.display_name], with
+ *           data compatible with these colum specs data types.
+ *           Prediction on all the rows of the table will be attempted.
+ *  Definitions:
+ *  GCS_FILE_PATH = A path to file on GCS, e.g. "gs://folder/video.avi".
+ *  TIME_SEGMENT_START = TIME_OFFSET
+ *                       Expresses a beginning, inclusive, of a time segment
+ *                       within an
+ *                       example that has a time dimension (e.g. video).
+ *  TIME_SEGMENT_END = TIME_OFFSET
+ *                     Expresses an end, exclusive, of a time segment within
+ *                     an example that has a time dimension (e.g. video).
+ *  TIME_OFFSET = A number of seconds as measured from the start of an
+ *                example (e.g. video). Fractions are allowed, up to a
+ *                microsecond precision. "inf" is allowed and it means the end
+ *                of the example.
+ *  Errors:
+ *  If any of the provided CSV files can't be parsed or if more than certain
+ *  percent of CSV rows cannot be processed then the operation fails and
+ *  prediction does not happen. Regardless of overall success or failure the
+ *  per-row failures, up to a certain count cap, will be listed in
+ *  Operation.metadata.partial_failures.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictInputConfig} + */ +public final class BatchPredictInputConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.BatchPredictInputConfig) + BatchPredictInputConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchPredictInputConfig.newBuilder() to construct. + private BatchPredictInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchPredictInputConfig() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BatchPredictInputConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.automl.v1beta1.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 1) { + subBuilder = ((com.google.cloud.automl.v1beta1.GcsSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.automl.v1beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.GcsSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 1; + break; + } + case 18: + { + com.google.cloud.automl.v1beta1.BigQuerySource.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = ((com.google.cloud.automl.v1beta1.BigQuerySource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.automl.v1beta1.BigQuerySource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.BigQuerySource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 2; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_BatchPredictInputConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_BatchPredictInputConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.BatchPredictInputConfig.class, + com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder.class); + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public enum SourceCase implements com.google.protobuf.Internal.EnumLite { + GCS_SOURCE(1), + BIGQUERY_SOURCE(2), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 1: + return GCS_SOURCE; + case 2: + return BIGQUERY_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int GCS_SOURCE_FIELD_NUMBER = 1; + /** + * + * + *
+   * The Google Cloud Storage location for the input content.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + public boolean hasGcsSource() { + return sourceCase_ == 1; + } + /** + * + * + *
+   * The Google Cloud Storage location for the input content.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + public com.google.cloud.automl.v1beta1.GcsSource getGcsSource() { + if (sourceCase_ == 1) { + return (com.google.cloud.automl.v1beta1.GcsSource) source_; + } + return com.google.cloud.automl.v1beta1.GcsSource.getDefaultInstance(); + } + /** + * + * + *
+   * The Google Cloud Storage location for the input content.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + public com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if (sourceCase_ == 1) { + return (com.google.cloud.automl.v1beta1.GcsSource) source_; + } + return com.google.cloud.automl.v1beta1.GcsSource.getDefaultInstance(); + } + + public static final int BIGQUERY_SOURCE_FIELD_NUMBER = 2; + /** + * + * + *
+   * The BigQuery location for the input content.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; + */ + public boolean hasBigquerySource() { + return sourceCase_ == 2; + } + /** + * + * + *
+   * The BigQuery location for the input content.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; + */ + public com.google.cloud.automl.v1beta1.BigQuerySource getBigquerySource() { + if (sourceCase_ == 2) { + return (com.google.cloud.automl.v1beta1.BigQuerySource) source_; + } + return com.google.cloud.automl.v1beta1.BigQuerySource.getDefaultInstance(); + } + /** + * + * + *
+   * The BigQuery location for the input content.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; + */ + public com.google.cloud.automl.v1beta1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.automl.v1beta1.BigQuerySource) source_; + } + return com.google.cloud.automl.v1beta1.BigQuerySource.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (sourceCase_ == 1) { + output.writeMessage(1, (com.google.cloud.automl.v1beta1.GcsSource) source_); + } + if (sourceCase_ == 2) { + output.writeMessage(2, (com.google.cloud.automl.v1beta1.BigQuerySource) source_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sourceCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.automl.v1beta1.GcsSource) source_); + } + if (sourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.automl.v1beta1.BigQuerySource) source_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.BatchPredictInputConfig)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.BatchPredictInputConfig other = + (com.google.cloud.automl.v1beta1.BatchPredictInputConfig) obj; + + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 1: + if (!getGcsSource().equals(other.getGcsSource())) return false; + break; + case 2: + if (!getBigquerySource().equals(other.getBigquerySource())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (sourceCase_) { + case 1: + hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGcsSource().hashCode(); + break; + case 2: + hash = (37 * hash) + BIGQUERY_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getBigquerySource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.BatchPredictInputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictInputConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictInputConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictInputConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictInputConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictInputConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictInputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictInputConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictInputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictInputConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictInputConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictInputConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.BatchPredictInputConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input configuration for BatchPredict Action.
+   * The format of input depends on the ML problem of the model used for
+   * prediction. As input source the
+   * [gcs_source][google.cloud.automl.v1beta1.InputConfig.gcs_source]
+   * is expected, unless specified otherwise.
+   * The formats are represented in EBNF with commas being literal and with
+   * non-terminal symbols defined near the end of this comment. The formats are:
+   *  *  For Video Classification:
+   *         CSV file(s) with each line in format:
+   *           GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END
+   *           GCS_FILE_PATH leads to video of up to 50GB in size and up to 3h
+   *           duration. Supported extensions: .MOV, .MPEG4, .MP4, .AVI.
+   *           TIME_SEGMENT_START and TIME_SEGMENT_END must be within the
+   *           length of the video, and end has to be after the start.
+   *         Three sample rows:
+   *           gs://folder/video1.mp4,10,40
+   *           gs://folder/video1.mp4,20,60
+   *           gs://folder/vid2.mov,0,inf
+   *  * For Text Extraction
+   *         .JSONL (i.e. JSON Lines) file(s) which either provide text in-line or
+   *         as documents (for a single BatchPredict call only one of the these
+   *         formats may be used).
+   *         The in-line .JSONL file(s) contain per line a proto that
+   *           wraps a temporary user-assigned TextSnippet ID (string up to 2000
+   *           characters long) called "id" followed by a TextSnippet proto (in
+   *           json representation). Any given text snippet content must have
+   *           30,000 characters or less, and also be UTF-8 NFC encoded (ASCII
+   *           already is). The IDs provided should be unique.
+   *         The document .JSONL file(s) contain, per line, a proto that wraps a
+   *           Document proto with input_config set. Only PDF documents are
+   *           supported now, and each document must be up to 2MB large.
+   *         Any given .JSONL file must be 100MB or smaller, and no more than 20
+   *         files may be given.
+   *         Sample in-line JSON Lines file (presented here with artificial line
+   *         breaks, but the only actual line break is denoted by \n):
+   *           {
+   *             "id": "my_first_id",
+   *             "text_snippet": { "content": "dog car cat"}
+   *           }\n
+   *           {
+   *             "id": "2",
+   *             "text_snippet": {
+   *               "content": "An elaborate content",
+   *               "mime_type": "text/plain"
+   *             }
+   *           }
+   *         Sample document JSON Lines file (presented here with artificial line
+   *         breaks, but the only actual line break is denoted by \n).:
+   *           {
+   *             "document": {
+   *               "input_config": {
+   *                 "gcs_source": { "input_uris": [ "gs://folder/document1.pdf" ]
+   *                 }
+   *               }
+   *             }
+   *           }\n
+   *           {
+   *             "document": {
+   *               "input_config": {
+   *                 "gcs_source": { "input_uris": [ "gs://folder/document2.pdf" ]
+   *                 }
+   *               }
+   *             }
+   *           }
+   *  *  For Tables:
+   *         Either
+   *         [gcs_source][google.cloud.automl.v1beta1.InputConfig.gcs_source] or
+   * [bigquery_source][google.cloud.automl.v1beta1.InputConfig.bigquery_source].
+   *         For gcs_source:
+   *           CSV file(s), where first file must have a header containing
+   *           column names, other files may have such header line too, and all
+   *           other lines contain values for the header columns. The column
+   *           names must be exactly same (order may differ) as the model's
+   * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   *           [display_names][google.cloud.automl.v1beta1.display_name], with
+   *           values compatible with these column specs data types.
+   *           Prediction on all the rows, i.e. the CSV lines, will be
+   *           attempted.
+   *           Each line must have 1,000,000 or fewer characters.
+   *           First three sample rows of a CSV file:
+   *           "First Name","Last Name","Dob","Addresses"
+   * "John","Doe","1968-01-22","[{"status":"current","address":"123_First_Avenue","city":"Seattle","state":"WA","zip":"11111","numberOfYears":"1"},{"status":"previous","address":"456_Main_Street","city":"Portland","state":"OR","zip":"22222","numberOfYears":"5"}]"
+   * "Jane","Doe","1980-10-16","[{"status":"current","address":"789_Any_Avenue","city":"Albany","state":"NY","zip":"33333","numberOfYears":"2"},{"status":"previous","address":"321_Main_Street","city":"Hoboken","state":"NJ","zip":"44444","numberOfYears":"3"}]}
+   *         For bigquery_source:
+   *           An URI of a BigQuery table. The table's columns must be exactly
+   *           same (order may differ) as all model's
+   * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   *           [display_names][google.cloud.automl.v1beta1.display_name], with
+   *           data compatible with these colum specs data types.
+   *           Prediction on all the rows of the table will be attempted.
+   *  Definitions:
+   *  GCS_FILE_PATH = A path to file on GCS, e.g. "gs://folder/video.avi".
+   *  TIME_SEGMENT_START = TIME_OFFSET
+   *                       Expresses a beginning, inclusive, of a time segment
+   *                       within an
+   *                       example that has a time dimension (e.g. video).
+   *  TIME_SEGMENT_END = TIME_OFFSET
+   *                     Expresses an end, exclusive, of a time segment within
+   *                     an example that has a time dimension (e.g. video).
+   *  TIME_OFFSET = A number of seconds as measured from the start of an
+   *                example (e.g. video). Fractions are allowed, up to a
+   *                microsecond precision. "inf" is allowed and it means the end
+   *                of the example.
+   *  Errors:
+   *  If any of the provided CSV files can't be parsed or if more than certain
+   *  percent of CSV rows cannot be processed then the operation fails and
+   *  prediction does not happen. Regardless of overall success or failure the
+   *  per-row failures, up to a certain count cap, will be listed in
+   *  Operation.metadata.partial_failures.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictInputConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.BatchPredictInputConfig) + com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_BatchPredictInputConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_BatchPredictInputConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.BatchPredictInputConfig.class, + com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.BatchPredictInputConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_BatchPredictInputConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictInputConfig getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.BatchPredictInputConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictInputConfig build() { + com.google.cloud.automl.v1beta1.BatchPredictInputConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictInputConfig buildPartial() { + com.google.cloud.automl.v1beta1.BatchPredictInputConfig result = + new com.google.cloud.automl.v1beta1.BatchPredictInputConfig(this); + if (sourceCase_ == 1) { + if (gcsSourceBuilder_ == null) { + result.source_ = source_; + } else { + result.source_ = gcsSourceBuilder_.build(); + } + } + if (sourceCase_ == 2) { + if (bigquerySourceBuilder_ == null) { + result.source_ = source_; + } else { + result.source_ = bigquerySourceBuilder_.build(); + } + } + result.sourceCase_ = sourceCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.BatchPredictInputConfig) { + return mergeFrom((com.google.cloud.automl.v1beta1.BatchPredictInputConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.BatchPredictInputConfig other) { + if (other == com.google.cloud.automl.v1beta1.BatchPredictInputConfig.getDefaultInstance()) + return this; + switch (other.getSourceCase()) { + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case BIGQUERY_SOURCE: + { + mergeBigquerySource(other.getBigquerySource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.BatchPredictInputConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.BatchPredictInputConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.GcsSource, + com.google.cloud.automl.v1beta1.GcsSource.Builder, + com.google.cloud.automl.v1beta1.GcsSourceOrBuilder> + gcsSourceBuilder_; + /** + * + * + *
+     * The Google Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + public boolean hasGcsSource() { + return sourceCase_ == 1; + } + /** + * + * + *
+     * The Google Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + public com.google.cloud.automl.v1beta1.GcsSource getGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 1) { + return (com.google.cloud.automl.v1beta1.GcsSource) source_; + } + return com.google.cloud.automl.v1beta1.GcsSource.getDefaultInstance(); + } else { + if (sourceCase_ == 1) { + return gcsSourceBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.GcsSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * The Google Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + gcsSourceBuilder_.setMessage(value); + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
+     * The Google Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource.Builder builderForValue) { + if (gcsSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + gcsSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
+     * The Google Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + public Builder mergeGcsSource(com.google.cloud.automl.v1beta1.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 1 + && source_ != com.google.cloud.automl.v1beta1.GcsSource.getDefaultInstance()) { + source_ = + com.google.cloud.automl.v1beta1.GcsSource.newBuilder( + (com.google.cloud.automl.v1beta1.GcsSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 1) { + gcsSourceBuilder_.mergeFrom(value); + } + gcsSourceBuilder_.setMessage(value); + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
+     * The Google Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + public Builder clearGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + } + gcsSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Google Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + public com.google.cloud.automl.v1beta1.GcsSource.Builder getGcsSourceBuilder() { + return getGcsSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The Google Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + public com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if ((sourceCase_ == 1) && (gcsSourceBuilder_ != null)) { + return gcsSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 1) { + return (com.google.cloud.automl.v1beta1.GcsSource) source_; + } + return com.google.cloud.automl.v1beta1.GcsSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * The Google Cloud Storage location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.GcsSource, + com.google.cloud.automl.v1beta1.GcsSource.Builder, + com.google.cloud.automl.v1beta1.GcsSourceOrBuilder> + getGcsSourceFieldBuilder() { + if (gcsSourceBuilder_ == null) { + if (!(sourceCase_ == 1)) { + source_ = com.google.cloud.automl.v1beta1.GcsSource.getDefaultInstance(); + } + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.GcsSource, + com.google.cloud.automl.v1beta1.GcsSource.Builder, + com.google.cloud.automl.v1beta1.GcsSourceOrBuilder>( + (com.google.cloud.automl.v1beta1.GcsSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 1; + onChanged(); + ; + return gcsSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BigQuerySource, + com.google.cloud.automl.v1beta1.BigQuerySource.Builder, + com.google.cloud.automl.v1beta1.BigQuerySourceOrBuilder> + bigquerySourceBuilder_; + /** + * + * + *
+     * The BigQuery location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; + */ + public boolean hasBigquerySource() { + return sourceCase_ == 2; + } + /** + * + * + *
+     * The BigQuery location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; + */ + public com.google.cloud.automl.v1beta1.BigQuerySource getBigquerySource() { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.cloud.automl.v1beta1.BigQuerySource) source_; + } + return com.google.cloud.automl.v1beta1.BigQuerySource.getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return bigquerySourceBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.BigQuerySource.getDefaultInstance(); + } + } + /** + * + * + *
+     * The BigQuery location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; + */ + public Builder setBigquerySource(com.google.cloud.automl.v1beta1.BigQuerySource value) { + if (bigquerySourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + bigquerySourceBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
+     * The BigQuery location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; + */ + public Builder setBigquerySource( + com.google.cloud.automl.v1beta1.BigQuerySource.Builder builderForValue) { + if (bigquerySourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + bigquerySourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
+     * The BigQuery location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; + */ + public Builder mergeBigquerySource(com.google.cloud.automl.v1beta1.BigQuerySource value) { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 2 + && source_ != com.google.cloud.automl.v1beta1.BigQuerySource.getDefaultInstance()) { + source_ = + com.google.cloud.automl.v1beta1.BigQuerySource.newBuilder( + (com.google.cloud.automl.v1beta1.BigQuerySource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + bigquerySourceBuilder_.mergeFrom(value); + } + bigquerySourceBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
+     * The BigQuery location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; + */ + public Builder clearBigquerySource() { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + bigquerySourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The BigQuery location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; + */ + public com.google.cloud.automl.v1beta1.BigQuerySource.Builder getBigquerySourceBuilder() { + return getBigquerySourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The BigQuery location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; + */ + public com.google.cloud.automl.v1beta1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() { + if ((sourceCase_ == 2) && (bigquerySourceBuilder_ != null)) { + return bigquerySourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.cloud.automl.v1beta1.BigQuerySource) source_; + } + return com.google.cloud.automl.v1beta1.BigQuerySource.getDefaultInstance(); + } + } + /** + * + * + *
+     * The BigQuery location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BigQuerySource, + com.google.cloud.automl.v1beta1.BigQuerySource.Builder, + com.google.cloud.automl.v1beta1.BigQuerySourceOrBuilder> + getBigquerySourceFieldBuilder() { + if (bigquerySourceBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = com.google.cloud.automl.v1beta1.BigQuerySource.getDefaultInstance(); + } + bigquerySourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BigQuerySource, + com.google.cloud.automl.v1beta1.BigQuerySource.Builder, + com.google.cloud.automl.v1beta1.BigQuerySourceOrBuilder>( + (com.google.cloud.automl.v1beta1.BigQuerySource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + ; + return bigquerySourceBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.BatchPredictInputConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.BatchPredictInputConfig) + private static final com.google.cloud.automl.v1beta1.BatchPredictInputConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.BatchPredictInputConfig(); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictInputConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchPredictInputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchPredictInputConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictInputConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfigOrBuilder.java new file mode 100644 index 000000000000..4cbc658bc0c8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictInputConfigOrBuilder.java @@ -0,0 +1,74 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/io.proto + +package com.google.cloud.automl.v1beta1; + +public interface BatchPredictInputConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.BatchPredictInputConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Google Cloud Storage location for the input content.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + boolean hasGcsSource(); + /** + * + * + *
+   * The Google Cloud Storage location for the input content.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + com.google.cloud.automl.v1beta1.GcsSource getGcsSource(); + /** + * + * + *
+   * The Google Cloud Storage location for the input content.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(); + + /** + * + * + *
+   * The BigQuery location for the input content.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; + */ + boolean hasBigquerySource(); + /** + * + * + *
+   * The BigQuery location for the input content.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; + */ + com.google.cloud.automl.v1beta1.BigQuerySource getBigquerySource(); + /** + * + * + *
+   * The BigQuery location for the input content.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 2; + */ + com.google.cloud.automl.v1beta1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder(); + + public com.google.cloud.automl.v1beta1.BatchPredictInputConfig.SourceCase getSourceCase(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadata.java new file mode 100644 index 000000000000..3bbf962ce0c8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadata.java @@ -0,0 +1,2054 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/operations.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Details of BatchPredict operation.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictOperationMetadata} + */ +public final class BatchPredictOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.BatchPredictOperationMetadata) + BatchPredictOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchPredictOperationMetadata.newBuilder() to construct. + private BatchPredictOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchPredictOperationMetadata() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BatchPredictOperationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.automl.v1beta1.BatchPredictInputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .Builder + subBuilder = null; + if (outputInfo_ != null) { + subBuilder = outputInfo_.toBuilder(); + } + outputInfo_ = + input.readMessage( + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfo.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputInfo_); + outputInfo_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_BatchPredictOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_BatchPredictOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.class, + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.Builder.class); + } + + public interface BatchPredictOutputInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The full path of the Google Cloud Storage directory created, into which
+     * the prediction output is written.
+     * 
+ * + * string gcs_output_directory = 1; + */ + java.lang.String getGcsOutputDirectory(); + /** + * + * + *
+     * The full path of the Google Cloud Storage directory created, into which
+     * the prediction output is written.
+     * 
+ * + * string gcs_output_directory = 1; + */ + com.google.protobuf.ByteString getGcsOutputDirectoryBytes(); + + /** + * + * + *
+     * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+     * format, into which the prediction output is written.
+     * 
+ * + * string bigquery_output_dataset = 2; + */ + java.lang.String getBigqueryOutputDataset(); + /** + * + * + *
+     * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+     * format, into which the prediction output is written.
+     * 
+ * + * string bigquery_output_dataset = 2; + */ + com.google.protobuf.ByteString getBigqueryOutputDatasetBytes(); + + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .OutputLocationCase + getOutputLocationCase(); + } + /** + * + * + *
+   * Further describes this batch predict's output.
+   * Supplements
+   * [BatchPredictionOutputConfig][google.cloud.automl.v1beta1.BatchPredictionOutputConfig].
+   * 
+ * + * Protobuf type {@code + * google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo} + */ + public static final class BatchPredictOutputInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo) + BatchPredictOutputInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchPredictOutputInfo.newBuilder() to construct. + private BatchPredictOutputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchPredictOutputInfo() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BatchPredictOutputInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + outputLocationCase_ = 1; + outputLocation_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + outputLocationCase_ = 2; + outputLocation_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_BatchPredictOperationMetadata_BatchPredictOutputInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_BatchPredictOperationMetadata_BatchPredictOutputInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .class, + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .Builder.class); + } + + private int outputLocationCase_ = 0; + private java.lang.Object outputLocation_; + + public enum OutputLocationCase implements com.google.protobuf.Internal.EnumLite { + GCS_OUTPUT_DIRECTORY(1), + BIGQUERY_OUTPUT_DATASET(2), + OUTPUTLOCATION_NOT_SET(0); + private final int value; + + private OutputLocationCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static OutputLocationCase valueOf(int value) { + return forNumber(value); + } + + public static OutputLocationCase forNumber(int value) { + switch (value) { + case 1: + return GCS_OUTPUT_DIRECTORY; + case 2: + return BIGQUERY_OUTPUT_DATASET; + case 0: + return OUTPUTLOCATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OutputLocationCase getOutputLocationCase() { + return OutputLocationCase.forNumber(outputLocationCase_); + } + + public static final int GCS_OUTPUT_DIRECTORY_FIELD_NUMBER = 1; + /** + * + * + *
+     * The full path of the Google Cloud Storage directory created, into which
+     * the prediction output is written.
+     * 
+ * + * string gcs_output_directory = 1; + */ + public java.lang.String getGcsOutputDirectory() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 1) { + ref = outputLocation_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputLocationCase_ == 1) { + outputLocation_ = s; + } + return s; + } + } + /** + * + * + *
+     * The full path of the Google Cloud Storage directory created, into which
+     * the prediction output is written.
+     * 
+ * + * string gcs_output_directory = 1; + */ + public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 1) { + ref = outputLocation_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (outputLocationCase_ == 1) { + outputLocation_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BIGQUERY_OUTPUT_DATASET_FIELD_NUMBER = 2; + /** + * + * + *
+     * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+     * format, into which the prediction output is written.
+     * 
+ * + * string bigquery_output_dataset = 2; + */ + public java.lang.String getBigqueryOutputDataset() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 2) { + ref = outputLocation_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputLocationCase_ == 2) { + outputLocation_ = s; + } + return s; + } + } + /** + * + * + *
+     * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+     * format, into which the prediction output is written.
+     * 
+ * + * string bigquery_output_dataset = 2; + */ + public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 2) { + ref = outputLocation_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (outputLocationCase_ == 2) { + outputLocation_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (outputLocationCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputLocation_); + } + if (outputLocationCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, outputLocation_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputLocationCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputLocation_); + } + if (outputLocationCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, outputLocation_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo other = + (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo) + obj; + + if (!getOutputLocationCase().equals(other.getOutputLocationCase())) return false; + switch (outputLocationCase_) { + case 1: + if (!getGcsOutputDirectory().equals(other.getGcsOutputDirectory())) return false; + break; + case 2: + if (!getBigqueryOutputDataset().equals(other.getBigqueryOutputDataset())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (outputLocationCase_) { + case 1: + hash = (37 * hash) + GCS_OUTPUT_DIRECTORY_FIELD_NUMBER; + hash = (53 * hash) + getGcsOutputDirectory().hashCode(); + break; + case 2: + hash = (37 * hash) + BIGQUERY_OUTPUT_DATASET_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryOutputDataset().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfo + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfo + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfo + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Further describes this batch predict's output.
+     * Supplements
+     * [BatchPredictionOutputConfig][google.cloud.automl.v1beta1.BatchPredictionOutputConfig].
+     * 
+ * + * Protobuf type {@code + * google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo) + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_BatchPredictOperationMetadata_BatchPredictOutputInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_BatchPredictOperationMetadata_BatchPredictOutputInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .class, + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .Builder.class); + } + + // Construct using + // com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + outputLocationCase_ = 0; + outputLocation_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_BatchPredictOperationMetadata_BatchPredictOutputInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + build() { + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + buildPartial() { + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + result = + new com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfo(this); + if (outputLocationCase_ == 1) { + result.outputLocation_ = outputLocation_; + } + if (outputLocationCase_ == 2) { + result.outputLocation_ = outputLocation_; + } + result.outputLocationCase_ = outputLocationCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo) { + return mergeFrom( + (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + other) { + if (other + == com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .getDefaultInstance()) return this; + switch (other.getOutputLocationCase()) { + case GCS_OUTPUT_DIRECTORY: + { + outputLocationCase_ = 1; + outputLocation_ = other.outputLocation_; + onChanged(); + break; + } + case BIGQUERY_OUTPUT_DATASET: + { + outputLocationCase_ = 2; + outputLocation_ = other.outputLocation_; + onChanged(); + break; + } + case OUTPUTLOCATION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int outputLocationCase_ = 0; + private java.lang.Object outputLocation_; + + public OutputLocationCase getOutputLocationCase() { + return OutputLocationCase.forNumber(outputLocationCase_); + } + + public Builder clearOutputLocation() { + outputLocationCase_ = 0; + outputLocation_ = null; + onChanged(); + return this; + } + + /** + * + * + *
+       * The full path of the Google Cloud Storage directory created, into which
+       * the prediction output is written.
+       * 
+ * + * string gcs_output_directory = 1; + */ + public java.lang.String getGcsOutputDirectory() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 1) { + ref = outputLocation_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputLocationCase_ == 1) { + outputLocation_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The full path of the Google Cloud Storage directory created, into which
+       * the prediction output is written.
+       * 
+ * + * string gcs_output_directory = 1; + */ + public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 1) { + ref = outputLocation_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (outputLocationCase_ == 1) { + outputLocation_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The full path of the Google Cloud Storage directory created, into which
+       * the prediction output is written.
+       * 
+ * + * string gcs_output_directory = 1; + */ + public Builder setGcsOutputDirectory(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputLocationCase_ = 1; + outputLocation_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The full path of the Google Cloud Storage directory created, into which
+       * the prediction output is written.
+       * 
+ * + * string gcs_output_directory = 1; + */ + public Builder clearGcsOutputDirectory() { + if (outputLocationCase_ == 1) { + outputLocationCase_ = 0; + outputLocation_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The full path of the Google Cloud Storage directory created, into which
+       * the prediction output is written.
+       * 
+ * + * string gcs_output_directory = 1; + */ + public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputLocationCase_ = 1; + outputLocation_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+       * format, into which the prediction output is written.
+       * 
+ * + * string bigquery_output_dataset = 2; + */ + public java.lang.String getBigqueryOutputDataset() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 2) { + ref = outputLocation_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputLocationCase_ == 2) { + outputLocation_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+       * format, into which the prediction output is written.
+       * 
+ * + * string bigquery_output_dataset = 2; + */ + public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 2) { + ref = outputLocation_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (outputLocationCase_ == 2) { + outputLocation_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+       * format, into which the prediction output is written.
+       * 
+ * + * string bigquery_output_dataset = 2; + */ + public Builder setBigqueryOutputDataset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputLocationCase_ = 2; + outputLocation_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+       * format, into which the prediction output is written.
+       * 
+ * + * string bigquery_output_dataset = 2; + */ + public Builder clearBigqueryOutputDataset() { + if (outputLocationCase_ == 2) { + outputLocationCase_ = 0; + outputLocation_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+       * format, into which the prediction output is written.
+       * 
+ * + * string bigquery_output_dataset = 2; + */ + public Builder setBigqueryOutputDatasetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputLocationCase_ = 2; + outputLocation_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo) + private static final com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfo(); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchPredictOutputInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchPredictOutputInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int INPUT_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.automl.v1beta1.BatchPredictInputConfig inputConfig_; + /** + * + * + *
+   * Output only. The input config that was given upon starting this
+   * batch predict operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 1; + */ + public boolean hasInputConfig() { + return inputConfig_ != null; + } + /** + * + * + *
+   * Output only. The input config that was given upon starting this
+   * batch predict operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 1; + */ + public com.google.cloud.automl.v1beta1.BatchPredictInputConfig getInputConfig() { + return inputConfig_ == null + ? com.google.cloud.automl.v1beta1.BatchPredictInputConfig.getDefaultInstance() + : inputConfig_; + } + /** + * + * + *
+   * Output only. The input config that was given upon starting this
+   * batch predict operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 1; + */ + public com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder + getInputConfigOrBuilder() { + return getInputConfig(); + } + + public static final int OUTPUT_INFO_FIELD_NUMBER = 2; + private com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + outputInfo_; + /** + * + * + *
+   * Output only. Information further describing this batch predict's output.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + */ + public boolean hasOutputInfo() { + return outputInfo_ != null; + } + /** + * + * + *
+   * Output only. Information further describing this batch predict's output.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + */ + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + getOutputInfo() { + return outputInfo_ == null + ? com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .getDefaultInstance() + : outputInfo_; + } + /** + * + * + *
+   * Output only. Information further describing this batch predict's output.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + */ + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfoOrBuilder + getOutputInfoOrBuilder() { + return getOutputInfo(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (inputConfig_ != null) { + output.writeMessage(1, getInputConfig()); + } + if (outputInfo_ != null) { + output.writeMessage(2, getOutputInfo()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); + } + if (outputInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputInfo()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata other = + (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) obj; + + if (hasInputConfig() != other.hasInputConfig()) return false; + if (hasInputConfig()) { + if (!getInputConfig().equals(other.getInputConfig())) return false; + } + if (hasOutputInfo() != other.hasOutputInfo()) return false; + if (hasOutputInfo()) { + if (!getOutputInfo().equals(other.getOutputInfo())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInputConfig()) { + hash = (37 * hash) + INPUT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getInputConfig().hashCode(); + } + if (hasOutputInfo()) { + hash = (37 * hash) + OUTPUT_INFO_FIELD_NUMBER; + hash = (53 * hash) + getOutputInfo().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details of BatchPredict operation.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.BatchPredictOperationMetadata) + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_BatchPredictOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_BatchPredictOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.class, + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (inputConfigBuilder_ == null) { + inputConfig_ = null; + } else { + inputConfig_ = null; + inputConfigBuilder_ = null; + } + if (outputInfoBuilder_ == null) { + outputInfo_ = null; + } else { + outputInfo_ = null; + outputInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_BatchPredictOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata build() { + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata buildPartial() { + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata result = + new com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata(this); + if (inputConfigBuilder_ == null) { + result.inputConfig_ = inputConfig_; + } else { + result.inputConfig_ = inputConfigBuilder_.build(); + } + if (outputInfoBuilder_ == null) { + result.outputInfo_ = outputInfo_; + } else { + result.outputInfo_ = outputInfoBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) { + return mergeFrom((com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata other) { + if (other + == com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.getDefaultInstance()) + return this; + if (other.hasInputConfig()) { + mergeInputConfig(other.getInputConfig()); + } + if (other.hasOutputInfo()) { + mergeOutputInfo(other.getOutputInfo()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.automl.v1beta1.BatchPredictInputConfig inputConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BatchPredictInputConfig, + com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder, + com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder> + inputConfigBuilder_; + /** + * + * + *
+     * Output only. The input config that was given upon starting this
+     * batch predict operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 1; + */ + public boolean hasInputConfig() { + return inputConfigBuilder_ != null || inputConfig_ != null; + } + /** + * + * + *
+     * Output only. The input config that was given upon starting this
+     * batch predict operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 1; + */ + public com.google.cloud.automl.v1beta1.BatchPredictInputConfig getInputConfig() { + if (inputConfigBuilder_ == null) { + return inputConfig_ == null + ? com.google.cloud.automl.v1beta1.BatchPredictInputConfig.getDefaultInstance() + : inputConfig_; + } else { + return inputConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The input config that was given upon starting this
+     * batch predict operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 1; + */ + public Builder setInputConfig(com.google.cloud.automl.v1beta1.BatchPredictInputConfig value) { + if (inputConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputConfig_ = value; + onChanged(); + } else { + inputConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The input config that was given upon starting this
+     * batch predict operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 1; + */ + public Builder setInputConfig( + com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder builderForValue) { + if (inputConfigBuilder_ == null) { + inputConfig_ = builderForValue.build(); + onChanged(); + } else { + inputConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The input config that was given upon starting this
+     * batch predict operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 1; + */ + public Builder mergeInputConfig(com.google.cloud.automl.v1beta1.BatchPredictInputConfig value) { + if (inputConfigBuilder_ == null) { + if (inputConfig_ != null) { + inputConfig_ = + com.google.cloud.automl.v1beta1.BatchPredictInputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + inputConfig_ = value; + } + onChanged(); + } else { + inputConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The input config that was given upon starting this
+     * batch predict operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 1; + */ + public Builder clearInputConfig() { + if (inputConfigBuilder_ == null) { + inputConfig_ = null; + onChanged(); + } else { + inputConfig_ = null; + inputConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The input config that was given upon starting this
+     * batch predict operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 1; + */ + public com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder getInputConfigBuilder() { + + onChanged(); + return getInputConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The input config that was given upon starting this
+     * batch predict operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 1; + */ + public com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder + getInputConfigOrBuilder() { + if (inputConfigBuilder_ != null) { + return inputConfigBuilder_.getMessageOrBuilder(); + } else { + return inputConfig_ == null + ? com.google.cloud.automl.v1beta1.BatchPredictInputConfig.getDefaultInstance() + : inputConfig_; + } + } + /** + * + * + *
+     * Output only. The input config that was given upon starting this
+     * batch predict operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BatchPredictInputConfig, + com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder, + com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder> + getInputConfigFieldBuilder() { + if (inputConfigBuilder_ == null) { + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BatchPredictInputConfig, + com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder, + com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); + inputConfig_ = null; + } + return inputConfigBuilder_; + } + + private com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + outputInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo, + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .Builder, + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfoOrBuilder> + outputInfoBuilder_; + /** + * + * + *
+     * Output only. Information further describing this batch predict's output.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + */ + public boolean hasOutputInfo() { + return outputInfoBuilder_ != null || outputInfo_ != null; + } + /** + * + * + *
+     * Output only. Information further describing this batch predict's output.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + */ + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + getOutputInfo() { + if (outputInfoBuilder_ == null) { + return outputInfo_ == null + ? com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .getDefaultInstance() + : outputInfo_; + } else { + return outputInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Information further describing this batch predict's output.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + */ + public Builder setOutputInfo( + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + value) { + if (outputInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputInfo_ = value; + onChanged(); + } else { + outputInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Information further describing this batch predict's output.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + */ + public Builder setOutputInfo( + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo.Builder + builderForValue) { + if (outputInfoBuilder_ == null) { + outputInfo_ = builderForValue.build(); + onChanged(); + } else { + outputInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Information further describing this batch predict's output.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + */ + public Builder mergeOutputInfo( + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + value) { + if (outputInfoBuilder_ == null) { + if (outputInfo_ != null) { + outputInfo_ = + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .newBuilder(outputInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + outputInfo_ = value; + } + onChanged(); + } else { + outputInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Information further describing this batch predict's output.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + */ + public Builder clearOutputInfo() { + if (outputInfoBuilder_ == null) { + outputInfo_ = null; + onChanged(); + } else { + outputInfo_ = null; + outputInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Information further describing this batch predict's output.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + */ + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .Builder + getOutputInfoBuilder() { + + onChanged(); + return getOutputInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Information further describing this batch predict's output.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + */ + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfoOrBuilder + getOutputInfoOrBuilder() { + if (outputInfoBuilder_ != null) { + return outputInfoBuilder_.getMessageOrBuilder(); + } else { + return outputInfo_ == null + ? com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .getDefaultInstance() + : outputInfo_; + } + } + /** + * + * + *
+     * Output only. Information further describing this batch predict's output.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo, + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .Builder, + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfoOrBuilder> + getOutputInfoFieldBuilder() { + if (outputInfoBuilder_ == null) { + outputInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfo, + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + .Builder, + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .BatchPredictOutputInfoOrBuilder>( + getOutputInfo(), getParentForChildren(), isClean()); + outputInfo_ = null; + } + return outputInfoBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.BatchPredictOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.BatchPredictOperationMetadata) + private static final com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata(); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchPredictOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchPredictOperationMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..185b932ddd87 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOperationMetadataOrBuilder.java @@ -0,0 +1,83 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/operations.proto + +package com.google.cloud.automl.v1beta1; + +public interface BatchPredictOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.BatchPredictOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The input config that was given upon starting this
+   * batch predict operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 1; + */ + boolean hasInputConfig(); + /** + * + * + *
+   * Output only. The input config that was given upon starting this
+   * batch predict operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 1; + */ + com.google.cloud.automl.v1beta1.BatchPredictInputConfig getInputConfig(); + /** + * + * + *
+   * Output only. The input config that was given upon starting this
+   * batch predict operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 1; + */ + com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder getInputConfigOrBuilder(); + + /** + * + * + *
+   * Output only. Information further describing this batch predict's output.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + */ + boolean hasOutputInfo(); + /** + * + * + *
+   * Output only. Information further describing this batch predict's output.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + */ + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo + getOutputInfo(); + /** + * + * + *
+   * Output only. Information further describing this batch predict's output.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfo output_info = 2; + * + */ + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.BatchPredictOutputInfoOrBuilder + getOutputInfoOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfig.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfig.java new file mode 100644 index 000000000000..5e1fbb7b5261 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfig.java @@ -0,0 +1,1379 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/io.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Output configuration for BatchPredict Action.
+ * As destination the
+ * [gcs_destination][google.cloud.automl.v1beta1.BatchPredictOutputConfig.gcs_destination]
+ * must be set unless specified otherwise for a domain. If gcs_destination is
+ * set then in the given directory a new directory will be created. Its name
+ * will be
+ * "prediction-<model-display-name>-<timestamp-of-prediction-call>",
+ * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. The contents
+ * of it depend on the ML problem the predictions are made for.
+ *  *  For Video Classification:
+ *         In the created directory a video_classification.csv file, and a .JSON
+ *         file per each video classification requested in the input (i.e. each
+ *         line in given CSV(s)), will be created.
+ *         The format of video_classification.csv is:
+ * GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END,JSON_FILE_NAME,STATUS
+ *         where:
+ *         GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END = matches 1 to 1
+ *             the prediction input lines (i.e. video_classification.csv has
+ *             precisely the same number of lines as the prediction input had.)
+ *         JSON_FILE_NAME = Name of .JSON file in the output directory, which
+ *             contains prediction responses for the video time segment.
+ *         STATUS = "OK" if prediction completed successfully, or an error
+ *             code and,or message otherwise. If STATUS is not "OK" then the
+ *             .JSON file for that line may not exist or be empty.
+ *         Each .JSON file, assuming STATUS is "OK", will contain a list of
+ *         AnnotationPayload protos in JSON format, which are the predictions
+ *         for the video time segment the file is assigned to in the
+ *         video_classification.csv. All AnnotationPayload protos will have
+ *         video_classification field set, and will be sorted by
+ *         video_classification.type field (note that the returned types are
+ *         governed by `classifaction_types` parameter in
+ *         [PredictService.BatchPredictRequest.params][]).
+ *   *  For Text Extraction:
+ *         In the created directory files `text_extraction_1.jsonl`,
+ *         `text_extraction_2.jsonl`,...,`text_extraction_N.jsonl`
+ *         will be created, where N may be 1, and depends on the
+ *         total number of inputs and annotations found.
+ *         The contents of these .JSONL file(s) depend on whether the input
+ *         used inline text, or documents.
+ *         If input was inline, then each .JSONL file will contain, per line,
+ *           a JSON representation of a proto that wraps given in request text
+ *           snippet's "id" : "<id_value>" followed by a list of zero or more
+ *           AnnotationPayload protos (called annotations), which have
+ *           text_extraction detail populated. A single text snippet will be
+ *           listed only once with all its annotations, and its annotations will
+ *           never be split across files.
+ *         If input used documents, then each .JSONL file will contain, per
+ *           line, a JSON representation of a proto that wraps given in request
+ *           document proto, followed by its OCR-ed representation in the form
+ *           of a text snippet, finally followed by a list of zero or more
+ *           AnnotationPayload protos (called annotations), which have
+ *           text_extraction detail populated and refer, via their indices, to
+ *           the OCR-ed text snippet. A single document (and its text snippet)
+ *           will be listed only once with all its annotations, and its
+ *           annotations will never be split across files.
+ *         If prediction for any text snippet failed (partially or completely),
+ *         then additional `errors_1.jsonl`, `errors_2.jsonl`,...,
+ *         `errors_N.jsonl` files will be created (N depends on total number of
+ *         failed predictions). These files will have a JSON representation of a
+ *         proto that wraps either the "id" : "<id_value>" (in case of inline)
+ *         or the document proto (in case of document) but here followed by
+ *         exactly one
+ * [`google.rpc.Status`](https:
+ * //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
+ *         containing only `code` and `message`.
+ *  *  For Tables:
+ *         Output depends on whether
+ * [gcs_destination][google.cloud.automl.v1beta1.BatchPredictOutputConfig.gcs_destination]
+ *         or
+ * [bigquery_destination][google.cloud.automl.v1beta1.BatchPredictOutputConfig.bigquery_destination]
+ *         is set (either is allowed).
+ *         GCS case:
+ *           In the created directory files `tables_1.csv`, `tables_2.csv`,...,
+ *           `tables_N.csv` will be created, where N may be 1, and depends on
+ *           the total number of the successfully predicted rows.
+ *           For the classification models:
+ *             Each .csv file will contain a header, listing all model's
+ * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+ * [display_names][google.cloud.automl.v1beta1.ColumnSpec.display_name]
+ *             followed by M target column names in the format of
+ * "<[target_column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+ * [display_name][google.cloud.automl.v1beta1.ColumnSpec.display_name]>_<target
+ *             value>_score" where M is the number of distinct target values,
+ *             i.e. number of distinct values in the target column of the table
+ *             used to train the model. Subsequent lines will contain the
+ *             respective values of successfully predicted rows, with the last,
+ *             i.e. the target, columns having the corresponding prediction
+ *             [scores][google.cloud.automl.v1beta1.TablesAnnotation.score].
+ *           For the regression models:
+ *             Each .csv file will contain a header, listing all model's
+ * [input_feature_column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+ *             [display_names][google.cloud.automl.v1beta1.display_name]
+ *             followed by the target column with name equal to
+ * [target_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+ * [display_name][google.cloud.automl.v1beta1.ColumnSpec.display_name].
+ *             Subsequent lines will contain the respective values of
+ *             successfully predicted rows, with the last, i.e. the target,
+ *             column having the predicted target value.
+ *           If prediction for any rows failed, then an additional
+ *           `errors_1.csv`, `errors_2.csv`,..., `errors_N.csv` will be created
+ *           (N depends on total number of failed rows). These files will have
+ *           analogous format as `tables_*.csv`, but always with a single target
+ *           column having
+ * [`google.rpc.Status`](https:
+ * //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
+ *           represented as a JSON string, and containing only `code` and
+ *           `message`.
+ *        BigQuery case:
+ * [bigquery_destination][google.cloud.automl.v1beta1.OutputConfig.bigquery_destination]
+ *           pointing to a BigQuery project must be set. In the given project a
+ *           new dataset will be created with name
+ *           `prediction_<model-display-name>_<timestamp-of-prediction-call>`
+ *           where <model-display-name> will be made
+ *           BigQuery-dataset-name compatible (e.g. most special characters will
+ *           become underscores), and timestamp will be in
+ *           YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" format. In the dataset
+ *           two tables will be created, `predictions`, and `errors`.
+ *           The `predictions` table's column names will be the
+ * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+ * [display_names][google.cloud.automl.v1beta1.ColumnSpec.display_name]
+ *           followed by model's
+ * [target_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+ * [display_name][google.cloud.automl.v1beta1.ColumnSpec.display_name].
+ *           The input feature columns will contain the respective values of
+ *           successfully predicted rows, with the target column having an
+ *           ARRAY of
+ * [AnnotationPayloads][google.cloud.automl.v1beta1.AnnotationPayload],
+ *           represented as STRUCT-s, containing
+ *           [TablesAnnotation][google.cloud.automl.v1beta1.TablesAnnotation].
+ *           The `errors` table contains rows for which the prediction has
+ *           failed, it has analogous input feature and target columns, but
+ *           here the target column as a value has
+ * [`google.rpc.Status`](https:
+ * //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
+ *           represented as a STRUCT, and containing only `code` and `message`.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictOutputConfig} + */ +public final class BatchPredictOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.BatchPredictOutputConfig) + BatchPredictOutputConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchPredictOutputConfig.newBuilder() to construct. + private BatchPredictOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchPredictOutputConfig() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BatchPredictOutputConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.automl.v1beta1.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = + ((com.google.cloud.automl.v1beta1.GcsDestination) destination_).toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.automl.v1beta1.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 1; + break; + } + case 18: + { + com.google.cloud.automl.v1beta1.BigQueryDestination.Builder subBuilder = null; + if (destinationCase_ == 2) { + subBuilder = + ((com.google.cloud.automl.v1beta1.BigQueryDestination) destination_) + .toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.automl.v1beta1.BigQueryDestination.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 2; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_BatchPredictOutputConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_BatchPredictOutputConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.class, + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.Builder.class); + } + + private int destinationCase_ = 0; + private java.lang.Object destination_; + + public enum DestinationCase implements com.google.protobuf.Internal.EnumLite { + GCS_DESTINATION(1), + BIGQUERY_DESTINATION(2), + DESTINATION_NOT_SET(0); + private final int value; + + private DestinationCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static DestinationCase valueOf(int value) { + return forNumber(value); + } + + public static DestinationCase forNumber(int value) { + switch (value) { + case 1: + return GCS_DESTINATION; + case 2: + return BIGQUERY_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public static final int GCS_DESTINATION_FIELD_NUMBER = 1; + /** + * + * + *
+   * The Google Cloud Storage location of the directory where the output is to
+   * be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + public boolean hasGcsDestination() { + return destinationCase_ == 1; + } + /** + * + * + *
+   * The Google Cloud Storage location of the directory where the output is to
+   * be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + public com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination() { + if (destinationCase_ == 1) { + return (com.google.cloud.automl.v1beta1.GcsDestination) destination_; + } + return com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance(); + } + /** + * + * + *
+   * The Google Cloud Storage location of the directory where the output is to
+   * be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { + if (destinationCase_ == 1) { + return (com.google.cloud.automl.v1beta1.GcsDestination) destination_; + } + return com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance(); + } + + public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 2; + /** + * + * + *
+   * The BigQuery location where the output is to be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public boolean hasBigqueryDestination() { + return destinationCase_ == 2; + } + /** + * + * + *
+   * The BigQuery location where the output is to be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestination() { + if (destinationCase_ == 2) { + return (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_; + } + return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); + } + /** + * + * + *
+   * The BigQuery location where the output is to be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { + if (destinationCase_ == 2) { + return (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_; + } + return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (destinationCase_ == 1) { + output.writeMessage(1, (com.google.cloud.automl.v1beta1.GcsDestination) destination_); + } + if (destinationCase_ == 2) { + output.writeMessage(2, (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (destinationCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.automl.v1beta1.GcsDestination) destination_); + } + if (destinationCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.BatchPredictOutputConfig)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig other = + (com.google.cloud.automl.v1beta1.BatchPredictOutputConfig) obj; + + if (!getDestinationCase().equals(other.getDestinationCase())) return false; + switch (destinationCase_) { + case 1: + if (!getGcsDestination().equals(other.getGcsDestination())) return false; + break; + case 2: + if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (destinationCase_) { + case 1: + hash = (37 * hash) + GCS_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getGcsDestination().hashCode(); + break; + case 2: + hash = (37 * hash) + BIGQUERY_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryDestination().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOutputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOutputConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOutputConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOutputConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOutputConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOutputConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOutputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOutputConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOutputConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOutputConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOutputConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output configuration for BatchPredict Action.
+   * As destination the
+   * [gcs_destination][google.cloud.automl.v1beta1.BatchPredictOutputConfig.gcs_destination]
+   * must be set unless specified otherwise for a domain. If gcs_destination is
+   * set then in the given directory a new directory will be created. Its name
+   * will be
+   * "prediction-<model-display-name>-<timestamp-of-prediction-call>",
+   * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. The contents
+   * of it depend on the ML problem the predictions are made for.
+   *  *  For Video Classification:
+   *         In the created directory a video_classification.csv file, and a .JSON
+   *         file per each video classification requested in the input (i.e. each
+   *         line in given CSV(s)), will be created.
+   *         The format of video_classification.csv is:
+   * GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END,JSON_FILE_NAME,STATUS
+   *         where:
+   *         GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END = matches 1 to 1
+   *             the prediction input lines (i.e. video_classification.csv has
+   *             precisely the same number of lines as the prediction input had.)
+   *         JSON_FILE_NAME = Name of .JSON file in the output directory, which
+   *             contains prediction responses for the video time segment.
+   *         STATUS = "OK" if prediction completed successfully, or an error
+   *             code and,or message otherwise. If STATUS is not "OK" then the
+   *             .JSON file for that line may not exist or be empty.
+   *         Each .JSON file, assuming STATUS is "OK", will contain a list of
+   *         AnnotationPayload protos in JSON format, which are the predictions
+   *         for the video time segment the file is assigned to in the
+   *         video_classification.csv. All AnnotationPayload protos will have
+   *         video_classification field set, and will be sorted by
+   *         video_classification.type field (note that the returned types are
+   *         governed by `classifaction_types` parameter in
+   *         [PredictService.BatchPredictRequest.params][]).
+   *   *  For Text Extraction:
+   *         In the created directory files `text_extraction_1.jsonl`,
+   *         `text_extraction_2.jsonl`,...,`text_extraction_N.jsonl`
+   *         will be created, where N may be 1, and depends on the
+   *         total number of inputs and annotations found.
+   *         The contents of these .JSONL file(s) depend on whether the input
+   *         used inline text, or documents.
+   *         If input was inline, then each .JSONL file will contain, per line,
+   *           a JSON representation of a proto that wraps given in request text
+   *           snippet's "id" : "<id_value>" followed by a list of zero or more
+   *           AnnotationPayload protos (called annotations), which have
+   *           text_extraction detail populated. A single text snippet will be
+   *           listed only once with all its annotations, and its annotations will
+   *           never be split across files.
+   *         If input used documents, then each .JSONL file will contain, per
+   *           line, a JSON representation of a proto that wraps given in request
+   *           document proto, followed by its OCR-ed representation in the form
+   *           of a text snippet, finally followed by a list of zero or more
+   *           AnnotationPayload protos (called annotations), which have
+   *           text_extraction detail populated and refer, via their indices, to
+   *           the OCR-ed text snippet. A single document (and its text snippet)
+   *           will be listed only once with all its annotations, and its
+   *           annotations will never be split across files.
+   *         If prediction for any text snippet failed (partially or completely),
+   *         then additional `errors_1.jsonl`, `errors_2.jsonl`,...,
+   *         `errors_N.jsonl` files will be created (N depends on total number of
+   *         failed predictions). These files will have a JSON representation of a
+   *         proto that wraps either the "id" : "<id_value>" (in case of inline)
+   *         or the document proto (in case of document) but here followed by
+   *         exactly one
+   * [`google.rpc.Status`](https:
+   * //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
+   *         containing only `code` and `message`.
+   *  *  For Tables:
+   *         Output depends on whether
+   * [gcs_destination][google.cloud.automl.v1beta1.BatchPredictOutputConfig.gcs_destination]
+   *         or
+   * [bigquery_destination][google.cloud.automl.v1beta1.BatchPredictOutputConfig.bigquery_destination]
+   *         is set (either is allowed).
+   *         GCS case:
+   *           In the created directory files `tables_1.csv`, `tables_2.csv`,...,
+   *           `tables_N.csv` will be created, where N may be 1, and depends on
+   *           the total number of the successfully predicted rows.
+   *           For the classification models:
+   *             Each .csv file will contain a header, listing all model's
+   * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * [display_names][google.cloud.automl.v1beta1.ColumnSpec.display_name]
+   *             followed by M target column names in the format of
+   * "<[target_column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * [display_name][google.cloud.automl.v1beta1.ColumnSpec.display_name]>_<target
+   *             value>_score" where M is the number of distinct target values,
+   *             i.e. number of distinct values in the target column of the table
+   *             used to train the model. Subsequent lines will contain the
+   *             respective values of successfully predicted rows, with the last,
+   *             i.e. the target, columns having the corresponding prediction
+   *             [scores][google.cloud.automl.v1beta1.TablesAnnotation.score].
+   *           For the regression models:
+   *             Each .csv file will contain a header, listing all model's
+   * [input_feature_column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   *             [display_names][google.cloud.automl.v1beta1.display_name]
+   *             followed by the target column with name equal to
+   * [target_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * [display_name][google.cloud.automl.v1beta1.ColumnSpec.display_name].
+   *             Subsequent lines will contain the respective values of
+   *             successfully predicted rows, with the last, i.e. the target,
+   *             column having the predicted target value.
+   *           If prediction for any rows failed, then an additional
+   *           `errors_1.csv`, `errors_2.csv`,..., `errors_N.csv` will be created
+   *           (N depends on total number of failed rows). These files will have
+   *           analogous format as `tables_*.csv`, but always with a single target
+   *           column having
+   * [`google.rpc.Status`](https:
+   * //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
+   *           represented as a JSON string, and containing only `code` and
+   *           `message`.
+   *        BigQuery case:
+   * [bigquery_destination][google.cloud.automl.v1beta1.OutputConfig.bigquery_destination]
+   *           pointing to a BigQuery project must be set. In the given project a
+   *           new dataset will be created with name
+   *           `prediction_<model-display-name>_<timestamp-of-prediction-call>`
+   *           where <model-display-name> will be made
+   *           BigQuery-dataset-name compatible (e.g. most special characters will
+   *           become underscores), and timestamp will be in
+   *           YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" format. In the dataset
+   *           two tables will be created, `predictions`, and `errors`.
+   *           The `predictions` table's column names will be the
+   * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * [display_names][google.cloud.automl.v1beta1.ColumnSpec.display_name]
+   *           followed by model's
+   * [target_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * [display_name][google.cloud.automl.v1beta1.ColumnSpec.display_name].
+   *           The input feature columns will contain the respective values of
+   *           successfully predicted rows, with the target column having an
+   *           ARRAY of
+   * [AnnotationPayloads][google.cloud.automl.v1beta1.AnnotationPayload],
+   *           represented as STRUCT-s, containing
+   *           [TablesAnnotation][google.cloud.automl.v1beta1.TablesAnnotation].
+   *           The `errors` table contains rows for which the prediction has
+   *           failed, it has analogous input feature and target columns, but
+   *           here the target column as a value has
+   * [`google.rpc.Status`](https:
+   * //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
+   *           represented as a STRUCT, and containing only `code` and `message`.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictOutputConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.BatchPredictOutputConfig) + com.google.cloud.automl.v1beta1.BatchPredictOutputConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_BatchPredictOutputConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_BatchPredictOutputConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.class, + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + destinationCase_ = 0; + destination_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_BatchPredictOutputConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig build() { + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig buildPartial() { + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig result = + new com.google.cloud.automl.v1beta1.BatchPredictOutputConfig(this); + if (destinationCase_ == 1) { + if (gcsDestinationBuilder_ == null) { + result.destination_ = destination_; + } else { + result.destination_ = gcsDestinationBuilder_.build(); + } + } + if (destinationCase_ == 2) { + if (bigqueryDestinationBuilder_ == null) { + result.destination_ = destination_; + } else { + result.destination_ = bigqueryDestinationBuilder_.build(); + } + } + result.destinationCase_ = destinationCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.BatchPredictOutputConfig) { + return mergeFrom((com.google.cloud.automl.v1beta1.BatchPredictOutputConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.BatchPredictOutputConfig other) { + if (other == com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.getDefaultInstance()) + return this; + switch (other.getDestinationCase()) { + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case BIGQUERY_DESTINATION: + { + mergeBigqueryDestination(other.getBigqueryDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.BatchPredictOutputConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int destinationCase_ = 0; + private java.lang.Object destination_; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public Builder clearDestination() { + destinationCase_ = 0; + destination_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.GcsDestination, + com.google.cloud.automl.v1beta1.GcsDestination.Builder, + com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; + /** + * + * + *
+     * The Google Cloud Storage location of the directory where the output is to
+     * be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + public boolean hasGcsDestination() { + return destinationCase_ == 1; + } + /** + * + * + *
+     * The Google Cloud Storage location of the directory where the output is to
+     * be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + public com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination() { + if (gcsDestinationBuilder_ == null) { + if (destinationCase_ == 1) { + return (com.google.cloud.automl.v1beta1.GcsDestination) destination_; + } + return com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance(); + } else { + if (destinationCase_ == 1) { + return gcsDestinationBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * The Google Cloud Storage location of the directory where the output is to
+     * be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + public Builder setGcsDestination(com.google.cloud.automl.v1beta1.GcsDestination value) { + if (gcsDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + gcsDestinationBuilder_.setMessage(value); + } + destinationCase_ = 1; + return this; + } + /** + * + * + *
+     * The Google Cloud Storage location of the directory where the output is to
+     * be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + public Builder setGcsDestination( + com.google.cloud.automl.v1beta1.GcsDestination.Builder builderForValue) { + if (gcsDestinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + gcsDestinationBuilder_.setMessage(builderForValue.build()); + } + destinationCase_ = 1; + return this; + } + /** + * + * + *
+     * The Google Cloud Storage location of the directory where the output is to
+     * be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + public Builder mergeGcsDestination(com.google.cloud.automl.v1beta1.GcsDestination value) { + if (gcsDestinationBuilder_ == null) { + if (destinationCase_ == 1 + && destination_ + != com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.automl.v1beta1.GcsDestination.newBuilder( + (com.google.cloud.automl.v1beta1.GcsDestination) destination_) + .mergeFrom(value) + .buildPartial(); + } else { + destination_ = value; + } + onChanged(); + } else { + if (destinationCase_ == 1) { + gcsDestinationBuilder_.mergeFrom(value); + } + gcsDestinationBuilder_.setMessage(value); + } + destinationCase_ = 1; + return this; + } + /** + * + * + *
+     * The Google Cloud Storage location of the directory where the output is to
+     * be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + public Builder clearGcsDestination() { + if (gcsDestinationBuilder_ == null) { + if (destinationCase_ == 1) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + } else { + if (destinationCase_ == 1) { + destinationCase_ = 0; + destination_ = null; + } + gcsDestinationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Google Cloud Storage location of the directory where the output is to
+     * be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + public com.google.cloud.automl.v1beta1.GcsDestination.Builder getGcsDestinationBuilder() { + return getGcsDestinationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The Google Cloud Storage location of the directory where the output is to
+     * be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { + if ((destinationCase_ == 1) && (gcsDestinationBuilder_ != null)) { + return gcsDestinationBuilder_.getMessageOrBuilder(); + } else { + if (destinationCase_ == 1) { + return (com.google.cloud.automl.v1beta1.GcsDestination) destination_; + } + return com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * The Google Cloud Storage location of the directory where the output is to
+     * be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.GcsDestination, + com.google.cloud.automl.v1beta1.GcsDestination.Builder, + com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder> + getGcsDestinationFieldBuilder() { + if (gcsDestinationBuilder_ == null) { + if (!(destinationCase_ == 1)) { + destination_ = com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance(); + } + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.GcsDestination, + com.google.cloud.automl.v1beta1.GcsDestination.Builder, + com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder>( + (com.google.cloud.automl.v1beta1.GcsDestination) destination_, + getParentForChildren(), + isClean()); + destination_ = null; + } + destinationCase_ = 1; + onChanged(); + ; + return gcsDestinationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BigQueryDestination, + com.google.cloud.automl.v1beta1.BigQueryDestination.Builder, + com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder> + bigqueryDestinationBuilder_; + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public boolean hasBigqueryDestination() { + return destinationCase_ == 2; + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestination() { + if (bigqueryDestinationBuilder_ == null) { + if (destinationCase_ == 2) { + return (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_; + } + return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); + } else { + if (destinationCase_ == 2) { + return bigqueryDestinationBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public Builder setBigqueryDestination( + com.google.cloud.automl.v1beta1.BigQueryDestination value) { + if (bigqueryDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + bigqueryDestinationBuilder_.setMessage(value); + } + destinationCase_ = 2; + return this; + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public Builder setBigqueryDestination( + com.google.cloud.automl.v1beta1.BigQueryDestination.Builder builderForValue) { + if (bigqueryDestinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + bigqueryDestinationBuilder_.setMessage(builderForValue.build()); + } + destinationCase_ = 2; + return this; + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public Builder mergeBigqueryDestination( + com.google.cloud.automl.v1beta1.BigQueryDestination value) { + if (bigqueryDestinationBuilder_ == null) { + if (destinationCase_ == 2 + && destination_ + != com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.automl.v1beta1.BigQueryDestination.newBuilder( + (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_) + .mergeFrom(value) + .buildPartial(); + } else { + destination_ = value; + } + onChanged(); + } else { + if (destinationCase_ == 2) { + bigqueryDestinationBuilder_.mergeFrom(value); + } + bigqueryDestinationBuilder_.setMessage(value); + } + destinationCase_ = 2; + return this; + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public Builder clearBigqueryDestination() { + if (bigqueryDestinationBuilder_ == null) { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + } else { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + } + bigqueryDestinationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public com.google.cloud.automl.v1beta1.BigQueryDestination.Builder + getBigqueryDestinationBuilder() { + return getBigqueryDestinationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { + if ((destinationCase_ == 2) && (bigqueryDestinationBuilder_ != null)) { + return bigqueryDestinationBuilder_.getMessageOrBuilder(); + } else { + if (destinationCase_ == 2) { + return (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_; + } + return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BigQueryDestination, + com.google.cloud.automl.v1beta1.BigQueryDestination.Builder, + com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder> + getBigqueryDestinationFieldBuilder() { + if (bigqueryDestinationBuilder_ == null) { + if (!(destinationCase_ == 2)) { + destination_ = com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); + } + bigqueryDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BigQueryDestination, + com.google.cloud.automl.v1beta1.BigQueryDestination.Builder, + com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder>( + (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_, + getParentForChildren(), + isClean()); + destination_ = null; + } + destinationCase_ = 2; + onChanged(); + ; + return bigqueryDestinationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.BatchPredictOutputConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.BatchPredictOutputConfig) + private static final com.google.cloud.automl.v1beta1.BatchPredictOutputConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.BatchPredictOutputConfig(); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictOutputConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchPredictOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchPredictOutputConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfigOrBuilder.java new file mode 100644 index 000000000000..e8470dd57187 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictOutputConfigOrBuilder.java @@ -0,0 +1,78 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/io.proto + +package com.google.cloud.automl.v1beta1; + +public interface BatchPredictOutputConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.BatchPredictOutputConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Google Cloud Storage location of the directory where the output is to
+   * be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + boolean hasGcsDestination(); + /** + * + * + *
+   * The Google Cloud Storage location of the directory where the output is to
+   * be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination(); + /** + * + * + *
+   * The Google Cloud Storage location of the directory where the output is to
+   * be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); + + /** + * + * + *
+   * The BigQuery location where the output is to be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + boolean hasBigqueryDestination(); + /** + * + * + *
+   * The BigQuery location where the output is to be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestination(); + /** + * + * + *
+   * The BigQuery location where the output is to be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder(); + + public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.DestinationCase + getDestinationCase(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequest.java new file mode 100644 index 000000000000..8453e7c8bbb6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequest.java @@ -0,0 +1,1776 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/prediction_service.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Request message for [PredictionService.BatchPredict][google.cloud.automl.v1beta1.PredictionService.BatchPredict].
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictRequest} + */ +public final class BatchPredictRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.BatchPredictRequest) + BatchPredictRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchPredictRequest.newBuilder() to construct. + private BatchPredictRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchPredictRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BatchPredictRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: + { + com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.automl.v1beta1.BatchPredictInputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + params_ = + com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; + } + com.google.protobuf.MapEntry params__ = + input.readMessage( + ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + params_.getMutableMap().put(params__.getKey(), params__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.PredictionServiceProto + .internal_static_google_cloud_automl_v1beta1_BatchPredictRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 5: + return internalGetParams(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.PredictionServiceProto + .internal_static_google_cloud_automl_v1beta1_BatchPredictRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.BatchPredictRequest.class, + com.google.cloud.automl.v1beta1.BatchPredictRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Name of the model requested to serve the batch prediction.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Name of the model requested to serve the batch prediction.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.automl.v1beta1.BatchPredictInputConfig inputConfig_; + /** + * + * + *
+   * Required. The input configuration for batch prediction.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3; + */ + public boolean hasInputConfig() { + return inputConfig_ != null; + } + /** + * + * + *
+   * Required. The input configuration for batch prediction.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3; + */ + public com.google.cloud.automl.v1beta1.BatchPredictInputConfig getInputConfig() { + return inputConfig_ == null + ? com.google.cloud.automl.v1beta1.BatchPredictInputConfig.getDefaultInstance() + : inputConfig_; + } + /** + * + * + *
+   * Required. The input configuration for batch prediction.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3; + */ + public com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder + getInputConfigOrBuilder() { + return getInputConfig(); + } + + public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.automl.v1beta1.BatchPredictOutputConfig outputConfig_; + /** + * + * + *
+   * Required. The Configuration specifying where output predictions should
+   * be written.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4; + */ + public boolean hasOutputConfig() { + return outputConfig_ != null; + } + /** + * + * + *
+   * Required. The Configuration specifying where output predictions should
+   * be written.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4; + */ + public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig getOutputConfig() { + return outputConfig_ == null + ? com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.getDefaultInstance() + : outputConfig_; + } + /** + * + * + *
+   * Required. The Configuration specifying where output predictions should
+   * be written.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4; + */ + public com.google.cloud.automl.v1beta1.BatchPredictOutputConfigOrBuilder + getOutputConfigOrBuilder() { + return getOutputConfig(); + } + + public static final int PARAMS_FIELD_NUMBER = 5; + + private static final class ParamsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.automl.v1beta1.PredictionServiceProto + .internal_static_google_cloud_automl_v1beta1_BatchPredictRequest_ParamsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { + if (params_ == null) { + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + } + return params_; + } + + public int getParamsCount() { + return internalGetParams().getMap().size(); + } + /** + * + * + *
+   * Additional domain-specific parameters for the predictions, any string must
+   * be up to 25000 characters long.
+   * *  For Video Classification :
+   *    `score_threshold` - (float) A value from 0.0 to 1.0. When the model
+   *        makes predictions for a video, it will only produce results that
+   *        have at least this confidence score. The default is 0.5.
+   *    `segment_classification` - (boolean) Set to true to request
+   *        segment-level classification. AutoML Video Intelligence returns
+   *        labels and their confidence scores for the entire segment of the
+   *        video that user specified in the request configuration.
+   *        The default is "true".
+   *    `shot_classification` - (boolean) Set to true to request shot-level
+   *        classification. AutoML Video Intelligence determines the boundaries
+   *        for each camera shot in the entire segment of the video that user
+   *        specified in the request configuration. AutoML Video Intelligence
+   *        then returns labels and their confidence scores for each detected
+   *        shot, along with the start and end time of the shot.
+   *        WARNING: Model evaluation is not done for this classification type,
+   *        the quality of it depends on training data, but there are no metrics
+   *        provided to describe that quality. The default is "false".
+   *    `1s_interval_classification` - (boolean) Set to true to request
+   *        classification for a video at one-second intervals. AutoML Video
+   *        Intelligence returns labels and their confidence scores for each
+   *        second of the entire segment of the video that user specified in the
+   *        request configuration.
+   *        WARNING: Model evaluation is not done for this classification
+   *        type, the quality of it depends on training data, but there are no
+   *        metrics provided to describe that quality. The default is
+   *        "false".
+   * 
+ * + * map<string, string> params = 5; + */ + public boolean containsParams(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetParams().getMap().containsKey(key); + } + /** Use {@link #getParamsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getParams() { + return getParamsMap(); + } + /** + * + * + *
+   * Additional domain-specific parameters for the predictions, any string must
+   * be up to 25000 characters long.
+   * *  For Video Classification :
+   *    `score_threshold` - (float) A value from 0.0 to 1.0. When the model
+   *        makes predictions for a video, it will only produce results that
+   *        have at least this confidence score. The default is 0.5.
+   *    `segment_classification` - (boolean) Set to true to request
+   *        segment-level classification. AutoML Video Intelligence returns
+   *        labels and their confidence scores for the entire segment of the
+   *        video that user specified in the request configuration.
+   *        The default is "true".
+   *    `shot_classification` - (boolean) Set to true to request shot-level
+   *        classification. AutoML Video Intelligence determines the boundaries
+   *        for each camera shot in the entire segment of the video that user
+   *        specified in the request configuration. AutoML Video Intelligence
+   *        then returns labels and their confidence scores for each detected
+   *        shot, along with the start and end time of the shot.
+   *        WARNING: Model evaluation is not done for this classification type,
+   *        the quality of it depends on training data, but there are no metrics
+   *        provided to describe that quality. The default is "false".
+   *    `1s_interval_classification` - (boolean) Set to true to request
+   *        classification for a video at one-second intervals. AutoML Video
+   *        Intelligence returns labels and their confidence scores for each
+   *        second of the entire segment of the video that user specified in the
+   *        request configuration.
+   *        WARNING: Model evaluation is not done for this classification
+   *        type, the quality of it depends on training data, but there are no
+   *        metrics provided to describe that quality. The default is
+   *        "false".
+   * 
+ * + * map<string, string> params = 5; + */ + public java.util.Map getParamsMap() { + return internalGetParams().getMap(); + } + /** + * + * + *
+   * Additional domain-specific parameters for the predictions, any string must
+   * be up to 25000 characters long.
+   * *  For Video Classification :
+   *    `score_threshold` - (float) A value from 0.0 to 1.0. When the model
+   *        makes predictions for a video, it will only produce results that
+   *        have at least this confidence score. The default is 0.5.
+   *    `segment_classification` - (boolean) Set to true to request
+   *        segment-level classification. AutoML Video Intelligence returns
+   *        labels and their confidence scores for the entire segment of the
+   *        video that user specified in the request configuration.
+   *        The default is "true".
+   *    `shot_classification` - (boolean) Set to true to request shot-level
+   *        classification. AutoML Video Intelligence determines the boundaries
+   *        for each camera shot in the entire segment of the video that user
+   *        specified in the request configuration. AutoML Video Intelligence
+   *        then returns labels and their confidence scores for each detected
+   *        shot, along with the start and end time of the shot.
+   *        WARNING: Model evaluation is not done for this classification type,
+   *        the quality of it depends on training data, but there are no metrics
+   *        provided to describe that quality. The default is "false".
+   *    `1s_interval_classification` - (boolean) Set to true to request
+   *        classification for a video at one-second intervals. AutoML Video
+   *        Intelligence returns labels and their confidence scores for each
+   *        second of the entire segment of the video that user specified in the
+   *        request configuration.
+   *        WARNING: Model evaluation is not done for this classification
+   *        type, the quality of it depends on training data, but there are no
+   *        metrics provided to describe that quality. The default is
+   *        "false".
+   * 
+ * + * map<string, string> params = 5; + */ + public java.lang.String getParamsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetParams().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Additional domain-specific parameters for the predictions, any string must
+   * be up to 25000 characters long.
+   * *  For Video Classification :
+   *    `score_threshold` - (float) A value from 0.0 to 1.0. When the model
+   *        makes predictions for a video, it will only produce results that
+   *        have at least this confidence score. The default is 0.5.
+   *    `segment_classification` - (boolean) Set to true to request
+   *        segment-level classification. AutoML Video Intelligence returns
+   *        labels and their confidence scores for the entire segment of the
+   *        video that user specified in the request configuration.
+   *        The default is "true".
+   *    `shot_classification` - (boolean) Set to true to request shot-level
+   *        classification. AutoML Video Intelligence determines the boundaries
+   *        for each camera shot in the entire segment of the video that user
+   *        specified in the request configuration. AutoML Video Intelligence
+   *        then returns labels and their confidence scores for each detected
+   *        shot, along with the start and end time of the shot.
+   *        WARNING: Model evaluation is not done for this classification type,
+   *        the quality of it depends on training data, but there are no metrics
+   *        provided to describe that quality. The default is "false".
+   *    `1s_interval_classification` - (boolean) Set to true to request
+   *        classification for a video at one-second intervals. AutoML Video
+   *        Intelligence returns labels and their confidence scores for each
+   *        second of the entire segment of the video that user specified in the
+   *        request configuration.
+   *        WARNING: Model evaluation is not done for this classification
+   *        type, the quality of it depends on training data, but there are no
+   *        metrics provided to describe that quality. The default is
+   *        "false".
+   * 
+ * + * map<string, string> params = 5; + */ + public java.lang.String getParamsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetParams().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (inputConfig_ != null) { + output.writeMessage(3, getInputConfig()); + } + if (outputConfig_ != null) { + output.writeMessage(4, getOutputConfig()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 5); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (inputConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputConfig()); + } + if (outputConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputConfig()); + } + for (java.util.Map.Entry entry : + internalGetParams().getMap().entrySet()) { + com.google.protobuf.MapEntry params__ = + ParamsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, params__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.BatchPredictRequest)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.BatchPredictRequest other = + (com.google.cloud.automl.v1beta1.BatchPredictRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasInputConfig() != other.hasInputConfig()) return false; + if (hasInputConfig()) { + if (!getInputConfig().equals(other.getInputConfig())) return false; + } + if (hasOutputConfig() != other.hasOutputConfig()) return false; + if (hasOutputConfig()) { + if (!getOutputConfig().equals(other.getOutputConfig())) return false; + } + if (!internalGetParams().equals(other.internalGetParams())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasInputConfig()) { + hash = (37 * hash) + INPUT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getInputConfig().hashCode(); + } + if (hasOutputConfig()) { + hash = (37 * hash) + OUTPUT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOutputConfig().hashCode(); + } + if (!internalGetParams().getMap().isEmpty()) { + hash = (37 * hash) + PARAMS_FIELD_NUMBER; + hash = (53 * hash) + internalGetParams().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.BatchPredictRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.BatchPredictRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [PredictionService.BatchPredict][google.cloud.automl.v1beta1.PredictionService.BatchPredict].
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.BatchPredictRequest) + com.google.cloud.automl.v1beta1.BatchPredictRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.PredictionServiceProto + .internal_static_google_cloud_automl_v1beta1_BatchPredictRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 5: + return internalGetParams(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 5: + return internalGetMutableParams(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.PredictionServiceProto + .internal_static_google_cloud_automl_v1beta1_BatchPredictRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.BatchPredictRequest.class, + com.google.cloud.automl.v1beta1.BatchPredictRequest.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.BatchPredictRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (inputConfigBuilder_ == null) { + inputConfig_ = null; + } else { + inputConfig_ = null; + inputConfigBuilder_ = null; + } + if (outputConfigBuilder_ == null) { + outputConfig_ = null; + } else { + outputConfig_ = null; + outputConfigBuilder_ = null; + } + internalGetMutableParams().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.PredictionServiceProto + .internal_static_google_cloud_automl_v1beta1_BatchPredictRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictRequest getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.BatchPredictRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictRequest build() { + com.google.cloud.automl.v1beta1.BatchPredictRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictRequest buildPartial() { + com.google.cloud.automl.v1beta1.BatchPredictRequest result = + new com.google.cloud.automl.v1beta1.BatchPredictRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + if (inputConfigBuilder_ == null) { + result.inputConfig_ = inputConfig_; + } else { + result.inputConfig_ = inputConfigBuilder_.build(); + } + if (outputConfigBuilder_ == null) { + result.outputConfig_ = outputConfig_; + } else { + result.outputConfig_ = outputConfigBuilder_.build(); + } + result.params_ = internalGetParams(); + result.params_.makeImmutable(); + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.BatchPredictRequest) { + return mergeFrom((com.google.cloud.automl.v1beta1.BatchPredictRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.BatchPredictRequest other) { + if (other == com.google.cloud.automl.v1beta1.BatchPredictRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasInputConfig()) { + mergeInputConfig(other.getInputConfig()); + } + if (other.hasOutputConfig()) { + mergeOutputConfig(other.getOutputConfig()); + } + internalGetMutableParams().mergeFrom(other.internalGetParams()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.BatchPredictRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.BatchPredictRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Name of the model requested to serve the batch prediction.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Name of the model requested to serve the batch prediction.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Name of the model requested to serve the batch prediction.
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the model requested to serve the batch prediction.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Name of the model requested to serve the batch prediction.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.cloud.automl.v1beta1.BatchPredictInputConfig inputConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BatchPredictInputConfig, + com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder, + com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder> + inputConfigBuilder_; + /** + * + * + *
+     * Required. The input configuration for batch prediction.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3; + */ + public boolean hasInputConfig() { + return inputConfigBuilder_ != null || inputConfig_ != null; + } + /** + * + * + *
+     * Required. The input configuration for batch prediction.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3; + */ + public com.google.cloud.automl.v1beta1.BatchPredictInputConfig getInputConfig() { + if (inputConfigBuilder_ == null) { + return inputConfig_ == null + ? com.google.cloud.automl.v1beta1.BatchPredictInputConfig.getDefaultInstance() + : inputConfig_; + } else { + return inputConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The input configuration for batch prediction.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3; + */ + public Builder setInputConfig(com.google.cloud.automl.v1beta1.BatchPredictInputConfig value) { + if (inputConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputConfig_ = value; + onChanged(); + } else { + inputConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The input configuration for batch prediction.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3; + */ + public Builder setInputConfig( + com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder builderForValue) { + if (inputConfigBuilder_ == null) { + inputConfig_ = builderForValue.build(); + onChanged(); + } else { + inputConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The input configuration for batch prediction.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3; + */ + public Builder mergeInputConfig(com.google.cloud.automl.v1beta1.BatchPredictInputConfig value) { + if (inputConfigBuilder_ == null) { + if (inputConfig_ != null) { + inputConfig_ = + com.google.cloud.automl.v1beta1.BatchPredictInputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + inputConfig_ = value; + } + onChanged(); + } else { + inputConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The input configuration for batch prediction.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3; + */ + public Builder clearInputConfig() { + if (inputConfigBuilder_ == null) { + inputConfig_ = null; + onChanged(); + } else { + inputConfig_ = null; + inputConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The input configuration for batch prediction.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3; + */ + public com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder getInputConfigBuilder() { + + onChanged(); + return getInputConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The input configuration for batch prediction.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3; + */ + public com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder + getInputConfigOrBuilder() { + if (inputConfigBuilder_ != null) { + return inputConfigBuilder_.getMessageOrBuilder(); + } else { + return inputConfig_ == null + ? com.google.cloud.automl.v1beta1.BatchPredictInputConfig.getDefaultInstance() + : inputConfig_; + } + } + /** + * + * + *
+     * Required. The input configuration for batch prediction.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BatchPredictInputConfig, + com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder, + com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder> + getInputConfigFieldBuilder() { + if (inputConfigBuilder_ == null) { + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BatchPredictInputConfig, + com.google.cloud.automl.v1beta1.BatchPredictInputConfig.Builder, + com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); + inputConfig_ = null; + } + return inputConfigBuilder_; + } + + private com.google.cloud.automl.v1beta1.BatchPredictOutputConfig outputConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig, + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.Builder, + com.google.cloud.automl.v1beta1.BatchPredictOutputConfigOrBuilder> + outputConfigBuilder_; + /** + * + * + *
+     * Required. The Configuration specifying where output predictions should
+     * be written.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4; + */ + public boolean hasOutputConfig() { + return outputConfigBuilder_ != null || outputConfig_ != null; + } + /** + * + * + *
+     * Required. The Configuration specifying where output predictions should
+     * be written.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4; + */ + public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig getOutputConfig() { + if (outputConfigBuilder_ == null) { + return outputConfig_ == null + ? com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.getDefaultInstance() + : outputConfig_; + } else { + return outputConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Configuration specifying where output predictions should
+     * be written.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4; + */ + public Builder setOutputConfig(com.google.cloud.automl.v1beta1.BatchPredictOutputConfig value) { + if (outputConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputConfig_ = value; + onChanged(); + } else { + outputConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Configuration specifying where output predictions should
+     * be written.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4; + */ + public Builder setOutputConfig( + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.Builder builderForValue) { + if (outputConfigBuilder_ == null) { + outputConfig_ = builderForValue.build(); + onChanged(); + } else { + outputConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The Configuration specifying where output predictions should
+     * be written.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4; + */ + public Builder mergeOutputConfig( + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig value) { + if (outputConfigBuilder_ == null) { + if (outputConfig_ != null) { + outputConfig_ = + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + outputConfig_ = value; + } + onChanged(); + } else { + outputConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The Configuration specifying where output predictions should
+     * be written.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4; + */ + public Builder clearOutputConfig() { + if (outputConfigBuilder_ == null) { + outputConfig_ = null; + onChanged(); + } else { + outputConfig_ = null; + outputConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The Configuration specifying where output predictions should
+     * be written.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4; + */ + public com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.Builder + getOutputConfigBuilder() { + + onChanged(); + return getOutputConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Configuration specifying where output predictions should
+     * be written.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4; + */ + public com.google.cloud.automl.v1beta1.BatchPredictOutputConfigOrBuilder + getOutputConfigOrBuilder() { + if (outputConfigBuilder_ != null) { + return outputConfigBuilder_.getMessageOrBuilder(); + } else { + return outputConfig_ == null + ? com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.getDefaultInstance() + : outputConfig_; + } + } + /** + * + * + *
+     * Required. The Configuration specifying where output predictions should
+     * be written.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig, + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.Builder, + com.google.cloud.automl.v1beta1.BatchPredictOutputConfigOrBuilder> + getOutputConfigFieldBuilder() { + if (outputConfigBuilder_ == null) { + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig, + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig.Builder, + com.google.cloud.automl.v1beta1.BatchPredictOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); + outputConfig_ = null; + } + return outputConfigBuilder_; + } + + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { + if (params_ == null) { + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + } + return params_; + } + + private com.google.protobuf.MapField + internalGetMutableParams() { + onChanged(); + ; + if (params_ == null) { + params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + } + if (!params_.isMutable()) { + params_ = params_.copy(); + } + return params_; + } + + public int getParamsCount() { + return internalGetParams().getMap().size(); + } + /** + * + * + *
+     * Additional domain-specific parameters for the predictions, any string must
+     * be up to 25000 characters long.
+     * *  For Video Classification :
+     *    `score_threshold` - (float) A value from 0.0 to 1.0. When the model
+     *        makes predictions for a video, it will only produce results that
+     *        have at least this confidence score. The default is 0.5.
+     *    `segment_classification` - (boolean) Set to true to request
+     *        segment-level classification. AutoML Video Intelligence returns
+     *        labels and their confidence scores for the entire segment of the
+     *        video that user specified in the request configuration.
+     *        The default is "true".
+     *    `shot_classification` - (boolean) Set to true to request shot-level
+     *        classification. AutoML Video Intelligence determines the boundaries
+     *        for each camera shot in the entire segment of the video that user
+     *        specified in the request configuration. AutoML Video Intelligence
+     *        then returns labels and their confidence scores for each detected
+     *        shot, along with the start and end time of the shot.
+     *        WARNING: Model evaluation is not done for this classification type,
+     *        the quality of it depends on training data, but there are no metrics
+     *        provided to describe that quality. The default is "false".
+     *    `1s_interval_classification` - (boolean) Set to true to request
+     *        classification for a video at one-second intervals. AutoML Video
+     *        Intelligence returns labels and their confidence scores for each
+     *        second of the entire segment of the video that user specified in the
+     *        request configuration.
+     *        WARNING: Model evaluation is not done for this classification
+     *        type, the quality of it depends on training data, but there are no
+     *        metrics provided to describe that quality. The default is
+     *        "false".
+     * 
+ * + * map<string, string> params = 5; + */ + public boolean containsParams(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetParams().getMap().containsKey(key); + } + /** Use {@link #getParamsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getParams() { + return getParamsMap(); + } + /** + * + * + *
+     * Additional domain-specific parameters for the predictions, any string must
+     * be up to 25000 characters long.
+     * *  For Video Classification :
+     *    `score_threshold` - (float) A value from 0.0 to 1.0. When the model
+     *        makes predictions for a video, it will only produce results that
+     *        have at least this confidence score. The default is 0.5.
+     *    `segment_classification` - (boolean) Set to true to request
+     *        segment-level classification. AutoML Video Intelligence returns
+     *        labels and their confidence scores for the entire segment of the
+     *        video that user specified in the request configuration.
+     *        The default is "true".
+     *    `shot_classification` - (boolean) Set to true to request shot-level
+     *        classification. AutoML Video Intelligence determines the boundaries
+     *        for each camera shot in the entire segment of the video that user
+     *        specified in the request configuration. AutoML Video Intelligence
+     *        then returns labels and their confidence scores for each detected
+     *        shot, along with the start and end time of the shot.
+     *        WARNING: Model evaluation is not done for this classification type,
+     *        the quality of it depends on training data, but there are no metrics
+     *        provided to describe that quality. The default is "false".
+     *    `1s_interval_classification` - (boolean) Set to true to request
+     *        classification for a video at one-second intervals. AutoML Video
+     *        Intelligence returns labels and their confidence scores for each
+     *        second of the entire segment of the video that user specified in the
+     *        request configuration.
+     *        WARNING: Model evaluation is not done for this classification
+     *        type, the quality of it depends on training data, but there are no
+     *        metrics provided to describe that quality. The default is
+     *        "false".
+     * 
+ * + * map<string, string> params = 5; + */ + public java.util.Map getParamsMap() { + return internalGetParams().getMap(); + } + /** + * + * + *
+     * Additional domain-specific parameters for the predictions, any string must
+     * be up to 25000 characters long.
+     * *  For Video Classification :
+     *    `score_threshold` - (float) A value from 0.0 to 1.0. When the model
+     *        makes predictions for a video, it will only produce results that
+     *        have at least this confidence score. The default is 0.5.
+     *    `segment_classification` - (boolean) Set to true to request
+     *        segment-level classification. AutoML Video Intelligence returns
+     *        labels and their confidence scores for the entire segment of the
+     *        video that user specified in the request configuration.
+     *        The default is "true".
+     *    `shot_classification` - (boolean) Set to true to request shot-level
+     *        classification. AutoML Video Intelligence determines the boundaries
+     *        for each camera shot in the entire segment of the video that user
+     *        specified in the request configuration. AutoML Video Intelligence
+     *        then returns labels and their confidence scores for each detected
+     *        shot, along with the start and end time of the shot.
+     *        WARNING: Model evaluation is not done for this classification type,
+     *        the quality of it depends on training data, but there are no metrics
+     *        provided to describe that quality. The default is "false".
+     *    `1s_interval_classification` - (boolean) Set to true to request
+     *        classification for a video at one-second intervals. AutoML Video
+     *        Intelligence returns labels and their confidence scores for each
+     *        second of the entire segment of the video that user specified in the
+     *        request configuration.
+     *        WARNING: Model evaluation is not done for this classification
+     *        type, the quality of it depends on training data, but there are no
+     *        metrics provided to describe that quality. The default is
+     *        "false".
+     * 
+ * + * map<string, string> params = 5; + */ + public java.lang.String getParamsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetParams().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Additional domain-specific parameters for the predictions, any string must
+     * be up to 25000 characters long.
+     * *  For Video Classification :
+     *    `score_threshold` - (float) A value from 0.0 to 1.0. When the model
+     *        makes predictions for a video, it will only produce results that
+     *        have at least this confidence score. The default is 0.5.
+     *    `segment_classification` - (boolean) Set to true to request
+     *        segment-level classification. AutoML Video Intelligence returns
+     *        labels and their confidence scores for the entire segment of the
+     *        video that user specified in the request configuration.
+     *        The default is "true".
+     *    `shot_classification` - (boolean) Set to true to request shot-level
+     *        classification. AutoML Video Intelligence determines the boundaries
+     *        for each camera shot in the entire segment of the video that user
+     *        specified in the request configuration. AutoML Video Intelligence
+     *        then returns labels and their confidence scores for each detected
+     *        shot, along with the start and end time of the shot.
+     *        WARNING: Model evaluation is not done for this classification type,
+     *        the quality of it depends on training data, but there are no metrics
+     *        provided to describe that quality. The default is "false".
+     *    `1s_interval_classification` - (boolean) Set to true to request
+     *        classification for a video at one-second intervals. AutoML Video
+     *        Intelligence returns labels and their confidence scores for each
+     *        second of the entire segment of the video that user specified in the
+     *        request configuration.
+     *        WARNING: Model evaluation is not done for this classification
+     *        type, the quality of it depends on training data, but there are no
+     *        metrics provided to describe that quality. The default is
+     *        "false".
+     * 
+ * + * map<string, string> params = 5; + */ + public java.lang.String getParamsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetParams().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearParams() { + internalGetMutableParams().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Additional domain-specific parameters for the predictions, any string must
+     * be up to 25000 characters long.
+     * *  For Video Classification :
+     *    `score_threshold` - (float) A value from 0.0 to 1.0. When the model
+     *        makes predictions for a video, it will only produce results that
+     *        have at least this confidence score. The default is 0.5.
+     *    `segment_classification` - (boolean) Set to true to request
+     *        segment-level classification. AutoML Video Intelligence returns
+     *        labels and their confidence scores for the entire segment of the
+     *        video that user specified in the request configuration.
+     *        The default is "true".
+     *    `shot_classification` - (boolean) Set to true to request shot-level
+     *        classification. AutoML Video Intelligence determines the boundaries
+     *        for each camera shot in the entire segment of the video that user
+     *        specified in the request configuration. AutoML Video Intelligence
+     *        then returns labels and their confidence scores for each detected
+     *        shot, along with the start and end time of the shot.
+     *        WARNING: Model evaluation is not done for this classification type,
+     *        the quality of it depends on training data, but there are no metrics
+     *        provided to describe that quality. The default is "false".
+     *    `1s_interval_classification` - (boolean) Set to true to request
+     *        classification for a video at one-second intervals. AutoML Video
+     *        Intelligence returns labels and their confidence scores for each
+     *        second of the entire segment of the video that user specified in the
+     *        request configuration.
+     *        WARNING: Model evaluation is not done for this classification
+     *        type, the quality of it depends on training data, but there are no
+     *        metrics provided to describe that quality. The default is
+     *        "false".
+     * 
+ * + * map<string, string> params = 5; + */ + public Builder removeParams(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableParams().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableParams() { + return internalGetMutableParams().getMutableMap(); + } + /** + * + * + *
+     * Additional domain-specific parameters for the predictions, any string must
+     * be up to 25000 characters long.
+     * *  For Video Classification :
+     *    `score_threshold` - (float) A value from 0.0 to 1.0. When the model
+     *        makes predictions for a video, it will only produce results that
+     *        have at least this confidence score. The default is 0.5.
+     *    `segment_classification` - (boolean) Set to true to request
+     *        segment-level classification. AutoML Video Intelligence returns
+     *        labels and their confidence scores for the entire segment of the
+     *        video that user specified in the request configuration.
+     *        The default is "true".
+     *    `shot_classification` - (boolean) Set to true to request shot-level
+     *        classification. AutoML Video Intelligence determines the boundaries
+     *        for each camera shot in the entire segment of the video that user
+     *        specified in the request configuration. AutoML Video Intelligence
+     *        then returns labels and their confidence scores for each detected
+     *        shot, along with the start and end time of the shot.
+     *        WARNING: Model evaluation is not done for this classification type,
+     *        the quality of it depends on training data, but there are no metrics
+     *        provided to describe that quality. The default is "false".
+     *    `1s_interval_classification` - (boolean) Set to true to request
+     *        classification for a video at one-second intervals. AutoML Video
+     *        Intelligence returns labels and their confidence scores for each
+     *        second of the entire segment of the video that user specified in the
+     *        request configuration.
+     *        WARNING: Model evaluation is not done for this classification
+     *        type, the quality of it depends on training data, but there are no
+     *        metrics provided to describe that quality. The default is
+     *        "false".
+     * 
+ * + * map<string, string> params = 5; + */ + public Builder putParams(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableParams().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Additional domain-specific parameters for the predictions, any string must
+     * be up to 25000 characters long.
+     * *  For Video Classification :
+     *    `score_threshold` - (float) A value from 0.0 to 1.0. When the model
+     *        makes predictions for a video, it will only produce results that
+     *        have at least this confidence score. The default is 0.5.
+     *    `segment_classification` - (boolean) Set to true to request
+     *        segment-level classification. AutoML Video Intelligence returns
+     *        labels and their confidence scores for the entire segment of the
+     *        video that user specified in the request configuration.
+     *        The default is "true".
+     *    `shot_classification` - (boolean) Set to true to request shot-level
+     *        classification. AutoML Video Intelligence determines the boundaries
+     *        for each camera shot in the entire segment of the video that user
+     *        specified in the request configuration. AutoML Video Intelligence
+     *        then returns labels and their confidence scores for each detected
+     *        shot, along with the start and end time of the shot.
+     *        WARNING: Model evaluation is not done for this classification type,
+     *        the quality of it depends on training data, but there are no metrics
+     *        provided to describe that quality. The default is "false".
+     *    `1s_interval_classification` - (boolean) Set to true to request
+     *        classification for a video at one-second intervals. AutoML Video
+     *        Intelligence returns labels and their confidence scores for each
+     *        second of the entire segment of the video that user specified in the
+     *        request configuration.
+     *        WARNING: Model evaluation is not done for this classification
+     *        type, the quality of it depends on training data, but there are no
+     *        metrics provided to describe that quality. The default is
+     *        "false".
+     * 
+ * + * map<string, string> params = 5; + */ + public Builder putAllParams(java.util.Map values) { + internalGetMutableParams().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.BatchPredictRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.BatchPredictRequest) + private static final com.google.cloud.automl.v1beta1.BatchPredictRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.BatchPredictRequest(); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchPredictRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchPredictRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequestOrBuilder.java new file mode 100644 index 000000000000..1bf73a5aca7d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictRequestOrBuilder.java @@ -0,0 +1,290 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/prediction_service.proto + +package com.google.cloud.automl.v1beta1; + +public interface BatchPredictRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.BatchPredictRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Name of the model requested to serve the batch prediction.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Name of the model requested to serve the batch prediction.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The input configuration for batch prediction.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3; + */ + boolean hasInputConfig(); + /** + * + * + *
+   * Required. The input configuration for batch prediction.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3; + */ + com.google.cloud.automl.v1beta1.BatchPredictInputConfig getInputConfig(); + /** + * + * + *
+   * Required. The input configuration for batch prediction.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictInputConfig input_config = 3; + */ + com.google.cloud.automl.v1beta1.BatchPredictInputConfigOrBuilder getInputConfigOrBuilder(); + + /** + * + * + *
+   * Required. The Configuration specifying where output predictions should
+   * be written.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4; + */ + boolean hasOutputConfig(); + /** + * + * + *
+   * Required. The Configuration specifying where output predictions should
+   * be written.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4; + */ + com.google.cloud.automl.v1beta1.BatchPredictOutputConfig getOutputConfig(); + /** + * + * + *
+   * Required. The Configuration specifying where output predictions should
+   * be written.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOutputConfig output_config = 4; + */ + com.google.cloud.automl.v1beta1.BatchPredictOutputConfigOrBuilder getOutputConfigOrBuilder(); + + /** + * + * + *
+   * Additional domain-specific parameters for the predictions, any string must
+   * be up to 25000 characters long.
+   * *  For Video Classification :
+   *    `score_threshold` - (float) A value from 0.0 to 1.0. When the model
+   *        makes predictions for a video, it will only produce results that
+   *        have at least this confidence score. The default is 0.5.
+   *    `segment_classification` - (boolean) Set to true to request
+   *        segment-level classification. AutoML Video Intelligence returns
+   *        labels and their confidence scores for the entire segment of the
+   *        video that user specified in the request configuration.
+   *        The default is "true".
+   *    `shot_classification` - (boolean) Set to true to request shot-level
+   *        classification. AutoML Video Intelligence determines the boundaries
+   *        for each camera shot in the entire segment of the video that user
+   *        specified in the request configuration. AutoML Video Intelligence
+   *        then returns labels and their confidence scores for each detected
+   *        shot, along with the start and end time of the shot.
+   *        WARNING: Model evaluation is not done for this classification type,
+   *        the quality of it depends on training data, but there are no metrics
+   *        provided to describe that quality. The default is "false".
+   *    `1s_interval_classification` - (boolean) Set to true to request
+   *        classification for a video at one-second intervals. AutoML Video
+   *        Intelligence returns labels and their confidence scores for each
+   *        second of the entire segment of the video that user specified in the
+   *        request configuration.
+   *        WARNING: Model evaluation is not done for this classification
+   *        type, the quality of it depends on training data, but there are no
+   *        metrics provided to describe that quality. The default is
+   *        "false".
+   * 
+ * + * map<string, string> params = 5; + */ + int getParamsCount(); + /** + * + * + *
+   * Additional domain-specific parameters for the predictions, any string must
+   * be up to 25000 characters long.
+   * *  For Video Classification :
+   *    `score_threshold` - (float) A value from 0.0 to 1.0. When the model
+   *        makes predictions for a video, it will only produce results that
+   *        have at least this confidence score. The default is 0.5.
+   *    `segment_classification` - (boolean) Set to true to request
+   *        segment-level classification. AutoML Video Intelligence returns
+   *        labels and their confidence scores for the entire segment of the
+   *        video that user specified in the request configuration.
+   *        The default is "true".
+   *    `shot_classification` - (boolean) Set to true to request shot-level
+   *        classification. AutoML Video Intelligence determines the boundaries
+   *        for each camera shot in the entire segment of the video that user
+   *        specified in the request configuration. AutoML Video Intelligence
+   *        then returns labels and their confidence scores for each detected
+   *        shot, along with the start and end time of the shot.
+   *        WARNING: Model evaluation is not done for this classification type,
+   *        the quality of it depends on training data, but there are no metrics
+   *        provided to describe that quality. The default is "false".
+   *    `1s_interval_classification` - (boolean) Set to true to request
+   *        classification for a video at one-second intervals. AutoML Video
+   *        Intelligence returns labels and their confidence scores for each
+   *        second of the entire segment of the video that user specified in the
+   *        request configuration.
+   *        WARNING: Model evaluation is not done for this classification
+   *        type, the quality of it depends on training data, but there are no
+   *        metrics provided to describe that quality. The default is
+   *        "false".
+   * 
+ * + * map<string, string> params = 5; + */ + boolean containsParams(java.lang.String key); + /** Use {@link #getParamsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getParams(); + /** + * + * + *
+   * Additional domain-specific parameters for the predictions, any string must
+   * be up to 25000 characters long.
+   * *  For Video Classification :
+   *    `score_threshold` - (float) A value from 0.0 to 1.0. When the model
+   *        makes predictions for a video, it will only produce results that
+   *        have at least this confidence score. The default is 0.5.
+   *    `segment_classification` - (boolean) Set to true to request
+   *        segment-level classification. AutoML Video Intelligence returns
+   *        labels and their confidence scores for the entire segment of the
+   *        video that user specified in the request configuration.
+   *        The default is "true".
+   *    `shot_classification` - (boolean) Set to true to request shot-level
+   *        classification. AutoML Video Intelligence determines the boundaries
+   *        for each camera shot in the entire segment of the video that user
+   *        specified in the request configuration. AutoML Video Intelligence
+   *        then returns labels and their confidence scores for each detected
+   *        shot, along with the start and end time of the shot.
+   *        WARNING: Model evaluation is not done for this classification type,
+   *        the quality of it depends on training data, but there are no metrics
+   *        provided to describe that quality. The default is "false".
+   *    `1s_interval_classification` - (boolean) Set to true to request
+   *        classification for a video at one-second intervals. AutoML Video
+   *        Intelligence returns labels and their confidence scores for each
+   *        second of the entire segment of the video that user specified in the
+   *        request configuration.
+   *        WARNING: Model evaluation is not done for this classification
+   *        type, the quality of it depends on training data, but there are no
+   *        metrics provided to describe that quality. The default is
+   *        "false".
+   * 
+ * + * map<string, string> params = 5; + */ + java.util.Map getParamsMap(); + /** + * + * + *
+   * Additional domain-specific parameters for the predictions, any string must
+   * be up to 25000 characters long.
+   * *  For Video Classification :
+   *    `score_threshold` - (float) A value from 0.0 to 1.0. When the model
+   *        makes predictions for a video, it will only produce results that
+   *        have at least this confidence score. The default is 0.5.
+   *    `segment_classification` - (boolean) Set to true to request
+   *        segment-level classification. AutoML Video Intelligence returns
+   *        labels and their confidence scores for the entire segment of the
+   *        video that user specified in the request configuration.
+   *        The default is "true".
+   *    `shot_classification` - (boolean) Set to true to request shot-level
+   *        classification. AutoML Video Intelligence determines the boundaries
+   *        for each camera shot in the entire segment of the video that user
+   *        specified in the request configuration. AutoML Video Intelligence
+   *        then returns labels and their confidence scores for each detected
+   *        shot, along with the start and end time of the shot.
+   *        WARNING: Model evaluation is not done for this classification type,
+   *        the quality of it depends on training data, but there are no metrics
+   *        provided to describe that quality. The default is "false".
+   *    `1s_interval_classification` - (boolean) Set to true to request
+   *        classification for a video at one-second intervals. AutoML Video
+   *        Intelligence returns labels and their confidence scores for each
+   *        second of the entire segment of the video that user specified in the
+   *        request configuration.
+   *        WARNING: Model evaluation is not done for this classification
+   *        type, the quality of it depends on training data, but there are no
+   *        metrics provided to describe that quality. The default is
+   *        "false".
+   * 
+ * + * map<string, string> params = 5; + */ + java.lang.String getParamsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Additional domain-specific parameters for the predictions, any string must
+   * be up to 25000 characters long.
+   * *  For Video Classification :
+   *    `score_threshold` - (float) A value from 0.0 to 1.0. When the model
+   *        makes predictions for a video, it will only produce results that
+   *        have at least this confidence score. The default is 0.5.
+   *    `segment_classification` - (boolean) Set to true to request
+   *        segment-level classification. AutoML Video Intelligence returns
+   *        labels and their confidence scores for the entire segment of the
+   *        video that user specified in the request configuration.
+   *        The default is "true".
+   *    `shot_classification` - (boolean) Set to true to request shot-level
+   *        classification. AutoML Video Intelligence determines the boundaries
+   *        for each camera shot in the entire segment of the video that user
+   *        specified in the request configuration. AutoML Video Intelligence
+   *        then returns labels and their confidence scores for each detected
+   *        shot, along with the start and end time of the shot.
+   *        WARNING: Model evaluation is not done for this classification type,
+   *        the quality of it depends on training data, but there are no metrics
+   *        provided to describe that quality. The default is "false".
+   *    `1s_interval_classification` - (boolean) Set to true to request
+   *        classification for a video at one-second intervals. AutoML Video
+   *        Intelligence returns labels and their confidence scores for each
+   *        second of the entire segment of the video that user specified in the
+   *        request configuration.
+   *        WARNING: Model evaluation is not done for this classification
+   *        type, the quality of it depends on training data, but there are no
+   *        metrics provided to describe that quality. The default is
+   *        "false".
+   * 
+ * + * map<string, string> params = 5; + */ + java.lang.String getParamsOrThrow(java.lang.String key); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResult.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResult.java new file mode 100644 index 000000000000..6b2528363b0d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResult.java @@ -0,0 +1,435 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/prediction_service.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Batch predict result.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictResult} + */ +public final class BatchPredictResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.BatchPredictResult) + BatchPredictResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchPredictResult.newBuilder() to construct. + private BatchPredictResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchPredictResult() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BatchPredictResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.PredictionServiceProto + .internal_static_google_cloud_automl_v1beta1_BatchPredictResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.PredictionServiceProto + .internal_static_google_cloud_automl_v1beta1_BatchPredictResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.BatchPredictResult.class, + com.google.cloud.automl.v1beta1.BatchPredictResult.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.BatchPredictResult)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.BatchPredictResult other = + (com.google.cloud.automl.v1beta1.BatchPredictResult) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.BatchPredictResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictResult parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.BatchPredictResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Batch predict result.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.BatchPredictResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.BatchPredictResult) + com.google.cloud.automl.v1beta1.BatchPredictResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.PredictionServiceProto + .internal_static_google_cloud_automl_v1beta1_BatchPredictResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.PredictionServiceProto + .internal_static_google_cloud_automl_v1beta1_BatchPredictResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.BatchPredictResult.class, + com.google.cloud.automl.v1beta1.BatchPredictResult.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.BatchPredictResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.PredictionServiceProto + .internal_static_google_cloud_automl_v1beta1_BatchPredictResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictResult getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.BatchPredictResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictResult build() { + com.google.cloud.automl.v1beta1.BatchPredictResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictResult buildPartial() { + com.google.cloud.automl.v1beta1.BatchPredictResult result = + new com.google.cloud.automl.v1beta1.BatchPredictResult(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.BatchPredictResult) { + return mergeFrom((com.google.cloud.automl.v1beta1.BatchPredictResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.BatchPredictResult other) { + if (other == com.google.cloud.automl.v1beta1.BatchPredictResult.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.BatchPredictResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.BatchPredictResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.BatchPredictResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.BatchPredictResult) + private static final com.google.cloud.automl.v1beta1.BatchPredictResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.BatchPredictResult(); + } + + public static com.google.cloud.automl.v1beta1.BatchPredictResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchPredictResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BatchPredictResult(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BatchPredictResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResultOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResultOrBuilder.java new file mode 100644 index 000000000000..fac4a053aff9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BatchPredictResultOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/prediction_service.proto + +package com.google.cloud.automl.v1beta1; + +public interface BatchPredictResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.BatchPredictResult) + com.google.protobuf.MessageOrBuilder {} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestination.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestination.java new file mode 100644 index 000000000000..b566076c8b64 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestination.java @@ -0,0 +1,612 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/io.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * The BigQuery location for the output content.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.BigQueryDestination} + */ +public final class BigQueryDestination extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.BigQueryDestination) + BigQueryDestinationOrBuilder { + private static final long serialVersionUID = 0L; + // Use BigQueryDestination.newBuilder() to construct. + private BigQueryDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BigQueryDestination() { + outputUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BigQueryDestination( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + outputUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_BigQueryDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_BigQueryDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.BigQueryDestination.class, + com.google.cloud.automl.v1beta1.BigQueryDestination.Builder.class); + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 1; + private volatile java.lang.Object outputUri_; + /** + * + * + *
+   * Required. BigQuery URI to a project, up to 2000 characters long.
+   * Accepted forms:
+   * *  BigQuery path e.g. bq://projectId
+   * 
+ * + * string output_uri = 1; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = outputUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputUri_ = s; + return s; + } + } + /** + * + * + *
+   * Required. BigQuery URI to a project, up to 2000 characters long.
+   * Accepted forms:
+   * *  BigQuery path e.g. bq://projectId
+   * 
+ * + * string output_uri = 1; + */ + public com.google.protobuf.ByteString getOutputUriBytes() { + java.lang.Object ref = outputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getOutputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getOutputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputUri_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.BigQueryDestination)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.BigQueryDestination other = + (com.google.cloud.automl.v1beta1.BigQueryDestination) obj; + + if (!getOutputUri().equals(other.getOutputUri())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.BigQueryDestination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BigQueryDestination parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BigQueryDestination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BigQueryDestination parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BigQueryDestination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BigQueryDestination parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BigQueryDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BigQueryDestination parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BigQueryDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BigQueryDestination parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BigQueryDestination parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BigQueryDestination parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.BigQueryDestination prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The BigQuery location for the output content.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.BigQueryDestination} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.BigQueryDestination) + com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_BigQueryDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_BigQueryDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.BigQueryDestination.class, + com.google.cloud.automl.v1beta1.BigQueryDestination.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.BigQueryDestination.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + outputUri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_BigQueryDestination_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BigQueryDestination getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BigQueryDestination build() { + com.google.cloud.automl.v1beta1.BigQueryDestination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BigQueryDestination buildPartial() { + com.google.cloud.automl.v1beta1.BigQueryDestination result = + new com.google.cloud.automl.v1beta1.BigQueryDestination(this); + result.outputUri_ = outputUri_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.BigQueryDestination) { + return mergeFrom((com.google.cloud.automl.v1beta1.BigQueryDestination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.BigQueryDestination other) { + if (other == com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance()) + return this; + if (!other.getOutputUri().isEmpty()) { + outputUri_ = other.outputUri_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.BigQueryDestination parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.BigQueryDestination) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object outputUri_ = ""; + /** + * + * + *
+     * Required. BigQuery URI to a project, up to 2000 characters long.
+     * Accepted forms:
+     * *  BigQuery path e.g. bq://projectId
+     * 
+ * + * string output_uri = 1; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = outputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. BigQuery URI to a project, up to 2000 characters long.
+     * Accepted forms:
+     * *  BigQuery path e.g. bq://projectId
+     * 
+ * + * string output_uri = 1; + */ + public com.google.protobuf.ByteString getOutputUriBytes() { + java.lang.Object ref = outputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. BigQuery URI to a project, up to 2000 characters long.
+     * Accepted forms:
+     * *  BigQuery path e.g. bq://projectId
+     * 
+ * + * string output_uri = 1; + */ + public Builder setOutputUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outputUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. BigQuery URI to a project, up to 2000 characters long.
+     * Accepted forms:
+     * *  BigQuery path e.g. bq://projectId
+     * 
+ * + * string output_uri = 1; + */ + public Builder clearOutputUri() { + + outputUri_ = getDefaultInstance().getOutputUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. BigQuery URI to a project, up to 2000 characters long.
+     * Accepted forms:
+     * *  BigQuery path e.g. bq://projectId
+     * 
+ * + * string output_uri = 1; + */ + public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outputUri_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.BigQueryDestination) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.BigQueryDestination) + private static final com.google.cloud.automl.v1beta1.BigQueryDestination DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.BigQueryDestination(); + } + + public static com.google.cloud.automl.v1beta1.BigQueryDestination getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BigQueryDestination(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BigQueryDestination getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestinationOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestinationOrBuilder.java new file mode 100644 index 000000000000..a615c9d72455 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQueryDestinationOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/io.proto + +package com.google.cloud.automl.v1beta1; + +public interface BigQueryDestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.BigQueryDestination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. BigQuery URI to a project, up to 2000 characters long.
+   * Accepted forms:
+   * *  BigQuery path e.g. bq://projectId
+   * 
+ * + * string output_uri = 1; + */ + java.lang.String getOutputUri(); + /** + * + * + *
+   * Required. BigQuery URI to a project, up to 2000 characters long.
+   * Accepted forms:
+   * *  BigQuery path e.g. bq://projectId
+   * 
+ * + * string output_uri = 1; + */ + com.google.protobuf.ByteString getOutputUriBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySource.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySource.java new file mode 100644 index 000000000000..d0fc9f073330 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySource.java @@ -0,0 +1,610 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/io.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * The BigQuery location for the input content.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.BigQuerySource} + */ +public final class BigQuerySource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.BigQuerySource) + BigQuerySourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use BigQuerySource.newBuilder() to construct. + private BigQuerySource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BigQuerySource() { + inputUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BigQuerySource( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_BigQuerySource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_BigQuerySource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.BigQuerySource.class, + com.google.cloud.automl.v1beta1.BigQuerySource.Builder.class); + } + + public static final int INPUT_URI_FIELD_NUMBER = 1; + private volatile java.lang.Object inputUri_; + /** + * + * + *
+   * Required. BigQuery URI to a table, up to 2000 characters long.
+   * Accepted forms:
+   * *  BigQuery path e.g. bq://projectId.bqDatasetId.bqTableId
+   * 
+ * + * string input_uri = 1; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } + } + /** + * + * + *
+   * Required. BigQuery URI to a table, up to 2000 characters long.
+   * Accepted forms:
+   * *  BigQuery path e.g. bq://projectId.bqDatasetId.bqTableId
+   * 
+ * + * string input_uri = 1; + */ + public com.google.protobuf.ByteString getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getInputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getInputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputUri_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.BigQuerySource)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.BigQuerySource other = + (com.google.cloud.automl.v1beta1.BigQuerySource) obj; + + if (!getInputUri().equals(other.getInputUri())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.BigQuerySource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BigQuerySource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BigQuerySource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BigQuerySource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BigQuerySource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BigQuerySource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BigQuerySource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BigQuerySource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BigQuerySource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BigQuerySource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BigQuerySource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BigQuerySource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.BigQuerySource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The BigQuery location for the input content.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.BigQuerySource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.BigQuerySource) + com.google.cloud.automl.v1beta1.BigQuerySourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_BigQuerySource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_BigQuerySource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.BigQuerySource.class, + com.google.cloud.automl.v1beta1.BigQuerySource.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.BigQuerySource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + inputUri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_BigQuerySource_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BigQuerySource getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.BigQuerySource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BigQuerySource build() { + com.google.cloud.automl.v1beta1.BigQuerySource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BigQuerySource buildPartial() { + com.google.cloud.automl.v1beta1.BigQuerySource result = + new com.google.cloud.automl.v1beta1.BigQuerySource(this); + result.inputUri_ = inputUri_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.BigQuerySource) { + return mergeFrom((com.google.cloud.automl.v1beta1.BigQuerySource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.BigQuerySource other) { + if (other == com.google.cloud.automl.v1beta1.BigQuerySource.getDefaultInstance()) return this; + if (!other.getInputUri().isEmpty()) { + inputUri_ = other.inputUri_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.BigQuerySource parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.BigQuerySource) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object inputUri_ = ""; + /** + * + * + *
+     * Required. BigQuery URI to a table, up to 2000 characters long.
+     * Accepted forms:
+     * *  BigQuery path e.g. bq://projectId.bqDatasetId.bqTableId
+     * 
+ * + * string input_uri = 1; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. BigQuery URI to a table, up to 2000 characters long.
+     * Accepted forms:
+     * *  BigQuery path e.g. bq://projectId.bqDatasetId.bqTableId
+     * 
+ * + * string input_uri = 1; + */ + public com.google.protobuf.ByteString getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. BigQuery URI to a table, up to 2000 characters long.
+     * Accepted forms:
+     * *  BigQuery path e.g. bq://projectId.bqDatasetId.bqTableId
+     * 
+ * + * string input_uri = 1; + */ + public Builder setInputUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. BigQuery URI to a table, up to 2000 characters long.
+     * Accepted forms:
+     * *  BigQuery path e.g. bq://projectId.bqDatasetId.bqTableId
+     * 
+ * + * string input_uri = 1; + */ + public Builder clearInputUri() { + + inputUri_ = getDefaultInstance().getInputUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. BigQuery URI to a table, up to 2000 characters long.
+     * Accepted forms:
+     * *  BigQuery path e.g. bq://projectId.bqDatasetId.bqTableId
+     * 
+ * + * string input_uri = 1; + */ + public Builder setInputUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUri_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.BigQuerySource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.BigQuerySource) + private static final com.google.cloud.automl.v1beta1.BigQuerySource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.BigQuerySource(); + } + + public static com.google.cloud.automl.v1beta1.BigQuerySource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQuerySource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BigQuerySource(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BigQuerySource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySourceOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySourceOrBuilder.java new file mode 100644 index 000000000000..aedfca13e224 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BigQuerySourceOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/io.proto + +package com.google.cloud.automl.v1beta1; + +public interface BigQuerySourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.BigQuerySource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. BigQuery URI to a table, up to 2000 characters long.
+   * Accepted forms:
+   * *  BigQuery path e.g. bq://projectId.bqDatasetId.bqTableId
+   * 
+ * + * string input_uri = 1; + */ + java.lang.String getInputUri(); + /** + * + * + *
+   * Required. BigQuery URI to a table, up to 2000 characters long.
+   * Accepted forms:
+   * *  BigQuery path e.g. bq://projectId.bqDatasetId.bqTableId
+   * 
+ * + * string input_uri = 1; + */ + com.google.protobuf.ByteString getInputUriBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntry.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntry.java new file mode 100644 index 000000000000..47dbef7e99ad --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntry.java @@ -0,0 +1,2083 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/detection.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Bounding box matching model metrics for a single intersection-over-union
+ * threshold and multiple label match confidence thresholds.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.BoundingBoxMetricsEntry} + */ +public final class BoundingBoxMetricsEntry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.BoundingBoxMetricsEntry) + BoundingBoxMetricsEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use BoundingBoxMetricsEntry.newBuilder() to construct. + private BoundingBoxMetricsEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BoundingBoxMetricsEntry() { + confidenceMetricsEntries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BoundingBoxMetricsEntry( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + iouThreshold_ = input.readFloat(); + break; + } + case 21: + { + meanAveragePrecision_ = input.readFloat(); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + confidenceMetricsEntries_ = + new java.util.ArrayList< + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry + .ConfidenceMetricsEntry>(); + mutable_bitField0_ |= 0x00000004; + } + confidenceMetricsEntries_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + .parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) != 0)) { + confidenceMetricsEntries_ = + java.util.Collections.unmodifiableList(confidenceMetricsEntries_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.class, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder.class); + } + + public interface ConfidenceMetricsEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The confidence threshold value used to compute the metrics.
+     * 
+ * + * float confidence_threshold = 1; + */ + float getConfidenceThreshold(); + + /** + * + * + *
+     * Output only. Recall under the given confidence threshold.
+     * 
+ * + * float recall = 2; + */ + float getRecall(); + + /** + * + * + *
+     * Output only. Precision under the given confidence threshold.
+     * 
+ * + * float precision = 3; + */ + float getPrecision(); + + /** + * + * + *
+     * Output only. The harmonic mean of recall and precision.
+     * 
+ * + * float f1_score = 4; + */ + float getF1Score(); + } + /** + * + * + *
+   * Metrics for a single confidence threshold.
+   * 
+ * + * Protobuf type {@code + * google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry} + */ + public static final class ConfidenceMetricsEntry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) + ConfidenceMetricsEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConfidenceMetricsEntry.newBuilder() to construct. + private ConfidenceMetricsEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConfidenceMetricsEntry() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ConfidenceMetricsEntry( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + confidenceThreshold_ = input.readFloat(); + break; + } + case 21: + { + recall_ = input.readFloat(); + break; + } + case 29: + { + precision_ = input.readFloat(); + break; + } + case 37: + { + f1Score_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.class, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder + .class); + } + + public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 1; + private float confidenceThreshold_; + /** + * + * + *
+     * Output only. The confidence threshold value used to compute the metrics.
+     * 
+ * + * float confidence_threshold = 1; + */ + public float getConfidenceThreshold() { + return confidenceThreshold_; + } + + public static final int RECALL_FIELD_NUMBER = 2; + private float recall_; + /** + * + * + *
+     * Output only. Recall under the given confidence threshold.
+     * 
+ * + * float recall = 2; + */ + public float getRecall() { + return recall_; + } + + public static final int PRECISION_FIELD_NUMBER = 3; + private float precision_; + /** + * + * + *
+     * Output only. Precision under the given confidence threshold.
+     * 
+ * + * float precision = 3; + */ + public float getPrecision() { + return precision_; + } + + public static final int F1_SCORE_FIELD_NUMBER = 4; + private float f1Score_; + /** + * + * + *
+     * Output only. The harmonic mean of recall and precision.
+     * 
+ * + * float f1_score = 4; + */ + public float getF1Score() { + return f1Score_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (confidenceThreshold_ != 0F) { + output.writeFloat(1, confidenceThreshold_); + } + if (recall_ != 0F) { + output.writeFloat(2, recall_); + } + if (precision_ != 0F) { + output.writeFloat(3, precision_); + } + if (f1Score_ != 0F) { + output.writeFloat(4, f1Score_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (confidenceThreshold_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); + } + if (recall_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, recall_); + } + if (precision_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, precision_); + } + if (f1Score_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, f1Score_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry other = + (com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) obj; + + if (java.lang.Float.floatToIntBits(getConfidenceThreshold()) + != java.lang.Float.floatToIntBits(other.getConfidenceThreshold())) return false; + if (java.lang.Float.floatToIntBits(getRecall()) + != java.lang.Float.floatToIntBits(other.getRecall())) return false; + if (java.lang.Float.floatToIntBits(getPrecision()) + != java.lang.Float.floatToIntBits(other.getPrecision())) return false; + if (java.lang.Float.floatToIntBits(getF1Score()) + != java.lang.Float.floatToIntBits(other.getF1Score())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONFIDENCE_THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceThreshold()); + hash = (37 * hash) + RECALL_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecall()); + hash = (37 * hash) + PRECISION_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecision()); + hash = (37 * hash) + F1_SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1Score()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Metrics for a single confidence threshold.
+     * 
+ * + * Protobuf type {@code + * google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + .class, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + .Builder.class); + } + + // Construct using + // com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + confidenceThreshold_ = 0F; + + recall_ = 0F; + + precision_ = 0F; + + f1Score_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + build() { + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + buildPartial() { + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry result = + new com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry( + this); + result.confidenceThreshold_ = confidenceThreshold_; + result.recall_ = recall_; + result.precision_ = precision_; + result.f1Score_ = f1Score_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) { + return mergeFrom( + (com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry other) { + if (other + == com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + .getDefaultInstance()) return this; + if (other.getConfidenceThreshold() != 0F) { + setConfidenceThreshold(other.getConfidenceThreshold()); + } + if (other.getRecall() != 0F) { + setRecall(other.getRecall()); + } + if (other.getPrecision() != 0F) { + setPrecision(other.getPrecision()); + } + if (other.getF1Score() != 0F) { + setF1Score(other.getF1Score()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private float confidenceThreshold_; + /** + * + * + *
+       * Output only. The confidence threshold value used to compute the metrics.
+       * 
+ * + * float confidence_threshold = 1; + */ + public float getConfidenceThreshold() { + return confidenceThreshold_; + } + /** + * + * + *
+       * Output only. The confidence threshold value used to compute the metrics.
+       * 
+ * + * float confidence_threshold = 1; + */ + public Builder setConfidenceThreshold(float value) { + + confidenceThreshold_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The confidence threshold value used to compute the metrics.
+       * 
+ * + * float confidence_threshold = 1; + */ + public Builder clearConfidenceThreshold() { + + confidenceThreshold_ = 0F; + onChanged(); + return this; + } + + private float recall_; + /** + * + * + *
+       * Output only. Recall under the given confidence threshold.
+       * 
+ * + * float recall = 2; + */ + public float getRecall() { + return recall_; + } + /** + * + * + *
+       * Output only. Recall under the given confidence threshold.
+       * 
+ * + * float recall = 2; + */ + public Builder setRecall(float value) { + + recall_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Recall under the given confidence threshold.
+       * 
+ * + * float recall = 2; + */ + public Builder clearRecall() { + + recall_ = 0F; + onChanged(); + return this; + } + + private float precision_; + /** + * + * + *
+       * Output only. Precision under the given confidence threshold.
+       * 
+ * + * float precision = 3; + */ + public float getPrecision() { + return precision_; + } + /** + * + * + *
+       * Output only. Precision under the given confidence threshold.
+       * 
+ * + * float precision = 3; + */ + public Builder setPrecision(float value) { + + precision_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Precision under the given confidence threshold.
+       * 
+ * + * float precision = 3; + */ + public Builder clearPrecision() { + + precision_ = 0F; + onChanged(); + return this; + } + + private float f1Score_; + /** + * + * + *
+       * Output only. The harmonic mean of recall and precision.
+       * 
+ * + * float f1_score = 4; + */ + public float getF1Score() { + return f1Score_; + } + /** + * + * + *
+       * Output only. The harmonic mean of recall and precision.
+       * 
+ * + * float f1_score = 4; + */ + public Builder setF1Score(float value) { + + f1Score_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The harmonic mean of recall and precision.
+       * 
+ * + * float f1_score = 4; + */ + public Builder clearF1Score() { + + f1Score_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry) + private static final com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry + .ConfidenceMetricsEntry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry(); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfidenceMetricsEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfidenceMetricsEntry(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int IOU_THRESHOLD_FIELD_NUMBER = 1; + private float iouThreshold_; + /** + * + * + *
+   * Output only. The intersection-over-union threshold value used to compute
+   * this metrics entry.
+   * 
+ * + * float iou_threshold = 1; + */ + public float getIouThreshold() { + return iouThreshold_; + } + + public static final int MEAN_AVERAGE_PRECISION_FIELD_NUMBER = 2; + private float meanAveragePrecision_; + /** + * + * + *
+   * Output only. The mean average precision, most often close to au_prc.
+   * 
+ * + * float mean_average_precision = 2; + */ + public float getMeanAveragePrecision() { + return meanAveragePrecision_; + } + + public static final int CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER = 3; + private java.util.List< + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry> + confidenceMetricsEntries_; + /** + * + * + *
+   * Output only. Metrics for each label-match confidence_threshold from
+   * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+   * derived from them.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public java.util.List< + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry> + getConfidenceMetricsEntriesList() { + return confidenceMetricsEntries_; + } + /** + * + * + *
+   * Output only. Metrics for each label-match confidence_threshold from
+   * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+   * derived from them.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public java.util.List< + ? extends + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry + .ConfidenceMetricsEntryOrBuilder> + getConfidenceMetricsEntriesOrBuilderList() { + return confidenceMetricsEntries_; + } + /** + * + * + *
+   * Output only. Metrics for each label-match confidence_threshold from
+   * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+   * derived from them.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public int getConfidenceMetricsEntriesCount() { + return confidenceMetricsEntries_.size(); + } + /** + * + * + *
+   * Output only. Metrics for each label-match confidence_threshold from
+   * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+   * derived from them.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + getConfidenceMetricsEntries(int index) { + return confidenceMetricsEntries_.get(index); + } + /** + * + * + *
+   * Output only. Metrics for each label-match confidence_threshold from
+   * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+   * derived from them.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntriesOrBuilder(int index) { + return confidenceMetricsEntries_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (iouThreshold_ != 0F) { + output.writeFloat(1, iouThreshold_); + } + if (meanAveragePrecision_ != 0F) { + output.writeFloat(2, meanAveragePrecision_); + } + for (int i = 0; i < confidenceMetricsEntries_.size(); i++) { + output.writeMessage(3, confidenceMetricsEntries_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (iouThreshold_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, iouThreshold_); + } + if (meanAveragePrecision_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, meanAveragePrecision_); + } + for (int i = 0; i < confidenceMetricsEntries_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, confidenceMetricsEntries_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry other = + (com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry) obj; + + if (java.lang.Float.floatToIntBits(getIouThreshold()) + != java.lang.Float.floatToIntBits(other.getIouThreshold())) return false; + if (java.lang.Float.floatToIntBits(getMeanAveragePrecision()) + != java.lang.Float.floatToIntBits(other.getMeanAveragePrecision())) return false; + if (!getConfidenceMetricsEntriesList().equals(other.getConfidenceMetricsEntriesList())) + return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IOU_THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getIouThreshold()); + hash = (37 * hash) + MEAN_AVERAGE_PRECISION_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getMeanAveragePrecision()); + if (getConfidenceMetricsEntriesCount() > 0) { + hash = (37 * hash) + CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getConfidenceMetricsEntriesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Bounding box matching model metrics for a single intersection-over-union
+   * threshold and multiple label match confidence thresholds.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.BoundingBoxMetricsEntry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.BoundingBoxMetricsEntry) + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.class, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getConfidenceMetricsEntriesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + iouThreshold_ = 0F; + + meanAveragePrecision_ = 0F; + + if (confidenceMetricsEntriesBuilder_ == null) { + confidenceMetricsEntries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + confidenceMetricsEntriesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry build() { + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry buildPartial() { + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry result = + new com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.iouThreshold_ = iouThreshold_; + result.meanAveragePrecision_ = meanAveragePrecision_; + if (confidenceMetricsEntriesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + confidenceMetricsEntries_ = + java.util.Collections.unmodifiableList(confidenceMetricsEntries_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.confidenceMetricsEntries_ = confidenceMetricsEntries_; + } else { + result.confidenceMetricsEntries_ = confidenceMetricsEntriesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry) { + return mergeFrom((com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry other) { + if (other == com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.getDefaultInstance()) + return this; + if (other.getIouThreshold() != 0F) { + setIouThreshold(other.getIouThreshold()); + } + if (other.getMeanAveragePrecision() != 0F) { + setMeanAveragePrecision(other.getMeanAveragePrecision()); + } + if (confidenceMetricsEntriesBuilder_ == null) { + if (!other.confidenceMetricsEntries_.isEmpty()) { + if (confidenceMetricsEntries_.isEmpty()) { + confidenceMetricsEntries_ = other.confidenceMetricsEntries_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureConfidenceMetricsEntriesIsMutable(); + confidenceMetricsEntries_.addAll(other.confidenceMetricsEntries_); + } + onChanged(); + } + } else { + if (!other.confidenceMetricsEntries_.isEmpty()) { + if (confidenceMetricsEntriesBuilder_.isEmpty()) { + confidenceMetricsEntriesBuilder_.dispose(); + confidenceMetricsEntriesBuilder_ = null; + confidenceMetricsEntries_ = other.confidenceMetricsEntries_; + bitField0_ = (bitField0_ & ~0x00000004); + confidenceMetricsEntriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConfidenceMetricsEntriesFieldBuilder() + : null; + } else { + confidenceMetricsEntriesBuilder_.addAllMessages(other.confidenceMetricsEntries_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private float iouThreshold_; + /** + * + * + *
+     * Output only. The intersection-over-union threshold value used to compute
+     * this metrics entry.
+     * 
+ * + * float iou_threshold = 1; + */ + public float getIouThreshold() { + return iouThreshold_; + } + /** + * + * + *
+     * Output only. The intersection-over-union threshold value used to compute
+     * this metrics entry.
+     * 
+ * + * float iou_threshold = 1; + */ + public Builder setIouThreshold(float value) { + + iouThreshold_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The intersection-over-union threshold value used to compute
+     * this metrics entry.
+     * 
+ * + * float iou_threshold = 1; + */ + public Builder clearIouThreshold() { + + iouThreshold_ = 0F; + onChanged(); + return this; + } + + private float meanAveragePrecision_; + /** + * + * + *
+     * Output only. The mean average precision, most often close to au_prc.
+     * 
+ * + * float mean_average_precision = 2; + */ + public float getMeanAveragePrecision() { + return meanAveragePrecision_; + } + /** + * + * + *
+     * Output only. The mean average precision, most often close to au_prc.
+     * 
+ * + * float mean_average_precision = 2; + */ + public Builder setMeanAveragePrecision(float value) { + + meanAveragePrecision_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The mean average precision, most often close to au_prc.
+     * 
+ * + * float mean_average_precision = 2; + */ + public Builder clearMeanAveragePrecision() { + + meanAveragePrecision_ = 0F; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry> + confidenceMetricsEntries_ = java.util.Collections.emptyList(); + + private void ensureConfidenceMetricsEntriesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + confidenceMetricsEntries_ = + new java.util.ArrayList< + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry>( + confidenceMetricsEntries_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder> + confidenceMetricsEntriesBuilder_; + + /** + * + * + *
+     * Output only. Metrics for each label-match confidence_threshold from
+     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+     * derived from them.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public java.util.List< + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry> + getConfidenceMetricsEntriesList() { + if (confidenceMetricsEntriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(confidenceMetricsEntries_); + } else { + return confidenceMetricsEntriesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. Metrics for each label-match confidence_threshold from
+     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+     * derived from them.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public int getConfidenceMetricsEntriesCount() { + if (confidenceMetricsEntriesBuilder_ == null) { + return confidenceMetricsEntries_.size(); + } else { + return confidenceMetricsEntriesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. Metrics for each label-match confidence_threshold from
+     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+     * derived from them.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + getConfidenceMetricsEntries(int index) { + if (confidenceMetricsEntriesBuilder_ == null) { + return confidenceMetricsEntries_.get(index); + } else { + return confidenceMetricsEntriesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. Metrics for each label-match confidence_threshold from
+     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+     * derived from them.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public Builder setConfidenceMetricsEntries( + int index, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { + if (confidenceMetricsEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfidenceMetricsEntriesIsMutable(); + confidenceMetricsEntries_.set(index, value); + onChanged(); + } else { + confidenceMetricsEntriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Metrics for each label-match confidence_threshold from
+     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+     * derived from them.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public Builder setConfidenceMetricsEntries( + int index, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder + builderForValue) { + if (confidenceMetricsEntriesBuilder_ == null) { + ensureConfidenceMetricsEntriesIsMutable(); + confidenceMetricsEntries_.set(index, builderForValue.build()); + onChanged(); + } else { + confidenceMetricsEntriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Metrics for each label-match confidence_threshold from
+     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+     * derived from them.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public Builder addConfidenceMetricsEntries( + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { + if (confidenceMetricsEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfidenceMetricsEntriesIsMutable(); + confidenceMetricsEntries_.add(value); + onChanged(); + } else { + confidenceMetricsEntriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. Metrics for each label-match confidence_threshold from
+     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+     * derived from them.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public Builder addConfidenceMetricsEntries( + int index, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry value) { + if (confidenceMetricsEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfidenceMetricsEntriesIsMutable(); + confidenceMetricsEntries_.add(index, value); + onChanged(); + } else { + confidenceMetricsEntriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Metrics for each label-match confidence_threshold from
+     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+     * derived from them.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public Builder addConfidenceMetricsEntries( + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder + builderForValue) { + if (confidenceMetricsEntriesBuilder_ == null) { + ensureConfidenceMetricsEntriesIsMutable(); + confidenceMetricsEntries_.add(builderForValue.build()); + onChanged(); + } else { + confidenceMetricsEntriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Metrics for each label-match confidence_threshold from
+     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+     * derived from them.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public Builder addConfidenceMetricsEntries( + int index, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder + builderForValue) { + if (confidenceMetricsEntriesBuilder_ == null) { + ensureConfidenceMetricsEntriesIsMutable(); + confidenceMetricsEntries_.add(index, builderForValue.build()); + onChanged(); + } else { + confidenceMetricsEntriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Metrics for each label-match confidence_threshold from
+     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+     * derived from them.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public Builder addAllConfidenceMetricsEntries( + java.lang.Iterable< + ? extends + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry> + values) { + if (confidenceMetricsEntriesBuilder_ == null) { + ensureConfidenceMetricsEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, confidenceMetricsEntries_); + onChanged(); + } else { + confidenceMetricsEntriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. Metrics for each label-match confidence_threshold from
+     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+     * derived from them.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public Builder clearConfidenceMetricsEntries() { + if (confidenceMetricsEntriesBuilder_ == null) { + confidenceMetricsEntries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + confidenceMetricsEntriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Metrics for each label-match confidence_threshold from
+     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+     * derived from them.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public Builder removeConfidenceMetricsEntries(int index) { + if (confidenceMetricsEntriesBuilder_ == null) { + ensureConfidenceMetricsEntriesIsMutable(); + confidenceMetricsEntries_.remove(index); + onChanged(); + } else { + confidenceMetricsEntriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. Metrics for each label-match confidence_threshold from
+     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+     * derived from them.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder + getConfidenceMetricsEntriesBuilder(int index) { + return getConfidenceMetricsEntriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. Metrics for each label-match confidence_threshold from
+     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+     * derived from them.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntriesOrBuilder(int index) { + if (confidenceMetricsEntriesBuilder_ == null) { + return confidenceMetricsEntries_.get(index); + } else { + return confidenceMetricsEntriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. Metrics for each label-match confidence_threshold from
+     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+     * derived from them.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public java.util.List< + ? extends + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry + .ConfidenceMetricsEntryOrBuilder> + getConfidenceMetricsEntriesOrBuilderList() { + if (confidenceMetricsEntriesBuilder_ != null) { + return confidenceMetricsEntriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(confidenceMetricsEntries_); + } + } + /** + * + * + *
+     * Output only. Metrics for each label-match confidence_threshold from
+     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+     * derived from them.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder + addConfidenceMetricsEntriesBuilder() { + return getConfidenceMetricsEntriesFieldBuilder() + .addBuilder( + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Metrics for each label-match confidence_threshold from
+     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+     * derived from them.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder + addConfidenceMetricsEntriesBuilder(int index) { + return getConfidenceMetricsEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Metrics for each label-match confidence_threshold from
+     * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+     * derived from them.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + public java.util.List< + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder> + getConfidenceMetricsEntriesBuilderList() { + return getConfidenceMetricsEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry.Builder, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder> + getConfidenceMetricsEntriesFieldBuilder() { + if (confidenceMetricsEntriesBuilder_ == null) { + confidenceMetricsEntriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + .Builder, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry + .ConfidenceMetricsEntryOrBuilder>( + confidenceMetricsEntries_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + confidenceMetricsEntries_ = null; + } + return confidenceMetricsEntriesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.BoundingBoxMetricsEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.BoundingBoxMetricsEntry) + private static final com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry(); + } + + public static com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoundingBoxMetricsEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BoundingBoxMetricsEntry(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntryOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntryOrBuilder.java new file mode 100644 index 000000000000..4007a1f14b99 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingBoxMetricsEntryOrBuilder.java @@ -0,0 +1,111 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/detection.proto + +package com.google.cloud.automl.v1beta1; + +public interface BoundingBoxMetricsEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.BoundingBoxMetricsEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The intersection-over-union threshold value used to compute
+   * this metrics entry.
+   * 
+ * + * float iou_threshold = 1; + */ + float getIouThreshold(); + + /** + * + * + *
+   * Output only. The mean average precision, most often close to au_prc.
+   * 
+ * + * float mean_average_precision = 2; + */ + float getMeanAveragePrecision(); + + /** + * + * + *
+   * Output only. Metrics for each label-match confidence_threshold from
+   * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+   * derived from them.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + java.util.List + getConfidenceMetricsEntriesList(); + /** + * + * + *
+   * Output only. Metrics for each label-match confidence_threshold from
+   * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+   * derived from them.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry + getConfidenceMetricsEntries(int index); + /** + * + * + *
+   * Output only. Metrics for each label-match confidence_threshold from
+   * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+   * derived from them.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + int getConfidenceMetricsEntriesCount(); + /** + * + * + *
+   * Output only. Metrics for each label-match confidence_threshold from
+   * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+   * derived from them.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + java.util.List< + ? extends + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry + .ConfidenceMetricsEntryOrBuilder> + getConfidenceMetricsEntriesOrBuilderList(); + /** + * + * + *
+   * Output only. Metrics for each label-match confidence_threshold from
+   * 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
+   * derived from them.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + */ + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntriesOrBuilder(int index); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPoly.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPoly.java new file mode 100644 index 000000000000..6b00329c8f55 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPoly.java @@ -0,0 +1,942 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/geometry.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * A bounding polygon of a detected object on a plane.
+ * On output both vertices and normalized_vertices are provided.
+ * The polygon is formed by connecting vertices in the order they are listed.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.BoundingPoly} + */ +public final class BoundingPoly extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.BoundingPoly) + BoundingPolyOrBuilder { + private static final long serialVersionUID = 0L; + // Use BoundingPoly.newBuilder() to construct. + private BoundingPoly(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BoundingPoly() { + normalizedVertices_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BoundingPoly( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + normalizedVertices_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + normalizedVertices_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.NormalizedVertex.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + normalizedVertices_ = java.util.Collections.unmodifiableList(normalizedVertices_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Geometry + .internal_static_google_cloud_automl_v1beta1_BoundingPoly_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Geometry + .internal_static_google_cloud_automl_v1beta1_BoundingPoly_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.BoundingPoly.class, + com.google.cloud.automl.v1beta1.BoundingPoly.Builder.class); + } + + public static final int NORMALIZED_VERTICES_FIELD_NUMBER = 2; + private java.util.List normalizedVertices_; + /** + * + * + *
+   * Output only . The bounding polygon normalized vertices.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public java.util.List + getNormalizedVerticesList() { + return normalizedVertices_; + } + /** + * + * + *
+   * Output only . The bounding polygon normalized vertices.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public java.util.List + getNormalizedVerticesOrBuilderList() { + return normalizedVertices_; + } + /** + * + * + *
+   * Output only . The bounding polygon normalized vertices.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public int getNormalizedVerticesCount() { + return normalizedVertices_.size(); + } + /** + * + * + *
+   * Output only . The bounding polygon normalized vertices.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public com.google.cloud.automl.v1beta1.NormalizedVertex getNormalizedVertices(int index) { + return normalizedVertices_.get(index); + } + /** + * + * + *
+   * Output only . The bounding polygon normalized vertices.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public com.google.cloud.automl.v1beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( + int index) { + return normalizedVertices_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < normalizedVertices_.size(); i++) { + output.writeMessage(2, normalizedVertices_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < normalizedVertices_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, normalizedVertices_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.BoundingPoly)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.BoundingPoly other = + (com.google.cloud.automl.v1beta1.BoundingPoly) obj; + + if (!getNormalizedVerticesList().equals(other.getNormalizedVerticesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNormalizedVerticesCount() > 0) { + hash = (37 * hash) + NORMALIZED_VERTICES_FIELD_NUMBER; + hash = (53 * hash) + getNormalizedVerticesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.BoundingPoly parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BoundingPoly parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BoundingPoly parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BoundingPoly parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BoundingPoly parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.BoundingPoly parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BoundingPoly parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BoundingPoly parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BoundingPoly parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BoundingPoly parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.BoundingPoly parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.BoundingPoly parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.BoundingPoly prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A bounding polygon of a detected object on a plane.
+   * On output both vertices and normalized_vertices are provided.
+   * The polygon is formed by connecting vertices in the order they are listed.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.BoundingPoly} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.BoundingPoly) + com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Geometry + .internal_static_google_cloud_automl_v1beta1_BoundingPoly_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Geometry + .internal_static_google_cloud_automl_v1beta1_BoundingPoly_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.BoundingPoly.class, + com.google.cloud.automl.v1beta1.BoundingPoly.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.BoundingPoly.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getNormalizedVerticesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (normalizedVerticesBuilder_ == null) { + normalizedVertices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + normalizedVerticesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Geometry + .internal_static_google_cloud_automl_v1beta1_BoundingPoly_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BoundingPoly getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BoundingPoly build() { + com.google.cloud.automl.v1beta1.BoundingPoly result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BoundingPoly buildPartial() { + com.google.cloud.automl.v1beta1.BoundingPoly result = + new com.google.cloud.automl.v1beta1.BoundingPoly(this); + int from_bitField0_ = bitField0_; + if (normalizedVerticesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + normalizedVertices_ = java.util.Collections.unmodifiableList(normalizedVertices_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.normalizedVertices_ = normalizedVertices_; + } else { + result.normalizedVertices_ = normalizedVerticesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.BoundingPoly) { + return mergeFrom((com.google.cloud.automl.v1beta1.BoundingPoly) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.BoundingPoly other) { + if (other == com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance()) return this; + if (normalizedVerticesBuilder_ == null) { + if (!other.normalizedVertices_.isEmpty()) { + if (normalizedVertices_.isEmpty()) { + normalizedVertices_ = other.normalizedVertices_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNormalizedVerticesIsMutable(); + normalizedVertices_.addAll(other.normalizedVertices_); + } + onChanged(); + } + } else { + if (!other.normalizedVertices_.isEmpty()) { + if (normalizedVerticesBuilder_.isEmpty()) { + normalizedVerticesBuilder_.dispose(); + normalizedVerticesBuilder_ = null; + normalizedVertices_ = other.normalizedVertices_; + bitField0_ = (bitField0_ & ~0x00000001); + normalizedVerticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNormalizedVerticesFieldBuilder() + : null; + } else { + normalizedVerticesBuilder_.addAllMessages(other.normalizedVertices_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.BoundingPoly parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.BoundingPoly) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List normalizedVertices_ = + java.util.Collections.emptyList(); + + private void ensureNormalizedVerticesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + normalizedVertices_ = + new java.util.ArrayList( + normalizedVertices_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.NormalizedVertex, + com.google.cloud.automl.v1beta1.NormalizedVertex.Builder, + com.google.cloud.automl.v1beta1.NormalizedVertexOrBuilder> + normalizedVerticesBuilder_; + + /** + * + * + *
+     * Output only . The bounding polygon normalized vertices.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public java.util.List + getNormalizedVerticesList() { + if (normalizedVerticesBuilder_ == null) { + return java.util.Collections.unmodifiableList(normalizedVertices_); + } else { + return normalizedVerticesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only . The bounding polygon normalized vertices.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public int getNormalizedVerticesCount() { + if (normalizedVerticesBuilder_ == null) { + return normalizedVertices_.size(); + } else { + return normalizedVerticesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only . The bounding polygon normalized vertices.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public com.google.cloud.automl.v1beta1.NormalizedVertex getNormalizedVertices(int index) { + if (normalizedVerticesBuilder_ == null) { + return normalizedVertices_.get(index); + } else { + return normalizedVerticesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only . The bounding polygon normalized vertices.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public Builder setNormalizedVertices( + int index, com.google.cloud.automl.v1beta1.NormalizedVertex value) { + if (normalizedVerticesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNormalizedVerticesIsMutable(); + normalizedVertices_.set(index, value); + onChanged(); + } else { + normalizedVerticesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only . The bounding polygon normalized vertices.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public Builder setNormalizedVertices( + int index, com.google.cloud.automl.v1beta1.NormalizedVertex.Builder builderForValue) { + if (normalizedVerticesBuilder_ == null) { + ensureNormalizedVerticesIsMutable(); + normalizedVertices_.set(index, builderForValue.build()); + onChanged(); + } else { + normalizedVerticesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only . The bounding polygon normalized vertices.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public Builder addNormalizedVertices(com.google.cloud.automl.v1beta1.NormalizedVertex value) { + if (normalizedVerticesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNormalizedVerticesIsMutable(); + normalizedVertices_.add(value); + onChanged(); + } else { + normalizedVerticesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only . The bounding polygon normalized vertices.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public Builder addNormalizedVertices( + int index, com.google.cloud.automl.v1beta1.NormalizedVertex value) { + if (normalizedVerticesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNormalizedVerticesIsMutable(); + normalizedVertices_.add(index, value); + onChanged(); + } else { + normalizedVerticesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only . The bounding polygon normalized vertices.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public Builder addNormalizedVertices( + com.google.cloud.automl.v1beta1.NormalizedVertex.Builder builderForValue) { + if (normalizedVerticesBuilder_ == null) { + ensureNormalizedVerticesIsMutable(); + normalizedVertices_.add(builderForValue.build()); + onChanged(); + } else { + normalizedVerticesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only . The bounding polygon normalized vertices.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public Builder addNormalizedVertices( + int index, com.google.cloud.automl.v1beta1.NormalizedVertex.Builder builderForValue) { + if (normalizedVerticesBuilder_ == null) { + ensureNormalizedVerticesIsMutable(); + normalizedVertices_.add(index, builderForValue.build()); + onChanged(); + } else { + normalizedVerticesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only . The bounding polygon normalized vertices.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public Builder addAllNormalizedVertices( + java.lang.Iterable values) { + if (normalizedVerticesBuilder_ == null) { + ensureNormalizedVerticesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, normalizedVertices_); + onChanged(); + } else { + normalizedVerticesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only . The bounding polygon normalized vertices.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public Builder clearNormalizedVertices() { + if (normalizedVerticesBuilder_ == null) { + normalizedVertices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + normalizedVerticesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only . The bounding polygon normalized vertices.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public Builder removeNormalizedVertices(int index) { + if (normalizedVerticesBuilder_ == null) { + ensureNormalizedVerticesIsMutable(); + normalizedVertices_.remove(index); + onChanged(); + } else { + normalizedVerticesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only . The bounding polygon normalized vertices.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public com.google.cloud.automl.v1beta1.NormalizedVertex.Builder getNormalizedVerticesBuilder( + int index) { + return getNormalizedVerticesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only . The bounding polygon normalized vertices.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public com.google.cloud.automl.v1beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( + int index) { + if (normalizedVerticesBuilder_ == null) { + return normalizedVertices_.get(index); + } else { + return normalizedVerticesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only . The bounding polygon normalized vertices.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public java.util.List + getNormalizedVerticesOrBuilderList() { + if (normalizedVerticesBuilder_ != null) { + return normalizedVerticesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(normalizedVertices_); + } + } + /** + * + * + *
+     * Output only . The bounding polygon normalized vertices.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public com.google.cloud.automl.v1beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder() { + return getNormalizedVerticesFieldBuilder() + .addBuilder(com.google.cloud.automl.v1beta1.NormalizedVertex.getDefaultInstance()); + } + /** + * + * + *
+     * Output only . The bounding polygon normalized vertices.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public com.google.cloud.automl.v1beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder( + int index) { + return getNormalizedVerticesFieldBuilder() + .addBuilder(index, com.google.cloud.automl.v1beta1.NormalizedVertex.getDefaultInstance()); + } + /** + * + * + *
+     * Output only . The bounding polygon normalized vertices.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + public java.util.List + getNormalizedVerticesBuilderList() { + return getNormalizedVerticesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.NormalizedVertex, + com.google.cloud.automl.v1beta1.NormalizedVertex.Builder, + com.google.cloud.automl.v1beta1.NormalizedVertexOrBuilder> + getNormalizedVerticesFieldBuilder() { + if (normalizedVerticesBuilder_ == null) { + normalizedVerticesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.NormalizedVertex, + com.google.cloud.automl.v1beta1.NormalizedVertex.Builder, + com.google.cloud.automl.v1beta1.NormalizedVertexOrBuilder>( + normalizedVertices_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + normalizedVertices_ = null; + } + return normalizedVerticesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.BoundingPoly) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.BoundingPoly) + private static final com.google.cloud.automl.v1beta1.BoundingPoly DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.BoundingPoly(); + } + + public static com.google.cloud.automl.v1beta1.BoundingPoly getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoundingPoly parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BoundingPoly(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.BoundingPoly getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPolyOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPolyOrBuilder.java new file mode 100644 index 000000000000..bf1037ea14fd --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/BoundingPolyOrBuilder.java @@ -0,0 +1,63 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/geometry.proto + +package com.google.cloud.automl.v1beta1; + +public interface BoundingPolyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.BoundingPoly) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only . The bounding polygon normalized vertices.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + java.util.List getNormalizedVerticesList(); + /** + * + * + *
+   * Output only . The bounding polygon normalized vertices.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + com.google.cloud.automl.v1beta1.NormalizedVertex getNormalizedVertices(int index); + /** + * + * + *
+   * Output only . The bounding polygon normalized vertices.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + int getNormalizedVerticesCount(); + /** + * + * + *
+   * Output only . The bounding polygon normalized vertices.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + java.util.List + getNormalizedVerticesOrBuilderList(); + /** + * + * + *
+   * Output only . The bounding polygon normalized vertices.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.NormalizedVertex normalized_vertices = 2; + */ + com.google.cloud.automl.v1beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStats.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStats.java new file mode 100644 index 000000000000..adab96f9e547 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStats.java @@ -0,0 +1,1751 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_stats.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * The data statistics of a series of CATEGORY values.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.CategoryStats} + */ +public final class CategoryStats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.CategoryStats) + CategoryStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use CategoryStats.newBuilder() to construct. + private CategoryStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CategoryStats() { + topCategoryStats_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CategoryStats( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + topCategoryStats_ = + new java.util.ArrayList< + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats>(); + mutable_bitField0_ |= 0x00000001; + } + topCategoryStats_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + topCategoryStats_ = java.util.Collections.unmodifiableList(topCategoryStats_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_CategoryStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_CategoryStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.CategoryStats.class, + com.google.cloud.automl.v1beta1.CategoryStats.Builder.class); + } + + public interface SingleCategoryStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The CATEGORY value.
+     * 
+ * + * string value = 1; + */ + java.lang.String getValue(); + /** + * + * + *
+     * The CATEGORY value.
+     * 
+ * + * string value = 1; + */ + com.google.protobuf.ByteString getValueBytes(); + + /** + * + * + *
+     * The number of occurrences of this value in the series.
+     * 
+ * + * int64 count = 2; + */ + long getCount(); + } + /** + * + * + *
+   * The statistics of a single CATEGORY value.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats} + */ + public static final class SingleCategoryStats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats) + SingleCategoryStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use SingleCategoryStats.newBuilder() to construct. + private SingleCategoryStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SingleCategoryStats() { + value_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SingleCategoryStats( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + case 16: + { + count_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_CategoryStats_SingleCategoryStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_CategoryStats_SingleCategoryStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.class, + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private volatile java.lang.Object value_; + /** + * + * + *
+     * The CATEGORY value.
+     * 
+ * + * string value = 1; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * + * + *
+     * The CATEGORY value.
+     * 
+ * + * string value = 1; + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COUNT_FIELD_NUMBER = 2; + private long count_; + /** + * + * + *
+     * The number of occurrences of this value in the series.
+     * 
+ * + * int64 count = 2; + */ + public long getCount() { + return count_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); + } + if (count_ != 0L) { + output.writeInt64(2, count_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); + } + if (count_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, count_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats other = + (com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats) obj; + + if (!getValue().equals(other.getValue())) return false; + if (getCount() != other.getCount()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * The statistics of a single CATEGORY value.
+     * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats) + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_CategoryStats_SingleCategoryStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_CategoryStats_SingleCategoryStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.class, + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.Builder.class); + } + + // Construct using + // com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + value_ = ""; + + count_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_CategoryStats_SingleCategoryStats_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats build() { + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats buildPartial() { + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats result = + new com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats(this); + result.value_ = value_; + result.count_ = count_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats) { + return mergeFrom( + (com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats other) { + if (other + == com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats + .getDefaultInstance()) return this; + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + if (other.getCount() != 0L) { + setCount(other.getCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object value_ = ""; + /** + * + * + *
+       * The CATEGORY value.
+       * 
+ * + * string value = 1; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The CATEGORY value.
+       * 
+ * + * string value = 1; + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The CATEGORY value.
+       * 
+ * + * string value = 1; + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The CATEGORY value.
+       * 
+ * + * string value = 1; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * + * + *
+       * The CATEGORY value.
+       * 
+ * + * string value = 1; + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + + private long count_; + /** + * + * + *
+       * The number of occurrences of this value in the series.
+       * 
+ * + * int64 count = 2; + */ + public long getCount() { + return count_; + } + /** + * + * + *
+       * The number of occurrences of this value in the series.
+       * 
+ * + * int64 count = 2; + */ + public Builder setCount(long value) { + + count_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The number of occurrences of this value in the series.
+       * 
+ * + * int64 count = 2; + */ + public Builder clearCount() { + + count_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats) + private static final com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats(); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SingleCategoryStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SingleCategoryStats(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int TOP_CATEGORY_STATS_FIELD_NUMBER = 1; + private java.util.List + topCategoryStats_; + /** + * + * + *
+   * The statistics of the top 20 CATEGORY values, ordered by
+   * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public java.util.List + getTopCategoryStatsList() { + return topCategoryStats_; + } + /** + * + * + *
+   * The statistics of the top 20 CATEGORY values, ordered by
+   * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder> + getTopCategoryStatsOrBuilderList() { + return topCategoryStats_; + } + /** + * + * + *
+   * The statistics of the top 20 CATEGORY values, ordered by
+   * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public int getTopCategoryStatsCount() { + return topCategoryStats_.size(); + } + /** + * + * + *
+   * The statistics of the top 20 CATEGORY values, ordered by
+   * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats getTopCategoryStats( + int index) { + return topCategoryStats_.get(index); + } + /** + * + * + *
+   * The statistics of the top 20 CATEGORY values, ordered by
+   * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder + getTopCategoryStatsOrBuilder(int index) { + return topCategoryStats_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < topCategoryStats_.size(); i++) { + output.writeMessage(1, topCategoryStats_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < topCategoryStats_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, topCategoryStats_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.CategoryStats)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.CategoryStats other = + (com.google.cloud.automl.v1beta1.CategoryStats) obj; + + if (!getTopCategoryStatsList().equals(other.getTopCategoryStatsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTopCategoryStatsCount() > 0) { + hash = (37 * hash) + TOP_CATEGORY_STATS_FIELD_NUMBER; + hash = (53 * hash) + getTopCategoryStatsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.CategoryStats parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.CategoryStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The data statistics of a series of CATEGORY values.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.CategoryStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.CategoryStats) + com.google.cloud.automl.v1beta1.CategoryStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_CategoryStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_CategoryStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.CategoryStats.class, + com.google.cloud.automl.v1beta1.CategoryStats.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.CategoryStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTopCategoryStatsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (topCategoryStatsBuilder_ == null) { + topCategoryStats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + topCategoryStatsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_CategoryStats_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.CategoryStats getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.CategoryStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.CategoryStats build() { + com.google.cloud.automl.v1beta1.CategoryStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.CategoryStats buildPartial() { + com.google.cloud.automl.v1beta1.CategoryStats result = + new com.google.cloud.automl.v1beta1.CategoryStats(this); + int from_bitField0_ = bitField0_; + if (topCategoryStatsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + topCategoryStats_ = java.util.Collections.unmodifiableList(topCategoryStats_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.topCategoryStats_ = topCategoryStats_; + } else { + result.topCategoryStats_ = topCategoryStatsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.CategoryStats) { + return mergeFrom((com.google.cloud.automl.v1beta1.CategoryStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.CategoryStats other) { + if (other == com.google.cloud.automl.v1beta1.CategoryStats.getDefaultInstance()) return this; + if (topCategoryStatsBuilder_ == null) { + if (!other.topCategoryStats_.isEmpty()) { + if (topCategoryStats_.isEmpty()) { + topCategoryStats_ = other.topCategoryStats_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTopCategoryStatsIsMutable(); + topCategoryStats_.addAll(other.topCategoryStats_); + } + onChanged(); + } + } else { + if (!other.topCategoryStats_.isEmpty()) { + if (topCategoryStatsBuilder_.isEmpty()) { + topCategoryStatsBuilder_.dispose(); + topCategoryStatsBuilder_ = null; + topCategoryStats_ = other.topCategoryStats_; + bitField0_ = (bitField0_ & ~0x00000001); + topCategoryStatsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTopCategoryStatsFieldBuilder() + : null; + } else { + topCategoryStatsBuilder_.addAllMessages(other.topCategoryStats_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.CategoryStats parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.CategoryStats) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + topCategoryStats_ = java.util.Collections.emptyList(); + + private void ensureTopCategoryStatsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + topCategoryStats_ = + new java.util.ArrayList< + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats>( + topCategoryStats_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats, + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.Builder, + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder> + topCategoryStatsBuilder_; + + /** + * + * + *
+     * The statistics of the top 20 CATEGORY values, ordered by
+     * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public java.util.List + getTopCategoryStatsList() { + if (topCategoryStatsBuilder_ == null) { + return java.util.Collections.unmodifiableList(topCategoryStats_); + } else { + return topCategoryStatsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The statistics of the top 20 CATEGORY values, ordered by
+     * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public int getTopCategoryStatsCount() { + if (topCategoryStatsBuilder_ == null) { + return topCategoryStats_.size(); + } else { + return topCategoryStatsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The statistics of the top 20 CATEGORY values, ordered by
+     * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats getTopCategoryStats( + int index) { + if (topCategoryStatsBuilder_ == null) { + return topCategoryStats_.get(index); + } else { + return topCategoryStatsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The statistics of the top 20 CATEGORY values, ordered by
+     * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public Builder setTopCategoryStats( + int index, com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats value) { + if (topCategoryStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopCategoryStatsIsMutable(); + topCategoryStats_.set(index, value); + onChanged(); + } else { + topCategoryStatsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The statistics of the top 20 CATEGORY values, ordered by
+     * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public Builder setTopCategoryStats( + int index, + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.Builder builderForValue) { + if (topCategoryStatsBuilder_ == null) { + ensureTopCategoryStatsIsMutable(); + topCategoryStats_.set(index, builderForValue.build()); + onChanged(); + } else { + topCategoryStatsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The statistics of the top 20 CATEGORY values, ordered by
+     * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public Builder addTopCategoryStats( + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats value) { + if (topCategoryStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopCategoryStatsIsMutable(); + topCategoryStats_.add(value); + onChanged(); + } else { + topCategoryStatsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The statistics of the top 20 CATEGORY values, ordered by
+     * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public Builder addTopCategoryStats( + int index, com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats value) { + if (topCategoryStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopCategoryStatsIsMutable(); + topCategoryStats_.add(index, value); + onChanged(); + } else { + topCategoryStatsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The statistics of the top 20 CATEGORY values, ordered by
+     * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public Builder addTopCategoryStats( + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.Builder builderForValue) { + if (topCategoryStatsBuilder_ == null) { + ensureTopCategoryStatsIsMutable(); + topCategoryStats_.add(builderForValue.build()); + onChanged(); + } else { + topCategoryStatsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The statistics of the top 20 CATEGORY values, ordered by
+     * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public Builder addTopCategoryStats( + int index, + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.Builder builderForValue) { + if (topCategoryStatsBuilder_ == null) { + ensureTopCategoryStatsIsMutable(); + topCategoryStats_.add(index, builderForValue.build()); + onChanged(); + } else { + topCategoryStatsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The statistics of the top 20 CATEGORY values, ordered by
+     * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public Builder addAllTopCategoryStats( + java.lang.Iterable< + ? extends com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats> + values) { + if (topCategoryStatsBuilder_ == null) { + ensureTopCategoryStatsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topCategoryStats_); + onChanged(); + } else { + topCategoryStatsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The statistics of the top 20 CATEGORY values, ordered by
+     * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public Builder clearTopCategoryStats() { + if (topCategoryStatsBuilder_ == null) { + topCategoryStats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + topCategoryStatsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The statistics of the top 20 CATEGORY values, ordered by
+     * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public Builder removeTopCategoryStats(int index) { + if (topCategoryStatsBuilder_ == null) { + ensureTopCategoryStatsIsMutable(); + topCategoryStats_.remove(index); + onChanged(); + } else { + topCategoryStatsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The statistics of the top 20 CATEGORY values, ordered by
+     * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.Builder + getTopCategoryStatsBuilder(int index) { + return getTopCategoryStatsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The statistics of the top 20 CATEGORY values, ordered by
+     * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder + getTopCategoryStatsOrBuilder(int index) { + if (topCategoryStatsBuilder_ == null) { + return topCategoryStats_.get(index); + } else { + return topCategoryStatsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The statistics of the top 20 CATEGORY values, ordered by
+     * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder> + getTopCategoryStatsOrBuilderList() { + if (topCategoryStatsBuilder_ != null) { + return topCategoryStatsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(topCategoryStats_); + } + } + /** + * + * + *
+     * The statistics of the top 20 CATEGORY values, ordered by
+     * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.Builder + addTopCategoryStatsBuilder() { + return getTopCategoryStatsFieldBuilder() + .addBuilder( + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats + .getDefaultInstance()); + } + /** + * + * + *
+     * The statistics of the top 20 CATEGORY values, ordered by
+     * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.Builder + addTopCategoryStatsBuilder(int index) { + return getTopCategoryStatsFieldBuilder() + .addBuilder( + index, + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats + .getDefaultInstance()); + } + /** + * + * + *
+     * The statistics of the top 20 CATEGORY values, ordered by
+     * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + public java.util.List + getTopCategoryStatsBuilderList() { + return getTopCategoryStatsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats, + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.Builder, + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder> + getTopCategoryStatsFieldBuilder() { + if (topCategoryStatsBuilder_ == null) { + topCategoryStatsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats, + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.Builder, + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder>( + topCategoryStats_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + topCategoryStats_ = null; + } + return topCategoryStatsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.CategoryStats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.CategoryStats) + private static final com.google.cloud.automl.v1beta1.CategoryStats DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.CategoryStats(); + } + + public static com.google.cloud.automl.v1beta1.CategoryStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CategoryStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CategoryStats(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.CategoryStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStatsOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStatsOrBuilder.java new file mode 100644 index 000000000000..ef02267c361d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CategoryStatsOrBuilder.java @@ -0,0 +1,80 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_stats.proto + +package com.google.cloud.automl.v1beta1; + +public interface CategoryStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.CategoryStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The statistics of the top 20 CATEGORY values, ordered by
+   * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + java.util.List + getTopCategoryStatsList(); + /** + * + * + *
+   * The statistics of the top 20 CATEGORY values, ordered by
+   * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats getTopCategoryStats(int index); + /** + * + * + *
+   * The statistics of the top 20 CATEGORY values, ordered by
+   * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + int getTopCategoryStatsCount(); + /** + * + * + *
+   * The statistics of the top 20 CATEGORY values, ordered by
+   * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + java.util.List< + ? extends com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder> + getTopCategoryStatsOrBuilderList(); + /** + * + * + *
+   * The statistics of the top 20 CATEGORY values, ordered by
+   * [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count].
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats top_category_stats = 1; + * + */ + com.google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStatsOrBuilder + getTopCategoryStatsOrBuilder(int index); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ClassificationProto.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ClassificationProto.java index 173b18b3cc84..8c4b274fb3ce 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ClassificationProto.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ClassificationProto.java @@ -742,226 +742,163 @@ public com.google.protobuf.Parser getParserForType() { } } - public interface ClassificationEvaluationMetricsOrBuilder + public interface VideoClassificationAnnotationOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics) + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.VideoClassificationAnnotation) com.google.protobuf.MessageOrBuilder { /** * * *
-     * Output only. The Area under precision recall curve metric.
-     * 
- * - * float au_prc = 1; - */ - float getAuPrc(); - - /** - * - * - *
-     * Output only. The Area under precision recall curve metric based on priors.
-     * 
- * - * float base_au_prc = 2; - */ - float getBaseAuPrc(); - - /** - * - * - *
-     * Output only. Metrics that have confidence thresholds.
-     * Precision-recall curve can be derived from it.
-     * 
- * - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * - */ - java.util.List< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry> - getConfidenceMetricsEntryList(); - /** - * - * - *
-     * Output only. Metrics that have confidence thresholds.
-     * Precision-recall curve can be derived from it.
-     * 
- * - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * - */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry - getConfidenceMetricsEntry(int index); - /** - * - * - *
-     * Output only. Metrics that have confidence thresholds.
-     * Precision-recall curve can be derived from it.
+     * Output only. Expresses the type of video classification. Possible values:
+     * *  `segment` - Classification done on a specified by user
+     *        time segment of a video. AnnotationSpec is answered to be present
+     *        in that time segment, if it is present in any part of it. The video
+     *        ML model evaluations are done only for this type of classification.
+     * *  `shot`- Shot-level classification.
+     *        AutoML Video Intelligence determines the boundaries
+     *        for each camera shot in the entire segment of the video that user
+     *        specified in the request configuration. AutoML Video Intelligence
+     *        then returns labels and their confidence scores for each detected
+     *        shot, along with the start and end time of the shot.
+     *        WARNING: Model evaluation is not done for this classification type,
+     *        the quality of it depends on training data, but there are no
+     *        metrics provided to describe that quality.
+     * *  `1s_interval` - AutoML Video Intelligence returns labels and their
+     *        confidence scores for each second of the entire segment of the video
+     *        that user specified in the request configuration.
+     *        WARNING: Model evaluation is not done for this classification type,
+     *        the quality of it depends on training data, but there are no
+     *        metrics provided to describe that quality.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * - */ - int getConfidenceMetricsEntryCount(); - /** - * - * - *
-     * Output only. Metrics that have confidence thresholds.
-     * Precision-recall curve can be derived from it.
-     * 
- * - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * string type = 1; */ - java.util.List< - ? extends - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder> - getConfidenceMetricsEntryOrBuilderList(); + java.lang.String getType(); /** * * *
-     * Output only. Metrics that have confidence thresholds.
-     * Precision-recall curve can be derived from it.
+     * Output only. Expresses the type of video classification. Possible values:
+     * *  `segment` - Classification done on a specified by user
+     *        time segment of a video. AnnotationSpec is answered to be present
+     *        in that time segment, if it is present in any part of it. The video
+     *        ML model evaluations are done only for this type of classification.
+     * *  `shot`- Shot-level classification.
+     *        AutoML Video Intelligence determines the boundaries
+     *        for each camera shot in the entire segment of the video that user
+     *        specified in the request configuration. AutoML Video Intelligence
+     *        then returns labels and their confidence scores for each detected
+     *        shot, along with the start and end time of the shot.
+     *        WARNING: Model evaluation is not done for this classification type,
+     *        the quality of it depends on training data, but there are no
+     *        metrics provided to describe that quality.
+     * *  `1s_interval` - AutoML Video Intelligence returns labels and their
+     *        confidence scores for each second of the entire segment of the video
+     *        that user specified in the request configuration.
+     *        WARNING: Model evaluation is not done for this classification type,
+     *        the quality of it depends on training data, but there are no
+     *        metrics provided to describe that quality.
      * 
* - * - * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; - * + * string type = 1; */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntryOrBuilder - getConfidenceMetricsEntryOrBuilder(int index); + com.google.protobuf.ByteString getTypeBytes(); /** * * *
-     * Output only. Confusion matrix of the evaluation.
-     * Only set for MULTICLASS classification problems where number
-     * of labels is no more than 10.
-     * Only set for model level evaluation, not for evaluation per label.
+     * Output only . The classification details of this annotation.
      * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; * */ - boolean hasConfusionMatrix(); + boolean hasClassificationAnnotation(); /** * * *
-     * Output only. Confusion matrix of the evaluation.
-     * Only set for MULTICLASS classification problems where number
-     * of labels is no more than 10.
-     * Only set for model level evaluation, not for evaluation per label.
+     * Output only . The classification details of this annotation.
      * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; * */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix - getConfusionMatrix(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + getClassificationAnnotation(); /** * * *
-     * Output only. Confusion matrix of the evaluation.
-     * Only set for MULTICLASS classification problems where number
-     * of labels is no more than 10.
-     * Only set for model level evaluation, not for evaluation per label.
+     * Output only . The classification details of this annotation.
      * 
* - * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; * */ - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrixOrBuilder - getConfusionMatrixOrBuilder(); + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder + getClassificationAnnotationOrBuilder(); /** * * *
-     * Output only. The annotation spec ids used for this evaluation.
-     * 
- * - * repeated string annotation_spec_id = 5; - */ - java.util.List getAnnotationSpecIdList(); - /** - * - * - *
-     * Output only. The annotation spec ids used for this evaluation.
+     * Output only . The time segment of the video to which the
+     * annotation applies.
      * 
* - * repeated string annotation_spec_id = 5; + * .google.cloud.automl.v1beta1.TimeSegment time_segment = 3; */ - int getAnnotationSpecIdCount(); + boolean hasTimeSegment(); /** * * *
-     * Output only. The annotation spec ids used for this evaluation.
+     * Output only . The time segment of the video to which the
+     * annotation applies.
      * 
* - * repeated string annotation_spec_id = 5; + * .google.cloud.automl.v1beta1.TimeSegment time_segment = 3; */ - java.lang.String getAnnotationSpecId(int index); + com.google.cloud.automl.v1beta1.TimeSegment getTimeSegment(); /** * * *
-     * Output only. The annotation spec ids used for this evaluation.
+     * Output only . The time segment of the video to which the
+     * annotation applies.
      * 
* - * repeated string annotation_spec_id = 5; + * .google.cloud.automl.v1beta1.TimeSegment time_segment = 3; */ - com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index); + com.google.cloud.automl.v1beta1.TimeSegmentOrBuilder getTimeSegmentOrBuilder(); } /** * * *
-   * Model evaluation metrics for classification problems.
-   * Visible only to v1beta1
+   * Contains annotation details specific to video classification.
    * 
* - * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationEvaluationMetrics} + * Protobuf type {@code google.cloud.automl.v1beta1.VideoClassificationAnnotation} */ - public static final class ClassificationEvaluationMetrics + public static final class VideoClassificationAnnotation extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics) - ClassificationEvaluationMetricsOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.VideoClassificationAnnotation) + VideoClassificationAnnotationOrBuilder { private static final long serialVersionUID = 0L; - // Use ClassificationEvaluationMetrics.newBuilder() to construct. - private ClassificationEvaluationMetrics( + // Use VideoClassificationAnnotation.newBuilder() to construct. + private VideoClassificationAnnotation( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ClassificationEvaluationMetrics() { - confidenceMetricsEntry_ = java.util.Collections.emptyList(); - annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private VideoClassificationAnnotation() { + type_ = ""; } @java.lang.Override @@ -969,7 +906,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ClassificationEvaluationMetrics( + private VideoClassificationAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -988,60 +925,46 @@ private ClassificationEvaluationMetrics( case 0: done = true; break; - case 13: - { - auPrc_ = input.readFloat(); - break; - } - case 21: - { - baseAuPrc_ = input.readFloat(); - break; - } - case 26: + case 10: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - confidenceMetricsEntry_ = - new java.util.ArrayList< - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfidenceMetricsEntry>(); - mutable_bitField0_ |= 0x00000004; - } - confidenceMetricsEntry_.add( - input.readMessage( - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfidenceMetricsEntry.parser(), - extensionRegistry)); + java.lang.String s = input.readStringRequireUtf8(); + + type_ = s; break; } - case 34: + case 18: { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfusionMatrix.Builder + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder subBuilder = null; - if (confusionMatrix_ != null) { - subBuilder = confusionMatrix_.toBuilder(); + if (classificationAnnotation_ != null) { + subBuilder = classificationAnnotation_.toBuilder(); } - confusionMatrix_ = + classificationAnnotation_ = input.readMessage( - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfusionMatrix.parser(), + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + .parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(confusionMatrix_); - confusionMatrix_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(classificationAnnotation_); + classificationAnnotation_ = subBuilder.buildPartial(); } break; } - case 42: + case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000010; + com.google.cloud.automl.v1beta1.TimeSegment.Builder subBuilder = null; + if (timeSegment_ != null) { + subBuilder = timeSegment_.toBuilder(); } - annotationSpecId_.add(s); + timeSegment_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TimeSegment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeSegment_); + timeSegment_ = subBuilder.buildPartial(); + } + break; } default: @@ -1058,12 +981,6 @@ private ClassificationEvaluationMetrics( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - confidenceMetricsEntry_ = java.util.Collections.unmodifiableList(confidenceMetricsEntry_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - annotationSpecId_ = annotationSpecId_.getUnmodifiableView(); - } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -1071,59 +988,1708 @@ private ClassificationEvaluationMetrics( public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.automl.v1beta1.ClassificationProto - .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor; + .internal_static_google_cloud_automl_v1beta1_VideoClassificationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.automl.v1beta1.ClassificationProto - .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_fieldAccessorTable + .internal_static_google_cloud_automl_v1beta1_VideoClassificationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation .class, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation .Builder.class); } - public interface ConfidenceMetricsEntryOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-       * Output only. The confidence threshold value used to compute the metrics.
-       * 
- * - * float confidence_threshold = 1; - */ - float getConfidenceThreshold(); + public static final int TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object type_; + /** + * + * + *
+     * Output only. Expresses the type of video classification. Possible values:
+     * *  `segment` - Classification done on a specified by user
+     *        time segment of a video. AnnotationSpec is answered to be present
+     *        in that time segment, if it is present in any part of it. The video
+     *        ML model evaluations are done only for this type of classification.
+     * *  `shot`- Shot-level classification.
+     *        AutoML Video Intelligence determines the boundaries
+     *        for each camera shot in the entire segment of the video that user
+     *        specified in the request configuration. AutoML Video Intelligence
+     *        then returns labels and their confidence scores for each detected
+     *        shot, along with the start and end time of the shot.
+     *        WARNING: Model evaluation is not done for this classification type,
+     *        the quality of it depends on training data, but there are no
+     *        metrics provided to describe that quality.
+     * *  `1s_interval` - AutoML Video Intelligence returns labels and their
+     *        confidence scores for each second of the entire segment of the video
+     *        that user specified in the request configuration.
+     *        WARNING: Model evaluation is not done for this classification type,
+     *        the quality of it depends on training data, but there are no
+     *        metrics provided to describe that quality.
+     * 
+ * + * string type = 1; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. Expresses the type of video classification. Possible values:
+     * *  `segment` - Classification done on a specified by user
+     *        time segment of a video. AnnotationSpec is answered to be present
+     *        in that time segment, if it is present in any part of it. The video
+     *        ML model evaluations are done only for this type of classification.
+     * *  `shot`- Shot-level classification.
+     *        AutoML Video Intelligence determines the boundaries
+     *        for each camera shot in the entire segment of the video that user
+     *        specified in the request configuration. AutoML Video Intelligence
+     *        then returns labels and their confidence scores for each detected
+     *        shot, along with the start and end time of the shot.
+     *        WARNING: Model evaluation is not done for this classification type,
+     *        the quality of it depends on training data, but there are no
+     *        metrics provided to describe that quality.
+     * *  `1s_interval` - AutoML Video Intelligence returns labels and their
+     *        confidence scores for each second of the entire segment of the video
+     *        that user specified in the request configuration.
+     *        WARNING: Model evaluation is not done for this classification type,
+     *        the quality of it depends on training data, but there are no
+     *        metrics provided to describe that quality.
+     * 
+ * + * string type = 1; + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * - * - *
-       * Output only. Recall under the given confidence threshold.
-       * 
- * - * float recall = 2; - */ - float getRecall(); + public static final int CLASSIFICATION_ANNOTATION_FIELD_NUMBER = 2; + private com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + classificationAnnotation_; + /** + * + * + *
+     * Output only . The classification details of this annotation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * + */ + public boolean hasClassificationAnnotation() { + return classificationAnnotation_ != null; + } + /** + * + * + *
+     * Output only . The classification details of this annotation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * + */ + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + getClassificationAnnotation() { + return classificationAnnotation_ == null + ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + .getDefaultInstance() + : classificationAnnotation_; + } + /** + * + * + *
+     * Output only . The classification details of this annotation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * + */ + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder + getClassificationAnnotationOrBuilder() { + return getClassificationAnnotation(); + } - /** - * - * - *
-       * Output only. Precision under the given confidence threshold.
-       * 
+ public static final int TIME_SEGMENT_FIELD_NUMBER = 3; + private com.google.cloud.automl.v1beta1.TimeSegment timeSegment_; + /** + * + * + *
+     * Output only . The time segment of the video to which the
+     * annotation applies.
+     * 
+ * + * .google.cloud.automl.v1beta1.TimeSegment time_segment = 3; + */ + public boolean hasTimeSegment() { + return timeSegment_ != null; + } + /** + * + * + *
+     * Output only . The time segment of the video to which the
+     * annotation applies.
+     * 
+ * + * .google.cloud.automl.v1beta1.TimeSegment time_segment = 3; + */ + public com.google.cloud.automl.v1beta1.TimeSegment getTimeSegment() { + return timeSegment_ == null + ? com.google.cloud.automl.v1beta1.TimeSegment.getDefaultInstance() + : timeSegment_; + } + /** + * + * + *
+     * Output only . The time segment of the video to which the
+     * annotation applies.
+     * 
+ * + * .google.cloud.automl.v1beta1.TimeSegment time_segment = 3; + */ + public com.google.cloud.automl.v1beta1.TimeSegmentOrBuilder getTimeSegmentOrBuilder() { + return getTimeSegment(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); + } + if (classificationAnnotation_ != null) { + output.writeMessage(2, getClassificationAnnotation()); + } + if (timeSegment_ != null) { + output.writeMessage(3, getTimeSegment()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); + } + if (classificationAnnotation_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getClassificationAnnotation()); + } + if (timeSegment_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTimeSegment()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation other = + (com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation) obj; + + if (!getType().equals(other.getType())) return false; + if (hasClassificationAnnotation() != other.hasClassificationAnnotation()) return false; + if (hasClassificationAnnotation()) { + if (!getClassificationAnnotation().equals(other.getClassificationAnnotation())) + return false; + } + if (hasTimeSegment() != other.hasTimeSegment()) return false; + if (hasTimeSegment()) { + if (!getTimeSegment().equals(other.getTimeSegment())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + if (hasClassificationAnnotation()) { + hash = (37 * hash) + CLASSIFICATION_ANNOTATION_FIELD_NUMBER; + hash = (53 * hash) + getClassificationAnnotation().hashCode(); + } + if (hasTimeSegment()) { + hash = (37 * hash) + TIME_SEGMENT_FIELD_NUMBER; + hash = (53 * hash) + getTimeSegment().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Contains annotation details specific to video classification.
+     * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.VideoClassificationAnnotation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.VideoClassificationAnnotation) + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_VideoClassificationAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_VideoClassificationAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + .class, + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + .Builder.class); + } + + // Construct using + // com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = ""; + + if (classificationAnnotationBuilder_ == null) { + classificationAnnotation_ = null; + } else { + classificationAnnotation_ = null; + classificationAnnotationBuilder_ = null; + } + if (timeSegmentBuilder_ == null) { + timeSegment_ = null; + } else { + timeSegment_ = null; + timeSegmentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_VideoClassificationAnnotation_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + build() { + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + buildPartial() { + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation result = + new com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation( + this); + result.type_ = type_; + if (classificationAnnotationBuilder_ == null) { + result.classificationAnnotation_ = classificationAnnotation_; + } else { + result.classificationAnnotation_ = classificationAnnotationBuilder_.build(); + } + if (timeSegmentBuilder_ == null) { + result.timeSegment_ = timeSegment_; + } else { + result.timeSegment_ = timeSegmentBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation) { + return mergeFrom( + (com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation other) { + if (other + == com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + .getDefaultInstance()) return this; + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + if (other.hasClassificationAnnotation()) { + mergeClassificationAnnotation(other.getClassificationAnnotation()); + } + if (other.hasTimeSegment()) { + mergeTimeSegment(other.getTimeSegment()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object type_ = ""; + /** + * + * + *
+       * Output only. Expresses the type of video classification. Possible values:
+       * *  `segment` - Classification done on a specified by user
+       *        time segment of a video. AnnotationSpec is answered to be present
+       *        in that time segment, if it is present in any part of it. The video
+       *        ML model evaluations are done only for this type of classification.
+       * *  `shot`- Shot-level classification.
+       *        AutoML Video Intelligence determines the boundaries
+       *        for each camera shot in the entire segment of the video that user
+       *        specified in the request configuration. AutoML Video Intelligence
+       *        then returns labels and their confidence scores for each detected
+       *        shot, along with the start and end time of the shot.
+       *        WARNING: Model evaluation is not done for this classification type,
+       *        the quality of it depends on training data, but there are no
+       *        metrics provided to describe that quality.
+       * *  `1s_interval` - AutoML Video Intelligence returns labels and their
+       *        confidence scores for each second of the entire segment of the video
+       *        that user specified in the request configuration.
+       *        WARNING: Model evaluation is not done for this classification type,
+       *        the quality of it depends on training data, but there are no
+       *        metrics provided to describe that quality.
+       * 
+ * + * string type = 1; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. Expresses the type of video classification. Possible values:
+       * *  `segment` - Classification done on a specified by user
+       *        time segment of a video. AnnotationSpec is answered to be present
+       *        in that time segment, if it is present in any part of it. The video
+       *        ML model evaluations are done only for this type of classification.
+       * *  `shot`- Shot-level classification.
+       *        AutoML Video Intelligence determines the boundaries
+       *        for each camera shot in the entire segment of the video that user
+       *        specified in the request configuration. AutoML Video Intelligence
+       *        then returns labels and their confidence scores for each detected
+       *        shot, along with the start and end time of the shot.
+       *        WARNING: Model evaluation is not done for this classification type,
+       *        the quality of it depends on training data, but there are no
+       *        metrics provided to describe that quality.
+       * *  `1s_interval` - AutoML Video Intelligence returns labels and their
+       *        confidence scores for each second of the entire segment of the video
+       *        that user specified in the request configuration.
+       *        WARNING: Model evaluation is not done for this classification type,
+       *        the quality of it depends on training data, but there are no
+       *        metrics provided to describe that quality.
+       * 
+ * + * string type = 1; + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. Expresses the type of video classification. Possible values:
+       * *  `segment` - Classification done on a specified by user
+       *        time segment of a video. AnnotationSpec is answered to be present
+       *        in that time segment, if it is present in any part of it. The video
+       *        ML model evaluations are done only for this type of classification.
+       * *  `shot`- Shot-level classification.
+       *        AutoML Video Intelligence determines the boundaries
+       *        for each camera shot in the entire segment of the video that user
+       *        specified in the request configuration. AutoML Video Intelligence
+       *        then returns labels and their confidence scores for each detected
+       *        shot, along with the start and end time of the shot.
+       *        WARNING: Model evaluation is not done for this classification type,
+       *        the quality of it depends on training data, but there are no
+       *        metrics provided to describe that quality.
+       * *  `1s_interval` - AutoML Video Intelligence returns labels and their
+       *        confidence scores for each second of the entire segment of the video
+       *        that user specified in the request configuration.
+       *        WARNING: Model evaluation is not done for this classification type,
+       *        the quality of it depends on training data, but there are no
+       *        metrics provided to describe that quality.
+       * 
+ * + * string type = 1; + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Expresses the type of video classification. Possible values:
+       * *  `segment` - Classification done on a specified by user
+       *        time segment of a video. AnnotationSpec is answered to be present
+       *        in that time segment, if it is present in any part of it. The video
+       *        ML model evaluations are done only for this type of classification.
+       * *  `shot`- Shot-level classification.
+       *        AutoML Video Intelligence determines the boundaries
+       *        for each camera shot in the entire segment of the video that user
+       *        specified in the request configuration. AutoML Video Intelligence
+       *        then returns labels and their confidence scores for each detected
+       *        shot, along with the start and end time of the shot.
+       *        WARNING: Model evaluation is not done for this classification type,
+       *        the quality of it depends on training data, but there are no
+       *        metrics provided to describe that quality.
+       * *  `1s_interval` - AutoML Video Intelligence returns labels and their
+       *        confidence scores for each second of the entire segment of the video
+       *        that user specified in the request configuration.
+       *        WARNING: Model evaluation is not done for this classification type,
+       *        the quality of it depends on training data, but there are no
+       *        metrics provided to describe that quality.
+       * 
+ * + * string type = 1; + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Expresses the type of video classification. Possible values:
+       * *  `segment` - Classification done on a specified by user
+       *        time segment of a video. AnnotationSpec is answered to be present
+       *        in that time segment, if it is present in any part of it. The video
+       *        ML model evaluations are done only for this type of classification.
+       * *  `shot`- Shot-level classification.
+       *        AutoML Video Intelligence determines the boundaries
+       *        for each camera shot in the entire segment of the video that user
+       *        specified in the request configuration. AutoML Video Intelligence
+       *        then returns labels and their confidence scores for each detected
+       *        shot, along with the start and end time of the shot.
+       *        WARNING: Model evaluation is not done for this classification type,
+       *        the quality of it depends on training data, but there are no
+       *        metrics provided to describe that quality.
+       * *  `1s_interval` - AutoML Video Intelligence returns labels and their
+       *        confidence scores for each second of the entire segment of the video
+       *        that user specified in the request configuration.
+       *        WARNING: Model evaluation is not done for this classification type,
+       *        the quality of it depends on training data, but there are no
+       *        metrics provided to describe that quality.
+       * 
+ * + * string type = 1; + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + type_ = value; + onChanged(); + return this; + } + + private com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + classificationAnnotation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder> + classificationAnnotationBuilder_; + /** + * + * + *
+       * Output only . The classification details of this annotation.
+       * 
+ * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * + */ + public boolean hasClassificationAnnotation() { + return classificationAnnotationBuilder_ != null || classificationAnnotation_ != null; + } + /** + * + * + *
+       * Output only . The classification details of this annotation.
+       * 
+ * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * + */ + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + getClassificationAnnotation() { + if (classificationAnnotationBuilder_ == null) { + return classificationAnnotation_ == null + ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + .getDefaultInstance() + : classificationAnnotation_; + } else { + return classificationAnnotationBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Output only . The classification details of this annotation.
+       * 
+ * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * + */ + public Builder setClassificationAnnotation( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation value) { + if (classificationAnnotationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + classificationAnnotation_ = value; + onChanged(); + } else { + classificationAnnotationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Output only . The classification details of this annotation.
+       * 
+ * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * + */ + public Builder setClassificationAnnotation( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder + builderForValue) { + if (classificationAnnotationBuilder_ == null) { + classificationAnnotation_ = builderForValue.build(); + onChanged(); + } else { + classificationAnnotationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Output only . The classification details of this annotation.
+       * 
+ * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * + */ + public Builder mergeClassificationAnnotation( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation value) { + if (classificationAnnotationBuilder_ == null) { + if (classificationAnnotation_ != null) { + classificationAnnotation_ = + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + .newBuilder(classificationAnnotation_) + .mergeFrom(value) + .buildPartial(); + } else { + classificationAnnotation_ = value; + } + onChanged(); + } else { + classificationAnnotationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Output only . The classification details of this annotation.
+       * 
+ * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * + */ + public Builder clearClassificationAnnotation() { + if (classificationAnnotationBuilder_ == null) { + classificationAnnotation_ = null; + onChanged(); + } else { + classificationAnnotation_ = null; + classificationAnnotationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Output only . The classification details of this annotation.
+       * 
+ * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * + */ + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder + getClassificationAnnotationBuilder() { + + onChanged(); + return getClassificationAnnotationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Output only . The classification details of this annotation.
+       * 
+ * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * + */ + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder + getClassificationAnnotationOrBuilder() { + if (classificationAnnotationBuilder_ != null) { + return classificationAnnotationBuilder_.getMessageOrBuilder(); + } else { + return classificationAnnotation_ == null + ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + .getDefaultInstance() + : classificationAnnotation_; + } + } + /** + * + * + *
+       * Output only . The classification details of this annotation.
+       * 
+ * + * .google.cloud.automl.v1beta1.ClassificationAnnotation classification_annotation = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotationOrBuilder> + getClassificationAnnotationFieldBuilder() { + if (classificationAnnotationBuilder_ == null) { + classificationAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation + .Builder, + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationAnnotationOrBuilder>( + getClassificationAnnotation(), getParentForChildren(), isClean()); + classificationAnnotation_ = null; + } + return classificationAnnotationBuilder_; + } + + private com.google.cloud.automl.v1beta1.TimeSegment timeSegment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TimeSegment, + com.google.cloud.automl.v1beta1.TimeSegment.Builder, + com.google.cloud.automl.v1beta1.TimeSegmentOrBuilder> + timeSegmentBuilder_; + /** + * + * + *
+       * Output only . The time segment of the video to which the
+       * annotation applies.
+       * 
+ * + * .google.cloud.automl.v1beta1.TimeSegment time_segment = 3; + */ + public boolean hasTimeSegment() { + return timeSegmentBuilder_ != null || timeSegment_ != null; + } + /** + * + * + *
+       * Output only . The time segment of the video to which the
+       * annotation applies.
+       * 
+ * + * .google.cloud.automl.v1beta1.TimeSegment time_segment = 3; + */ + public com.google.cloud.automl.v1beta1.TimeSegment getTimeSegment() { + if (timeSegmentBuilder_ == null) { + return timeSegment_ == null + ? com.google.cloud.automl.v1beta1.TimeSegment.getDefaultInstance() + : timeSegment_; + } else { + return timeSegmentBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Output only . The time segment of the video to which the
+       * annotation applies.
+       * 
+ * + * .google.cloud.automl.v1beta1.TimeSegment time_segment = 3; + */ + public Builder setTimeSegment(com.google.cloud.automl.v1beta1.TimeSegment value) { + if (timeSegmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeSegment_ = value; + onChanged(); + } else { + timeSegmentBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Output only . The time segment of the video to which the
+       * annotation applies.
+       * 
+ * + * .google.cloud.automl.v1beta1.TimeSegment time_segment = 3; + */ + public Builder setTimeSegment( + com.google.cloud.automl.v1beta1.TimeSegment.Builder builderForValue) { + if (timeSegmentBuilder_ == null) { + timeSegment_ = builderForValue.build(); + onChanged(); + } else { + timeSegmentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Output only . The time segment of the video to which the
+       * annotation applies.
+       * 
+ * + * .google.cloud.automl.v1beta1.TimeSegment time_segment = 3; + */ + public Builder mergeTimeSegment(com.google.cloud.automl.v1beta1.TimeSegment value) { + if (timeSegmentBuilder_ == null) { + if (timeSegment_ != null) { + timeSegment_ = + com.google.cloud.automl.v1beta1.TimeSegment.newBuilder(timeSegment_) + .mergeFrom(value) + .buildPartial(); + } else { + timeSegment_ = value; + } + onChanged(); + } else { + timeSegmentBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Output only . The time segment of the video to which the
+       * annotation applies.
+       * 
+ * + * .google.cloud.automl.v1beta1.TimeSegment time_segment = 3; + */ + public Builder clearTimeSegment() { + if (timeSegmentBuilder_ == null) { + timeSegment_ = null; + onChanged(); + } else { + timeSegment_ = null; + timeSegmentBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Output only . The time segment of the video to which the
+       * annotation applies.
+       * 
+ * + * .google.cloud.automl.v1beta1.TimeSegment time_segment = 3; + */ + public com.google.cloud.automl.v1beta1.TimeSegment.Builder getTimeSegmentBuilder() { + + onChanged(); + return getTimeSegmentFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Output only . The time segment of the video to which the
+       * annotation applies.
+       * 
+ * + * .google.cloud.automl.v1beta1.TimeSegment time_segment = 3; + */ + public com.google.cloud.automl.v1beta1.TimeSegmentOrBuilder getTimeSegmentOrBuilder() { + if (timeSegmentBuilder_ != null) { + return timeSegmentBuilder_.getMessageOrBuilder(); + } else { + return timeSegment_ == null + ? com.google.cloud.automl.v1beta1.TimeSegment.getDefaultInstance() + : timeSegment_; + } + } + /** + * + * + *
+       * Output only . The time segment of the video to which the
+       * annotation applies.
+       * 
+ * + * .google.cloud.automl.v1beta1.TimeSegment time_segment = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TimeSegment, + com.google.cloud.automl.v1beta1.TimeSegment.Builder, + com.google.cloud.automl.v1beta1.TimeSegmentOrBuilder> + getTimeSegmentFieldBuilder() { + if (timeSegmentBuilder_ == null) { + timeSegmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TimeSegment, + com.google.cloud.automl.v1beta1.TimeSegment.Builder, + com.google.cloud.automl.v1beta1.TimeSegmentOrBuilder>( + getTimeSegment(), getParentForChildren(), isClean()); + timeSegment_ = null; + } + return timeSegmentBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.VideoClassificationAnnotation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.VideoClassificationAnnotation) + private static final com.google.cloud.automl.v1beta1.ClassificationProto + .VideoClassificationAnnotation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation(); + } + + public static com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoClassificationAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoClassificationAnnotation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ClassificationProto.VideoClassificationAnnotation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ClassificationEvaluationMetricsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
+     * for the overall evaluation.
+     * 
+ * + * float au_prc = 1; + */ + float getAuPrc(); + + /** + * + * + *
+     * Output only. The Area Under Precision-Recall Curve metric based on priors.
+     * Micro-averaged for the overall evaluation.
+     * Deprecated.
+     * 
+ * + * float base_au_prc = 2 [deprecated = true]; + */ + @java.lang.Deprecated + float getBaseAuPrc(); + + /** + * + * + *
+     * Output only. The Area Under Receiver Operating Characteristic curve metric.
+     * Micro-averaged for the overall evaluation.
+     * 
+ * + * float au_roc = 6; + */ + float getAuRoc(); + + /** + * + * + *
+     * Output only. The Log Loss metric.
+     * 
+ * + * float log_loss = 7; + */ + float getLogLoss(); + + /** + * + * + *
+     * Output only. Metrics for each confidence_threshold in
+     * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+     * position_threshold = INT32_MAX_VALUE.
+     * Precision-recall curve is derived from them.
+     * The above metrics may also be supplied for additional values of
+     * position_threshold.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + */ + java.util.List< + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry> + getConfidenceMetricsEntryList(); + /** + * + * + *
+     * Output only. Metrics for each confidence_threshold in
+     * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+     * position_threshold = INT32_MAX_VALUE.
+     * Precision-recall curve is derived from them.
+     * The above metrics may also be supplied for additional values of
+     * position_threshold.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + */ + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry + getConfidenceMetricsEntry(int index); + /** + * + * + *
+     * Output only. Metrics for each confidence_threshold in
+     * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+     * position_threshold = INT32_MAX_VALUE.
+     * Precision-recall curve is derived from them.
+     * The above metrics may also be supplied for additional values of
+     * position_threshold.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + */ + int getConfidenceMetricsEntryCount(); + /** + * + * + *
+     * Output only. Metrics for each confidence_threshold in
+     * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+     * position_threshold = INT32_MAX_VALUE.
+     * Precision-recall curve is derived from them.
+     * The above metrics may also be supplied for additional values of
+     * position_threshold.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + */ + java.util.List< + ? extends + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder> + getConfidenceMetricsEntryOrBuilderList(); + /** + * + * + *
+     * Output only. Metrics for each confidence_threshold in
+     * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+     * position_threshold = INT32_MAX_VALUE.
+     * Precision-recall curve is derived from them.
+     * The above metrics may also be supplied for additional values of
+     * position_threshold.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; + * + */ + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntryOrBuilder(int index); + + /** + * + * + *
+     * Output only. Confusion matrix of the evaluation.
+     * Only set for MULTICLASS classification problems where number
+     * of labels is no more than 10.
+     * Only set for model level evaluation, not for evaluation per label.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + */ + boolean hasConfusionMatrix(); + /** + * + * + *
+     * Output only. Confusion matrix of the evaluation.
+     * Only set for MULTICLASS classification problems where number
+     * of labels is no more than 10.
+     * Only set for model level evaluation, not for evaluation per label.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + */ + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix + getConfusionMatrix(); + /** + * + * + *
+     * Output only. Confusion matrix of the evaluation.
+     * Only set for MULTICLASS classification problems where number
+     * of labels is no more than 10.
+     * Only set for model level evaluation, not for evaluation per label.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; + * + */ + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrixOrBuilder + getConfusionMatrixOrBuilder(); + + /** + * + * + *
+     * Output only. The annotation spec ids used for this evaluation.
+     * 
+ * + * repeated string annotation_spec_id = 5; + */ + java.util.List getAnnotationSpecIdList(); + /** + * + * + *
+     * Output only. The annotation spec ids used for this evaluation.
+     * 
+ * + * repeated string annotation_spec_id = 5; + */ + int getAnnotationSpecIdCount(); + /** + * + * + *
+     * Output only. The annotation spec ids used for this evaluation.
+     * 
+ * + * repeated string annotation_spec_id = 5; + */ + java.lang.String getAnnotationSpecId(int index); + /** + * + * + *
+     * Output only. The annotation spec ids used for this evaluation.
+     * 
+ * + * repeated string annotation_spec_id = 5; + */ + com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index); + } + /** + * + * + *
+   * Model evaluation metrics for classification problems.
+   * Note: For Video Classification this metrics only describe quality of the
+   * Video Classification predictions of "segment_classification" type.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationEvaluationMetrics} + */ + public static final class ClassificationEvaluationMetrics + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics) + ClassificationEvaluationMetricsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClassificationEvaluationMetrics.newBuilder() to construct. + private ClassificationEvaluationMetrics( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClassificationEvaluationMetrics() { + confidenceMetricsEntry_ = java.util.Collections.emptyList(); + annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ClassificationEvaluationMetrics( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + auPrc_ = input.readFloat(); + break; + } + case 21: + { + baseAuPrc_ = input.readFloat(); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + confidenceMetricsEntry_ = + new java.util.ArrayList< + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfidenceMetricsEntry>(); + mutable_bitField0_ |= 0x00000010; + } + confidenceMetricsEntry_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfidenceMetricsEntry.parser(), + extensionRegistry)); + break; + } + case 34: + { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Builder + subBuilder = null; + if (confusionMatrix_ != null) { + subBuilder = confusionMatrix_.toBuilder(); + } + confusionMatrix_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(confusionMatrix_); + confusionMatrix_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000040) != 0)) { + annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000040; + } + annotationSpecId_.add(s); + break; + } + case 53: + { + auRoc_ = input.readFloat(); + break; + } + case 61: + { + logLoss_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000010) != 0)) { + confidenceMetricsEntry_ = java.util.Collections.unmodifiableList(confidenceMetricsEntry_); + } + if (((mutable_bitField0_ & 0x00000040) != 0)) { + annotationSpecId_ = annotationSpecId_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .class, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .Builder.class); + } + + public interface ConfidenceMetricsEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Output only. Metrics are computed with an assumption that the model
+       * never returns predictions with score lower than this value.
+       * 
+ * + * float confidence_threshold = 1; + */ + float getConfidenceThreshold(); + + /** + * + * + *
+       * Output only. Metrics are computed with an assumption that the model
+       * always returns at most this many predictions (ordered by their score,
+       * descendingly), but they all still need to meet the confidence_threshold.
+       * 
+ * + * int32 position_threshold = 14; + */ + int getPositionThreshold(); + + /** + * + * + *
+       * Output only. Recall (True Positive Rate) for the given confidence
+       * threshold.
+       * 
+ * + * float recall = 2; + */ + float getRecall(); + + /** + * + * + *
+       * Output only. Precision for the given confidence threshold.
+       * 
* * float precision = 3; */ float getPrecision(); + /** + * + * + *
+       * Output only. False Positive Rate for the given confidence threshold.
+       * 
+ * + * float false_positive_rate = 8; + */ + float getFalsePositiveRate(); + /** * * @@ -1139,9 +2705,9 @@ public interface ConfidenceMetricsEntryOrBuilder * * *
-       * Output only. The recall when only considering the label that has the
-       * highest prediction score and not below the confidence threshold for each
-       * example.
+       * Output only. The Recall (True Positive Rate) when only considering the
+       * label that has the highest prediction score and not below the confidence
+       * threshold for each example.
        * 
* * float recall_at1 = 5; @@ -1153,7 +2719,7 @@ public interface ConfidenceMetricsEntryOrBuilder * *
        * Output only. The precision when only considering the label that has the
-       * highest predictionscore and not below the confidence threshold for each
+       * highest prediction score and not below the confidence threshold for each
        * example.
        * 
* @@ -1165,15 +2731,73 @@ public interface ConfidenceMetricsEntryOrBuilder * * *
-       * Output only. The harmonic mean of
-       * [recall_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1]
-       * and
-       * [precision_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
+       * Output only. The False Positive Rate when only considering the label that
+       * has the highest prediction score and not below the confidence threshold
+       * for each example.
+       * 
+ * + * float false_positive_rate_at1 = 9; + */ + float getFalsePositiveRateAt1(); + + /** + * + * + *
+       * Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
        * 
* * float f1_score_at1 = 7; */ float getF1ScoreAt1(); + + /** + * + * + *
+       * Output only. The number of model created labels that match a ground truth
+       * label.
+       * 
+ * + * int64 true_positive_count = 10; + */ + long getTruePositiveCount(); + + /** + * + * + *
+       * Output only. The number of model created labels that do not match a
+       * ground truth label.
+       * 
+ * + * int64 false_positive_count = 11; + */ + long getFalsePositiveCount(); + + /** + * + * + *
+       * Output only. The number of ground truth labels that are not matched
+       * by a model created label.
+       * 
+ * + * int64 false_negative_count = 12; + */ + long getFalseNegativeCount(); + + /** + * + * + *
+       * Output only. The number of labels that were not created by the model,
+       * but if they would, they would not match a ground truth label.
+       * 
+ * + * int64 true_negative_count = 13; + */ + long getTrueNegativeCount(); } /** * @@ -1256,6 +2880,41 @@ private ConfidenceMetricsEntry( f1ScoreAt1_ = input.readFloat(); break; } + case 69: + { + falsePositiveRate_ = input.readFloat(); + break; + } + case 77: + { + falsePositiveRateAt1_ = input.readFloat(); + break; + } + case 80: + { + truePositiveCount_ = input.readInt64(); + break; + } + case 88: + { + falsePositiveCount_ = input.readInt64(); + break; + } + case 96: + { + falseNegativeCount_ = input.readInt64(); + break; + } + case 104: + { + trueNegativeCount_ = input.readInt64(); + break; + } + case 112: + { + positionThreshold_ = input.readInt32(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -1299,7 +2958,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-       * Output only. The confidence threshold value used to compute the metrics.
+       * Output only. Metrics are computed with an assumption that the model
+       * never returns predictions with score lower than this value.
        * 
* * float confidence_threshold = 1; @@ -1308,13 +2968,31 @@ public float getConfidenceThreshold() { return confidenceThreshold_; } + public static final int POSITION_THRESHOLD_FIELD_NUMBER = 14; + private int positionThreshold_; + /** + * + * + *
+       * Output only. Metrics are computed with an assumption that the model
+       * always returns at most this many predictions (ordered by their score,
+       * descendingly), but they all still need to meet the confidence_threshold.
+       * 
+ * + * int32 position_threshold = 14; + */ + public int getPositionThreshold() { + return positionThreshold_; + } + public static final int RECALL_FIELD_NUMBER = 2; private float recall_; /** * * *
-       * Output only. Recall under the given confidence threshold.
+       * Output only. Recall (True Positive Rate) for the given confidence
+       * threshold.
        * 
* * float recall = 2; @@ -1329,7 +3007,7 @@ public float getRecall() { * * *
-       * Output only. Precision under the given confidence threshold.
+       * Output only. Precision for the given confidence threshold.
        * 
* * float precision = 3; @@ -1338,6 +3016,21 @@ public float getPrecision() { return precision_; } + public static final int FALSE_POSITIVE_RATE_FIELD_NUMBER = 8; + private float falsePositiveRate_; + /** + * + * + *
+       * Output only. False Positive Rate for the given confidence threshold.
+       * 
+ * + * float false_positive_rate = 8; + */ + public float getFalsePositiveRate() { + return falsePositiveRate_; + } + public static final int F1_SCORE_FIELD_NUMBER = 4; private float f1Score_; /** @@ -1359,9 +3052,9 @@ public float getF1Score() { * * *
-       * Output only. The recall when only considering the label that has the
-       * highest prediction score and not below the confidence threshold for each
-       * example.
+       * Output only. The Recall (True Positive Rate) when only considering the
+       * label that has the highest prediction score and not below the confidence
+       * threshold for each example.
        * 
* * float recall_at1 = 5; @@ -1377,7 +3070,7 @@ public float getRecallAt1() { * *
        * Output only. The precision when only considering the label that has the
-       * highest predictionscore and not below the confidence threshold for each
+       * highest prediction score and not below the confidence threshold for each
        * example.
        * 
* @@ -1387,16 +3080,30 @@ public float getPrecisionAt1() { return precisionAt1_; } + public static final int FALSE_POSITIVE_RATE_AT1_FIELD_NUMBER = 9; + private float falsePositiveRateAt1_; + /** + * + * + *
+       * Output only. The False Positive Rate when only considering the label that
+       * has the highest prediction score and not below the confidence threshold
+       * for each example.
+       * 
+ * + * float false_positive_rate_at1 = 9; + */ + public float getFalsePositiveRateAt1() { + return falsePositiveRateAt1_; + } + public static final int F1_SCORE_AT1_FIELD_NUMBER = 7; private float f1ScoreAt1_; /** * * *
-       * Output only. The harmonic mean of
-       * [recall_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1]
-       * and
-       * [precision_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
+       * Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
        * 
* * float f1_score_at1 = 7; @@ -1405,6 +3112,70 @@ public float getF1ScoreAt1() { return f1ScoreAt1_; } + public static final int TRUE_POSITIVE_COUNT_FIELD_NUMBER = 10; + private long truePositiveCount_; + /** + * + * + *
+       * Output only. The number of model created labels that match a ground truth
+       * label.
+       * 
+ * + * int64 true_positive_count = 10; + */ + public long getTruePositiveCount() { + return truePositiveCount_; + } + + public static final int FALSE_POSITIVE_COUNT_FIELD_NUMBER = 11; + private long falsePositiveCount_; + /** + * + * + *
+       * Output only. The number of model created labels that do not match a
+       * ground truth label.
+       * 
+ * + * int64 false_positive_count = 11; + */ + public long getFalsePositiveCount() { + return falsePositiveCount_; + } + + public static final int FALSE_NEGATIVE_COUNT_FIELD_NUMBER = 12; + private long falseNegativeCount_; + /** + * + * + *
+       * Output only. The number of ground truth labels that are not matched
+       * by a model created label.
+       * 
+ * + * int64 false_negative_count = 12; + */ + public long getFalseNegativeCount() { + return falseNegativeCount_; + } + + public static final int TRUE_NEGATIVE_COUNT_FIELD_NUMBER = 13; + private long trueNegativeCount_; + /** + * + * + *
+       * Output only. The number of labels that were not created by the model,
+       * but if they would, they would not match a ground truth label.
+       * 
+ * + * int64 true_negative_count = 13; + */ + public long getTrueNegativeCount() { + return trueNegativeCount_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1440,6 +3211,27 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (f1ScoreAt1_ != 0F) { output.writeFloat(7, f1ScoreAt1_); } + if (falsePositiveRate_ != 0F) { + output.writeFloat(8, falsePositiveRate_); + } + if (falsePositiveRateAt1_ != 0F) { + output.writeFloat(9, falsePositiveRateAt1_); + } + if (truePositiveCount_ != 0L) { + output.writeInt64(10, truePositiveCount_); + } + if (falsePositiveCount_ != 0L) { + output.writeInt64(11, falsePositiveCount_); + } + if (falseNegativeCount_ != 0L) { + output.writeInt64(12, falseNegativeCount_); + } + if (trueNegativeCount_ != 0L) { + output.writeInt64(13, trueNegativeCount_); + } + if (positionThreshold_ != 0) { + output.writeInt32(14, positionThreshold_); + } unknownFields.writeTo(output); } @@ -1467,8 +3259,29 @@ public int getSerializedSize() { if (precisionAt1_ != 0F) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, precisionAt1_); } - if (f1ScoreAt1_ != 0F) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, f1ScoreAt1_); + if (f1ScoreAt1_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, f1ScoreAt1_); + } + if (falsePositiveRate_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, falsePositiveRate_); + } + if (falsePositiveRateAt1_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(9, falsePositiveRateAt1_); + } + if (truePositiveCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, truePositiveCount_); + } + if (falsePositiveCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, falsePositiveCount_); + } + if (falseNegativeCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(12, falseNegativeCount_); + } + if (trueNegativeCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(13, trueNegativeCount_); + } + if (positionThreshold_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(14, positionThreshold_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1495,18 +3308,27 @@ public boolean equals(final java.lang.Object obj) { if (java.lang.Float.floatToIntBits(getConfidenceThreshold()) != java.lang.Float.floatToIntBits(other.getConfidenceThreshold())) return false; + if (getPositionThreshold() != other.getPositionThreshold()) return false; if (java.lang.Float.floatToIntBits(getRecall()) != java.lang.Float.floatToIntBits(other.getRecall())) return false; if (java.lang.Float.floatToIntBits(getPrecision()) != java.lang.Float.floatToIntBits(other.getPrecision())) return false; + if (java.lang.Float.floatToIntBits(getFalsePositiveRate()) + != java.lang.Float.floatToIntBits(other.getFalsePositiveRate())) return false; if (java.lang.Float.floatToIntBits(getF1Score()) != java.lang.Float.floatToIntBits(other.getF1Score())) return false; if (java.lang.Float.floatToIntBits(getRecallAt1()) != java.lang.Float.floatToIntBits(other.getRecallAt1())) return false; if (java.lang.Float.floatToIntBits(getPrecisionAt1()) != java.lang.Float.floatToIntBits(other.getPrecisionAt1())) return false; + if (java.lang.Float.floatToIntBits(getFalsePositiveRateAt1()) + != java.lang.Float.floatToIntBits(other.getFalsePositiveRateAt1())) return false; if (java.lang.Float.floatToIntBits(getF1ScoreAt1()) != java.lang.Float.floatToIntBits(other.getF1ScoreAt1())) return false; + if (getTruePositiveCount() != other.getTruePositiveCount()) return false; + if (getFalsePositiveCount() != other.getFalsePositiveCount()) return false; + if (getFalseNegativeCount() != other.getFalseNegativeCount()) return false; + if (getTrueNegativeCount() != other.getTrueNegativeCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1520,18 +3342,32 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONFIDENCE_THRESHOLD_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceThreshold()); + hash = (37 * hash) + POSITION_THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + getPositionThreshold(); hash = (37 * hash) + RECALL_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecall()); hash = (37 * hash) + PRECISION_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecision()); + hash = (37 * hash) + FALSE_POSITIVE_RATE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getFalsePositiveRate()); hash = (37 * hash) + F1_SCORE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1Score()); hash = (37 * hash) + RECALL_AT1_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecallAt1()); hash = (37 * hash) + PRECISION_AT1_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecisionAt1()); + hash = (37 * hash) + FALSE_POSITIVE_RATE_AT1_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getFalsePositiveRateAt1()); hash = (37 * hash) + F1_SCORE_AT1_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1ScoreAt1()); + hash = (37 * hash) + TRUE_POSITIVE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTruePositiveCount()); + hash = (37 * hash) + FALSE_POSITIVE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFalsePositiveCount()); + hash = (37 * hash) + FALSE_NEGATIVE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFalseNegativeCount()); + hash = (37 * hash) + TRUE_NEGATIVE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrueNegativeCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1709,206 +3545,578 @@ public Builder clear() { super.clear(); confidenceThreshold_ = 0F; + positionThreshold_ = 0; + recall_ = 0F; precision_ = 0F; + falsePositiveRate_ = 0F; + f1Score_ = 0F; recallAt1_ = 0F; precisionAt1_ = 0F; + falsePositiveRateAt1_ = 0F; + f1ScoreAt1_ = 0F; + truePositiveCount_ = 0L; + + falsePositiveCount_ = 0L; + + falseNegativeCount_ = 0L; + + trueNegativeCount_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ClassificationProto + .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry + build() { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry + buildPartial() { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry + result = + new com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfidenceMetricsEntry(this); + result.confidenceThreshold_ = confidenceThreshold_; + result.positionThreshold_ = positionThreshold_; + result.recall_ = recall_; + result.precision_ = precision_; + result.falsePositiveRate_ = falsePositiveRate_; + result.f1Score_ = f1Score_; + result.recallAt1_ = recallAt1_; + result.precisionAt1_ = precisionAt1_; + result.falsePositiveRateAt1_ = falsePositiveRateAt1_; + result.f1ScoreAt1_ = f1ScoreAt1_; + result.truePositiveCount_ = truePositiveCount_; + result.falsePositiveCount_ = falsePositiveCount_; + result.falseNegativeCount_ = falseNegativeCount_; + result.trueNegativeCount_ = trueNegativeCount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry) { + return mergeFrom( + (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry + other) { + if (other + == com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry.getDefaultInstance()) return this; + if (other.getConfidenceThreshold() != 0F) { + setConfidenceThreshold(other.getConfidenceThreshold()); + } + if (other.getPositionThreshold() != 0) { + setPositionThreshold(other.getPositionThreshold()); + } + if (other.getRecall() != 0F) { + setRecall(other.getRecall()); + } + if (other.getPrecision() != 0F) { + setPrecision(other.getPrecision()); + } + if (other.getFalsePositiveRate() != 0F) { + setFalsePositiveRate(other.getFalsePositiveRate()); + } + if (other.getF1Score() != 0F) { + setF1Score(other.getF1Score()); + } + if (other.getRecallAt1() != 0F) { + setRecallAt1(other.getRecallAt1()); + } + if (other.getPrecisionAt1() != 0F) { + setPrecisionAt1(other.getPrecisionAt1()); + } + if (other.getFalsePositiveRateAt1() != 0F) { + setFalsePositiveRateAt1(other.getFalsePositiveRateAt1()); + } + if (other.getF1ScoreAt1() != 0F) { + setF1ScoreAt1(other.getF1ScoreAt1()); + } + if (other.getTruePositiveCount() != 0L) { + setTruePositiveCount(other.getTruePositiveCount()); + } + if (other.getFalsePositiveCount() != 0L) { + setFalsePositiveCount(other.getFalsePositiveCount()); + } + if (other.getFalseNegativeCount() != 0L) { + setFalseNegativeCount(other.getFalseNegativeCount()); + } + if (other.getTrueNegativeCount() != 0L) { + setTrueNegativeCount(other.getTrueNegativeCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfidenceMetricsEntry) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private float confidenceThreshold_; + /** + * + * + *
+         * Output only. Metrics are computed with an assumption that the model
+         * never returns predictions with score lower than this value.
+         * 
+ * + * float confidence_threshold = 1; + */ + public float getConfidenceThreshold() { + return confidenceThreshold_; + } + /** + * + * + *
+         * Output only. Metrics are computed with an assumption that the model
+         * never returns predictions with score lower than this value.
+         * 
+ * + * float confidence_threshold = 1; + */ + public Builder setConfidenceThreshold(float value) { + + confidenceThreshold_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * Output only. Metrics are computed with an assumption that the model
+         * never returns predictions with score lower than this value.
+         * 
+ * + * float confidence_threshold = 1; + */ + public Builder clearConfidenceThreshold() { + + confidenceThreshold_ = 0F; + onChanged(); + return this; + } + + private int positionThreshold_; + /** + * + * + *
+         * Output only. Metrics are computed with an assumption that the model
+         * always returns at most this many predictions (ordered by their score,
+         * descendingly), but they all still need to meet the confidence_threshold.
+         * 
+ * + * int32 position_threshold = 14; + */ + public int getPositionThreshold() { + return positionThreshold_; + } + /** + * + * + *
+         * Output only. Metrics are computed with an assumption that the model
+         * always returns at most this many predictions (ordered by their score,
+         * descendingly), but they all still need to meet the confidence_threshold.
+         * 
+ * + * int32 position_threshold = 14; + */ + public Builder setPositionThreshold(int value) { + + positionThreshold_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * Output only. Metrics are computed with an assumption that the model
+         * always returns at most this many predictions (ordered by their score,
+         * descendingly), but they all still need to meet the confidence_threshold.
+         * 
+ * + * int32 position_threshold = 14; + */ + public Builder clearPositionThreshold() { + + positionThreshold_ = 0; + onChanged(); + return this; + } + + private float recall_; + /** + * + * + *
+         * Output only. Recall (True Positive Rate) for the given confidence
+         * threshold.
+         * 
+ * + * float recall = 2; + */ + public float getRecall() { + return recall_; + } + /** + * + * + *
+         * Output only. Recall (True Positive Rate) for the given confidence
+         * threshold.
+         * 
+ * + * float recall = 2; + */ + public Builder setRecall(float value) { + + recall_ = value; + onChanged(); return this; } + /** + * + * + *
+         * Output only. Recall (True Positive Rate) for the given confidence
+         * threshold.
+         * 
+ * + * float recall = 2; + */ + public Builder clearRecall() { - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.ClassificationProto - .internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + recall_ = 0F; + onChanged(); + return this; } - @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry - getDefaultInstanceForType() { - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry.getDefaultInstance(); + private float precision_; + /** + * + * + *
+         * Output only. Precision for the given confidence threshold.
+         * 
+ * + * float precision = 3; + */ + public float getPrecision() { + return precision_; } + /** + * + * + *
+         * Output only. Precision for the given confidence threshold.
+         * 
+ * + * float precision = 3; + */ + public Builder setPrecision(float value) { - @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry - build() { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + precision_ = value; + onChanged(); + return this; } + /** + * + * + *
+         * Output only. Precision for the given confidence threshold.
+         * 
+ * + * float precision = 3; + */ + public Builder clearPrecision() { - @java.lang.Override - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry - buildPartial() { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry - result = - new com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.ConfidenceMetricsEntry(this); - result.confidenceThreshold_ = confidenceThreshold_; - result.recall_ = recall_; - result.precision_ = precision_; - result.f1Score_ = f1Score_; - result.recallAt1_ = recallAt1_; - result.precisionAt1_ = precisionAt1_; - result.f1ScoreAt1_ = f1ScoreAt1_; - onBuilt(); - return result; + precision_ = 0F; + onChanged(); + return this; } - @java.lang.Override - public Builder clone() { - return super.clone(); + private float falsePositiveRate_; + /** + * + * + *
+         * Output only. False Positive Rate for the given confidence threshold.
+         * 
+ * + * float false_positive_rate = 8; + */ + public float getFalsePositiveRate() { + return falsePositiveRate_; } + /** + * + * + *
+         * Output only. False Positive Rate for the given confidence threshold.
+         * 
+ * + * float false_positive_rate = 8; + */ + public Builder setFalsePositiveRate(float value) { - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + falsePositiveRate_ = value; + onChanged(); + return this; } + /** + * + * + *
+         * Output only. False Positive Rate for the given confidence threshold.
+         * 
+ * + * float false_positive_rate = 8; + */ + public Builder clearFalsePositiveRate() { - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + falsePositiveRate_ = 0F; + onChanged(); + return this; } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + private float f1Score_; + /** + * + * + *
+         * Output only. The harmonic mean of recall and precision.
+         * 
+ * + * float f1_score = 4; + */ + public float getF1Score() { + return f1Score_; } + /** + * + * + *
+         * Output only. The harmonic mean of recall and precision.
+         * 
+ * + * float f1_score = 4; + */ + public Builder setF1Score(float value) { - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); + f1Score_ = value; + onChanged(); + return this; } + /** + * + * + *
+         * Output only. The harmonic mean of recall and precision.
+         * 
+ * + * float f1_score = 4; + */ + public Builder clearF1Score() { - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + f1Score_ = 0F; + onChanged(); + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry) { - return mergeFrom( - (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry) - other); - } else { - super.mergeFrom(other); - return this; - } + private float recallAt1_; + /** + * + * + *
+         * Output only. The Recall (True Positive Rate) when only considering the
+         * label that has the highest prediction score and not below the confidence
+         * threshold for each example.
+         * 
+ * + * float recall_at1 = 5; + */ + public float getRecallAt1() { + return recallAt1_; } + /** + * + * + *
+         * Output only. The Recall (True Positive Rate) when only considering the
+         * label that has the highest prediction score and not below the confidence
+         * threshold for each example.
+         * 
+ * + * float recall_at1 = 5; + */ + public Builder setRecallAt1(float value) { - public Builder mergeFrom( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry - other) { - if (other - == com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry.getDefaultInstance()) return this; - if (other.getConfidenceThreshold() != 0F) { - setConfidenceThreshold(other.getConfidenceThreshold()); - } - if (other.getRecall() != 0F) { - setRecall(other.getRecall()); - } - if (other.getPrecision() != 0F) { - setPrecision(other.getPrecision()); - } - if (other.getF1Score() != 0F) { - setF1Score(other.getF1Score()); - } - if (other.getRecallAt1() != 0F) { - setRecallAt1(other.getRecallAt1()); - } - if (other.getPrecisionAt1() != 0F) { - setPrecisionAt1(other.getPrecisionAt1()); - } - if (other.getF1ScoreAt1() != 0F) { - setF1ScoreAt1(other.getF1ScoreAt1()); - } - this.mergeUnknownFields(other.unknownFields); + recallAt1_ = value; onChanged(); return this; } + /** + * + * + *
+         * Output only. The Recall (True Positive Rate) when only considering the
+         * label that has the highest prediction score and not below the confidence
+         * threshold for each example.
+         * 
+ * + * float recall_at1 = 5; + */ + public Builder clearRecallAt1() { - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry - parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .ConfidenceMetricsEntry) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + recallAt1_ = 0F; + onChanged(); return this; } - private float confidenceThreshold_; + private float precisionAt1_; /** * * *
-         * Output only. The confidence threshold value used to compute the metrics.
+         * Output only. The precision when only considering the label that has the
+         * highest prediction score and not below the confidence threshold for each
+         * example.
          * 
* - * float confidence_threshold = 1; + * float precision_at1 = 6; */ - public float getConfidenceThreshold() { - return confidenceThreshold_; + public float getPrecisionAt1() { + return precisionAt1_; } /** * * *
-         * Output only. The confidence threshold value used to compute the metrics.
+         * Output only. The precision when only considering the label that has the
+         * highest prediction score and not below the confidence threshold for each
+         * example.
          * 
* - * float confidence_threshold = 1; + * float precision_at1 = 6; */ - public Builder setConfidenceThreshold(float value) { + public Builder setPrecisionAt1(float value) { - confidenceThreshold_ = value; + precisionAt1_ = value; onChanged(); return this; } @@ -1916,43 +4124,49 @@ public Builder setConfidenceThreshold(float value) { * * *
-         * Output only. The confidence threshold value used to compute the metrics.
+         * Output only. The precision when only considering the label that has the
+         * highest prediction score and not below the confidence threshold for each
+         * example.
          * 
* - * float confidence_threshold = 1; + * float precision_at1 = 6; */ - public Builder clearConfidenceThreshold() { + public Builder clearPrecisionAt1() { - confidenceThreshold_ = 0F; + precisionAt1_ = 0F; onChanged(); return this; } - private float recall_; + private float falsePositiveRateAt1_; /** * * *
-         * Output only. Recall under the given confidence threshold.
+         * Output only. The False Positive Rate when only considering the label that
+         * has the highest prediction score and not below the confidence threshold
+         * for each example.
          * 
* - * float recall = 2; + * float false_positive_rate_at1 = 9; */ - public float getRecall() { - return recall_; + public float getFalsePositiveRateAt1() { + return falsePositiveRateAt1_; } /** * * *
-         * Output only. Recall under the given confidence threshold.
+         * Output only. The False Positive Rate when only considering the label that
+         * has the highest prediction score and not below the confidence threshold
+         * for each example.
          * 
* - * float recall = 2; + * float false_positive_rate_at1 = 9; */ - public Builder setRecall(float value) { + public Builder setFalsePositiveRateAt1(float value) { - recall_ = value; + falsePositiveRateAt1_ = value; onChanged(); return this; } @@ -1960,43 +4174,45 @@ public Builder setRecall(float value) { * * *
-         * Output only. Recall under the given confidence threshold.
+         * Output only. The False Positive Rate when only considering the label that
+         * has the highest prediction score and not below the confidence threshold
+         * for each example.
          * 
* - * float recall = 2; + * float false_positive_rate_at1 = 9; */ - public Builder clearRecall() { + public Builder clearFalsePositiveRateAt1() { - recall_ = 0F; + falsePositiveRateAt1_ = 0F; onChanged(); return this; } - private float precision_; + private float f1ScoreAt1_; /** * * *
-         * Output only. Precision under the given confidence threshold.
+         * Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
          * 
* - * float precision = 3; + * float f1_score_at1 = 7; */ - public float getPrecision() { - return precision_; + public float getF1ScoreAt1() { + return f1ScoreAt1_; } /** * * *
-         * Output only. Precision under the given confidence threshold.
+         * Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
          * 
* - * float precision = 3; + * float f1_score_at1 = 7; */ - public Builder setPrecision(float value) { + public Builder setF1ScoreAt1(float value) { - precision_ = value; + f1ScoreAt1_ = value; onChanged(); return this; } @@ -2004,43 +4220,45 @@ public Builder setPrecision(float value) { * * *
-         * Output only. Precision under the given confidence threshold.
+         * Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
          * 
* - * float precision = 3; + * float f1_score_at1 = 7; */ - public Builder clearPrecision() { + public Builder clearF1ScoreAt1() { - precision_ = 0F; + f1ScoreAt1_ = 0F; onChanged(); return this; } - private float f1Score_; + private long truePositiveCount_; /** * * *
-         * Output only. The harmonic mean of recall and precision.
+         * Output only. The number of model created labels that match a ground truth
+         * label.
          * 
* - * float f1_score = 4; + * int64 true_positive_count = 10; */ - public float getF1Score() { - return f1Score_; + public long getTruePositiveCount() { + return truePositiveCount_; } /** * * *
-         * Output only. The harmonic mean of recall and precision.
+         * Output only. The number of model created labels that match a ground truth
+         * label.
          * 
* - * float f1_score = 4; + * int64 true_positive_count = 10; */ - public Builder setF1Score(float value) { + public Builder setTruePositiveCount(long value) { - f1Score_ = value; + truePositiveCount_ = value; onChanged(); return this; } @@ -2048,47 +4266,46 @@ public Builder setF1Score(float value) { * * *
-         * Output only. The harmonic mean of recall and precision.
+         * Output only. The number of model created labels that match a ground truth
+         * label.
          * 
* - * float f1_score = 4; + * int64 true_positive_count = 10; */ - public Builder clearF1Score() { + public Builder clearTruePositiveCount() { - f1Score_ = 0F; + truePositiveCount_ = 0L; onChanged(); return this; } - private float recallAt1_; + private long falsePositiveCount_; /** * * *
-         * Output only. The recall when only considering the label that has the
-         * highest prediction score and not below the confidence threshold for each
-         * example.
+         * Output only. The number of model created labels that do not match a
+         * ground truth label.
          * 
* - * float recall_at1 = 5; + * int64 false_positive_count = 11; */ - public float getRecallAt1() { - return recallAt1_; + public long getFalsePositiveCount() { + return falsePositiveCount_; } /** * * *
-         * Output only. The recall when only considering the label that has the
-         * highest prediction score and not below the confidence threshold for each
-         * example.
+         * Output only. The number of model created labels that do not match a
+         * ground truth label.
          * 
* - * float recall_at1 = 5; + * int64 false_positive_count = 11; */ - public Builder setRecallAt1(float value) { + public Builder setFalsePositiveCount(long value) { - recallAt1_ = value; + falsePositiveCount_ = value; onChanged(); return this; } @@ -2096,49 +4313,46 @@ public Builder setRecallAt1(float value) { * * *
-         * Output only. The recall when only considering the label that has the
-         * highest prediction score and not below the confidence threshold for each
-         * example.
+         * Output only. The number of model created labels that do not match a
+         * ground truth label.
          * 
* - * float recall_at1 = 5; + * int64 false_positive_count = 11; */ - public Builder clearRecallAt1() { + public Builder clearFalsePositiveCount() { - recallAt1_ = 0F; + falsePositiveCount_ = 0L; onChanged(); return this; } - private float precisionAt1_; + private long falseNegativeCount_; /** * * *
-         * Output only. The precision when only considering the label that has the
-         * highest predictionscore and not below the confidence threshold for each
-         * example.
+         * Output only. The number of ground truth labels that are not matched
+         * by a model created label.
          * 
* - * float precision_at1 = 6; + * int64 false_negative_count = 12; */ - public float getPrecisionAt1() { - return precisionAt1_; + public long getFalseNegativeCount() { + return falseNegativeCount_; } /** * * *
-         * Output only. The precision when only considering the label that has the
-         * highest predictionscore and not below the confidence threshold for each
-         * example.
+         * Output only. The number of ground truth labels that are not matched
+         * by a model created label.
          * 
* - * float precision_at1 = 6; + * int64 false_negative_count = 12; */ - public Builder setPrecisionAt1(float value) { + public Builder setFalseNegativeCount(long value) { - precisionAt1_ = value; + falseNegativeCount_ = value; onChanged(); return this; } @@ -2146,51 +4360,46 @@ public Builder setPrecisionAt1(float value) { * * *
-         * Output only. The precision when only considering the label that has the
-         * highest predictionscore and not below the confidence threshold for each
-         * example.
+         * Output only. The number of ground truth labels that are not matched
+         * by a model created label.
          * 
* - * float precision_at1 = 6; + * int64 false_negative_count = 12; */ - public Builder clearPrecisionAt1() { + public Builder clearFalseNegativeCount() { - precisionAt1_ = 0F; + falseNegativeCount_ = 0L; onChanged(); return this; } - private float f1ScoreAt1_; + private long trueNegativeCount_; /** * * *
-         * Output only. The harmonic mean of
-         * [recall_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1]
-         * and
-         * [precision_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
+         * Output only. The number of labels that were not created by the model,
+         * but if they would, they would not match a ground truth label.
          * 
* - * float f1_score_at1 = 7; + * int64 true_negative_count = 13; */ - public float getF1ScoreAt1() { - return f1ScoreAt1_; + public long getTrueNegativeCount() { + return trueNegativeCount_; } /** * * *
-         * Output only. The harmonic mean of
-         * [recall_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1]
-         * and
-         * [precision_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
+         * Output only. The number of labels that were not created by the model,
+         * but if they would, they would not match a ground truth label.
          * 
* - * float f1_score_at1 = 7; + * int64 true_negative_count = 13; */ - public Builder setF1ScoreAt1(float value) { + public Builder setTrueNegativeCount(long value) { - f1ScoreAt1_ = value; + trueNegativeCount_ = value; onChanged(); return this; } @@ -2198,17 +4407,15 @@ public Builder setF1ScoreAt1(float value) { * * *
-         * Output only. The harmonic mean of
-         * [recall_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1]
-         * and
-         * [precision_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
+         * Output only. The number of labels that were not created by the model,
+         * but if they would, they would not match a ground truth label.
          * 
* - * float f1_score_at1 = 7; + * int64 true_negative_count = 13; */ - public Builder clearF1ScoreAt1() { + public Builder clearTrueNegativeCount() { - f1ScoreAt1_ = 0F; + trueNegativeCount_ = 0L; onChanged(); return this; } @@ -2539,8 +4746,8 @@ public interface RowOrBuilder * *
          * Output only. Value of the specific cell in the confusion matrix.
-         * The number of values each row is equal to the size of
-         * annotatin_spec_id.
+         * The number of values each row has (i.e. the length of the row) is equal
+         * to the length of the annotation_spec_id field.
          * 
* * repeated int32 example_count = 1; @@ -2551,8 +4758,8 @@ public interface RowOrBuilder * *
          * Output only. Value of the specific cell in the confusion matrix.
-         * The number of values each row is equal to the size of
-         * annotatin_spec_id.
+         * The number of values each row has (i.e. the length of the row) is equal
+         * to the length of the annotation_spec_id field.
          * 
* * repeated int32 example_count = 1; @@ -2563,8 +4770,8 @@ public interface RowOrBuilder * *
          * Output only. Value of the specific cell in the confusion matrix.
-         * The number of values each row is equal to the size of
-         * annotatin_spec_id.
+         * The number of values each row has (i.e. the length of the row) is equal
+         * to the length of the annotation_spec_id field.
          * 
* * repeated int32 example_count = 1; @@ -2690,8 +4897,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
          * Output only. Value of the specific cell in the confusion matrix.
-         * The number of values each row is equal to the size of
-         * annotatin_spec_id.
+         * The number of values each row has (i.e. the length of the row) is equal
+         * to the length of the annotation_spec_id field.
          * 
* * repeated int32 example_count = 1; @@ -2704,8 +4911,8 @@ public java.util.List getExampleCountList() { * *
          * Output only. Value of the specific cell in the confusion matrix.
-         * The number of values each row is equal to the size of
-         * annotatin_spec_id.
+         * The number of values each row has (i.e. the length of the row) is equal
+         * to the length of the annotation_spec_id field.
          * 
* * repeated int32 example_count = 1; @@ -2718,8 +4925,8 @@ public int getExampleCountCount() { * *
          * Output only. Value of the specific cell in the confusion matrix.
-         * The number of values each row is equal to the size of
-         * annotatin_spec_id.
+         * The number of values each row has (i.e. the length of the row) is equal
+         * to the length of the annotation_spec_id field.
          * 
* * repeated int32 example_count = 1; @@ -3161,8 +5368,8 @@ private void ensureExampleCountIsMutable() { * *
            * Output only. Value of the specific cell in the confusion matrix.
-           * The number of values each row is equal to the size of
-           * annotatin_spec_id.
+           * The number of values each row has (i.e. the length of the row) is equal
+           * to the length of the annotation_spec_id field.
            * 
* * repeated int32 example_count = 1; @@ -3177,8 +5384,8 @@ public java.util.List getExampleCountList() { * *
            * Output only. Value of the specific cell in the confusion matrix.
-           * The number of values each row is equal to the size of
-           * annotatin_spec_id.
+           * The number of values each row has (i.e. the length of the row) is equal
+           * to the length of the annotation_spec_id field.
            * 
* * repeated int32 example_count = 1; @@ -3191,8 +5398,8 @@ public int getExampleCountCount() { * *
            * Output only. Value of the specific cell in the confusion matrix.
-           * The number of values each row is equal to the size of
-           * annotatin_spec_id.
+           * The number of values each row has (i.e. the length of the row) is equal
+           * to the length of the annotation_spec_id field.
            * 
* * repeated int32 example_count = 1; @@ -3205,8 +5412,8 @@ public int getExampleCount(int index) { * *
            * Output only. Value of the specific cell in the confusion matrix.
-           * The number of values each row is equal to the size of
-           * annotatin_spec_id.
+           * The number of values each row has (i.e. the length of the row) is equal
+           * to the length of the annotation_spec_id field.
            * 
* * repeated int32 example_count = 1; @@ -3222,8 +5429,8 @@ public Builder setExampleCount(int index, int value) { * *
            * Output only. Value of the specific cell in the confusion matrix.
-           * The number of values each row is equal to the size of
-           * annotatin_spec_id.
+           * The number of values each row has (i.e. the length of the row) is equal
+           * to the length of the annotation_spec_id field.
            * 
* * repeated int32 example_count = 1; @@ -3239,8 +5446,8 @@ public Builder addExampleCount(int value) { * *
            * Output only. Value of the specific cell in the confusion matrix.
-           * The number of values each row is equal to the size of
-           * annotatin_spec_id.
+           * The number of values each row has (i.e. the length of the row) is equal
+           * to the length of the annotation_spec_id field.
            * 
* * repeated int32 example_count = 1; @@ -3257,8 +5464,8 @@ public Builder addAllExampleCount( * *
            * Output only. Value of the specific cell in the confusion matrix.
-           * The number of values each row is equal to the size of
-           * annotatin_spec_id.
+           * The number of values each row has (i.e. the length of the row) is equal
+           * to the length of the annotation_spec_id field.
            * 
* * repeated int32 example_count = 1; @@ -4675,7 +6882,8 @@ public com.google.protobuf.Parser getParserForType() { * * *
-     * Output only. The Area under precision recall curve metric.
+     * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
+     * for the overall evaluation.
      * 
* * float au_prc = 1; @@ -4690,15 +6898,49 @@ public float getAuPrc() { * * *
-     * Output only. The Area under precision recall curve metric based on priors.
+     * Output only. The Area Under Precision-Recall Curve metric based on priors.
+     * Micro-averaged for the overall evaluation.
+     * Deprecated.
      * 
* - * float base_au_prc = 2; + * float base_au_prc = 2 [deprecated = true]; */ + @java.lang.Deprecated public float getBaseAuPrc() { return baseAuPrc_; } + public static final int AU_ROC_FIELD_NUMBER = 6; + private float auRoc_; + /** + * + * + *
+     * Output only. The Area Under Receiver Operating Characteristic curve metric.
+     * Micro-averaged for the overall evaluation.
+     * 
+ * + * float au_roc = 6; + */ + public float getAuRoc() { + return auRoc_; + } + + public static final int LOG_LOSS_FIELD_NUMBER = 7; + private float logLoss_; + /** + * + * + *
+     * Output only. The Log Loss metric.
+     * 
+ * + * float log_loss = 7; + */ + public float getLogLoss() { + return logLoss_; + } + public static final int CONFIDENCE_METRICS_ENTRY_FIELD_NUMBER = 3; private java.util.List< com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics @@ -4708,8 +6950,12 @@ public float getBaseAuPrc() { * * *
-     * Output only. Metrics that have confidence thresholds.
-     * Precision-recall curve can be derived from it.
+     * Output only. Metrics for each confidence_threshold in
+     * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+     * position_threshold = INT32_MAX_VALUE.
+     * Precision-recall curve is derived from them.
+     * The above metrics may also be supplied for additional values of
+     * position_threshold.
      * 
* * @@ -4726,8 +6972,12 @@ public float getBaseAuPrc() { * * *
-     * Output only. Metrics that have confidence thresholds.
-     * Precision-recall curve can be derived from it.
+     * Output only. Metrics for each confidence_threshold in
+     * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+     * position_threshold = INT32_MAX_VALUE.
+     * Precision-recall curve is derived from them.
+     * The above metrics may also be supplied for additional values of
+     * position_threshold.
      * 
* * @@ -4745,8 +6995,12 @@ public float getBaseAuPrc() { * * *
-     * Output only. Metrics that have confidence thresholds.
-     * Precision-recall curve can be derived from it.
+     * Output only. Metrics for each confidence_threshold in
+     * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+     * position_threshold = INT32_MAX_VALUE.
+     * Precision-recall curve is derived from them.
+     * The above metrics may also be supplied for additional values of
+     * position_threshold.
      * 
* * @@ -4760,8 +7014,12 @@ public int getConfidenceMetricsEntryCount() { * * *
-     * Output only. Metrics that have confidence thresholds.
-     * Precision-recall curve can be derived from it.
+     * Output only. Metrics for each confidence_threshold in
+     * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+     * position_threshold = INT32_MAX_VALUE.
+     * Precision-recall curve is derived from them.
+     * The above metrics may also be supplied for additional values of
+     * position_threshold.
      * 
* * @@ -4777,8 +7035,12 @@ public int getConfidenceMetricsEntryCount() { * * *
-     * Output only. Metrics that have confidence thresholds.
-     * Precision-recall curve can be derived from it.
+     * Output only. Metrics for each confidence_threshold in
+     * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+     * position_threshold = INT32_MAX_VALUE.
+     * Precision-recall curve is derived from them.
+     * The above metrics may also be supplied for additional values of
+     * position_threshold.
      * 
* * @@ -4934,6 +7196,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < annotationSpecId_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, annotationSpecId_.getRaw(i)); } + if (auRoc_ != 0F) { + output.writeFloat(6, auRoc_); + } + if (logLoss_ != 0F) { + output.writeFloat(7, logLoss_); + } unknownFields.writeTo(output); } @@ -4965,6 +7233,12 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAnnotationSpecIdList().size(); } + if (auRoc_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, auRoc_); + } + if (logLoss_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, logLoss_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -4987,6 +7261,10 @@ public boolean equals(final java.lang.Object obj) { != java.lang.Float.floatToIntBits(other.getAuPrc())) return false; if (java.lang.Float.floatToIntBits(getBaseAuPrc()) != java.lang.Float.floatToIntBits(other.getBaseAuPrc())) return false; + if (java.lang.Float.floatToIntBits(getAuRoc()) + != java.lang.Float.floatToIntBits(other.getAuRoc())) return false; + if (java.lang.Float.floatToIntBits(getLogLoss()) + != java.lang.Float.floatToIntBits(other.getLogLoss())) return false; if (!getConfidenceMetricsEntryList().equals(other.getConfidenceMetricsEntryList())) return false; if (hasConfusionMatrix() != other.hasConfusionMatrix()) return false; @@ -5009,6 +7287,10 @@ public int hashCode() { hash = (53 * hash) + java.lang.Float.floatToIntBits(getAuPrc()); hash = (37 * hash) + BASE_AU_PRC_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getBaseAuPrc()); + hash = (37 * hash) + AU_ROC_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getAuRoc()); + hash = (37 * hash) + LOG_LOSS_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getLogLoss()); if (getConfidenceMetricsEntryCount() > 0) { hash = (37 * hash) + CONFIDENCE_METRICS_ENTRY_FIELD_NUMBER; hash = (53 * hash) + getConfidenceMetricsEntryList().hashCode(); @@ -5147,7 +7429,8 @@ protected Builder newBuilderForType( * *
      * Model evaluation metrics for classification problems.
-     * Visible only to v1beta1
+     * Note: For Video Classification this metrics only describe quality of the
+     * Video Classification predictions of "segment_classification" type.
      * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ClassificationEvaluationMetrics} @@ -5199,9 +7482,13 @@ public Builder clear() { baseAuPrc_ = 0F; + auRoc_ = 0F; + + logLoss_ = 0F; + if (confidenceMetricsEntryBuilder_ == null) { confidenceMetricsEntry_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); } else { confidenceMetricsEntryBuilder_.clear(); } @@ -5212,7 +7499,7 @@ public Builder clear() { confusionMatrixBuilder_ = null; } annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000040); return this; } @@ -5250,11 +7537,13 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { int to_bitField0_ = 0; result.auPrc_ = auPrc_; result.baseAuPrc_ = baseAuPrc_; + result.auRoc_ = auRoc_; + result.logLoss_ = logLoss_; if (confidenceMetricsEntryBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { confidenceMetricsEntry_ = java.util.Collections.unmodifiableList(confidenceMetricsEntry_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); } result.confidenceMetricsEntry_ = confidenceMetricsEntry_; } else { @@ -5265,9 +7554,9 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } else { result.confusionMatrix_ = confusionMatrixBuilder_.build(); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { annotationSpecId_ = annotationSpecId_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000040); } result.annotationSpecId_ = annotationSpecId_; result.bitField0_ = to_bitField0_; @@ -5336,11 +7625,17 @@ public Builder mergeFrom( if (other.getBaseAuPrc() != 0F) { setBaseAuPrc(other.getBaseAuPrc()); } + if (other.getAuRoc() != 0F) { + setAuRoc(other.getAuRoc()); + } + if (other.getLogLoss() != 0F) { + setLogLoss(other.getLogLoss()); + } if (confidenceMetricsEntryBuilder_ == null) { if (!other.confidenceMetricsEntry_.isEmpty()) { if (confidenceMetricsEntry_.isEmpty()) { confidenceMetricsEntry_ = other.confidenceMetricsEntry_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureConfidenceMetricsEntryIsMutable(); confidenceMetricsEntry_.addAll(other.confidenceMetricsEntry_); @@ -5353,7 +7648,7 @@ public Builder mergeFrom( confidenceMetricsEntryBuilder_.dispose(); confidenceMetricsEntryBuilder_ = null; confidenceMetricsEntry_ = other.confidenceMetricsEntry_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); confidenceMetricsEntryBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConfidenceMetricsEntryFieldBuilder() @@ -5369,7 +7664,7 @@ public Builder mergeFrom( if (!other.annotationSpecId_.isEmpty()) { if (annotationSpecId_.isEmpty()) { annotationSpecId_ = other.annotationSpecId_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000040); } else { ensureAnnotationSpecIdIsMutable(); annotationSpecId_.addAll(other.annotationSpecId_); @@ -5415,7 +7710,8 @@ public Builder mergeFrom( * * *
-       * Output only. The Area under precision recall curve metric.
+       * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
+       * for the overall evaluation.
        * 
* * float au_prc = 1; @@ -5427,7 +7723,8 @@ public float getAuPrc() { * * *
-       * Output only. The Area under precision recall curve metric.
+       * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
+       * for the overall evaluation.
        * 
* * float au_prc = 1; @@ -5442,7 +7739,8 @@ public Builder setAuPrc(float value) { * * *
-       * Output only. The Area under precision recall curve metric.
+       * Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
+       * for the overall evaluation.
        * 
* * float au_prc = 1; @@ -5459,11 +7757,14 @@ public Builder clearAuPrc() { * * *
-       * Output only. The Area under precision recall curve metric based on priors.
+       * Output only. The Area Under Precision-Recall Curve metric based on priors.
+       * Micro-averaged for the overall evaluation.
+       * Deprecated.
        * 
* - * float base_au_prc = 2; + * float base_au_prc = 2 [deprecated = true]; */ + @java.lang.Deprecated public float getBaseAuPrc() { return baseAuPrc_; } @@ -5471,11 +7772,14 @@ public float getBaseAuPrc() { * * *
-       * Output only. The Area under precision recall curve metric based on priors.
+       * Output only. The Area Under Precision-Recall Curve metric based on priors.
+       * Micro-averaged for the overall evaluation.
+       * Deprecated.
        * 
* - * float base_au_prc = 2; + * float base_au_prc = 2 [deprecated = true]; */ + @java.lang.Deprecated public Builder setBaseAuPrc(float value) { baseAuPrc_ = value; @@ -5486,11 +7790,14 @@ public Builder setBaseAuPrc(float value) { * * *
-       * Output only. The Area under precision recall curve metric based on priors.
+       * Output only. The Area Under Precision-Recall Curve metric based on priors.
+       * Micro-averaged for the overall evaluation.
+       * Deprecated.
        * 
* - * float base_au_prc = 2; + * float base_au_prc = 2 [deprecated = true]; */ + @java.lang.Deprecated public Builder clearBaseAuPrc() { baseAuPrc_ = 0F; @@ -5498,19 +7805,110 @@ public Builder clearBaseAuPrc() { return this; } + private float auRoc_; + /** + * + * + *
+       * Output only. The Area Under Receiver Operating Characteristic curve metric.
+       * Micro-averaged for the overall evaluation.
+       * 
+ * + * float au_roc = 6; + */ + public float getAuRoc() { + return auRoc_; + } + /** + * + * + *
+       * Output only. The Area Under Receiver Operating Characteristic curve metric.
+       * Micro-averaged for the overall evaluation.
+       * 
+ * + * float au_roc = 6; + */ + public Builder setAuRoc(float value) { + + auRoc_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The Area Under Receiver Operating Characteristic curve metric.
+       * Micro-averaged for the overall evaluation.
+       * 
+ * + * float au_roc = 6; + */ + public Builder clearAuRoc() { + + auRoc_ = 0F; + onChanged(); + return this; + } + + private float logLoss_; + /** + * + * + *
+       * Output only. The Log Loss metric.
+       * 
+ * + * float log_loss = 7; + */ + public float getLogLoss() { + return logLoss_; + } + /** + * + * + *
+       * Output only. The Log Loss metric.
+       * 
+ * + * float log_loss = 7; + */ + public Builder setLogLoss(float value) { + + logLoss_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The Log Loss metric.
+       * 
+ * + * float log_loss = 7; + */ + public Builder clearLogLoss() { + + logLoss_ = 0F; + onChanged(); + return this; + } + private java.util.List< com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics .ConfidenceMetricsEntry> confidenceMetricsEntry_ = java.util.Collections.emptyList(); private void ensureConfidenceMetricsEntryIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { confidenceMetricsEntry_ = new java.util.ArrayList< com.google.cloud.automl.v1beta1.ClassificationProto .ClassificationEvaluationMetrics.ConfidenceMetricsEntry>( confidenceMetricsEntry_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; } } @@ -5527,8 +7925,12 @@ private void ensureConfidenceMetricsEntryIsMutable() { * * *
-       * Output only. Metrics that have confidence thresholds.
-       * Precision-recall curve can be derived from it.
+       * Output only. Metrics for each confidence_threshold in
+       * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+       * position_threshold = INT32_MAX_VALUE.
+       * Precision-recall curve is derived from them.
+       * The above metrics may also be supplied for additional values of
+       * position_threshold.
        * 
* * @@ -5549,8 +7951,12 @@ private void ensureConfidenceMetricsEntryIsMutable() { * * *
-       * Output only. Metrics that have confidence thresholds.
-       * Precision-recall curve can be derived from it.
+       * Output only. Metrics for each confidence_threshold in
+       * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+       * position_threshold = INT32_MAX_VALUE.
+       * Precision-recall curve is derived from them.
+       * The above metrics may also be supplied for additional values of
+       * position_threshold.
        * 
* * @@ -5568,8 +7974,12 @@ public int getConfidenceMetricsEntryCount() { * * *
-       * Output only. Metrics that have confidence thresholds.
-       * Precision-recall curve can be derived from it.
+       * Output only. Metrics for each confidence_threshold in
+       * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+       * position_threshold = INT32_MAX_VALUE.
+       * Precision-recall curve is derived from them.
+       * The above metrics may also be supplied for additional values of
+       * position_threshold.
        * 
* * @@ -5589,8 +7999,12 @@ public int getConfidenceMetricsEntryCount() { * * *
-       * Output only. Metrics that have confidence thresholds.
-       * Precision-recall curve can be derived from it.
+       * Output only. Metrics for each confidence_threshold in
+       * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+       * position_threshold = INT32_MAX_VALUE.
+       * Precision-recall curve is derived from them.
+       * The above metrics may also be supplied for additional values of
+       * position_threshold.
        * 
* * @@ -5618,8 +8032,12 @@ public Builder setConfidenceMetricsEntry( * * *
-       * Output only. Metrics that have confidence thresholds.
-       * Precision-recall curve can be derived from it.
+       * Output only. Metrics for each confidence_threshold in
+       * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+       * position_threshold = INT32_MAX_VALUE.
+       * Precision-recall curve is derived from them.
+       * The above metrics may also be supplied for additional values of
+       * position_threshold.
        * 
* * @@ -5644,8 +8062,12 @@ public Builder setConfidenceMetricsEntry( * * *
-       * Output only. Metrics that have confidence thresholds.
-       * Precision-recall curve can be derived from it.
+       * Output only. Metrics for each confidence_threshold in
+       * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+       * position_threshold = INT32_MAX_VALUE.
+       * Precision-recall curve is derived from them.
+       * The above metrics may also be supplied for additional values of
+       * position_threshold.
        * 
* * @@ -5672,8 +8094,12 @@ public Builder addConfidenceMetricsEntry( * * *
-       * Output only. Metrics that have confidence thresholds.
-       * Precision-recall curve can be derived from it.
+       * Output only. Metrics for each confidence_threshold in
+       * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+       * position_threshold = INT32_MAX_VALUE.
+       * Precision-recall curve is derived from them.
+       * The above metrics may also be supplied for additional values of
+       * position_threshold.
        * 
* * @@ -5701,8 +8127,12 @@ public Builder addConfidenceMetricsEntry( * * *
-       * Output only. Metrics that have confidence thresholds.
-       * Precision-recall curve can be derived from it.
+       * Output only. Metrics for each confidence_threshold in
+       * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+       * position_threshold = INT32_MAX_VALUE.
+       * Precision-recall curve is derived from them.
+       * The above metrics may also be supplied for additional values of
+       * position_threshold.
        * 
* * @@ -5726,8 +8156,12 @@ public Builder addConfidenceMetricsEntry( * * *
-       * Output only. Metrics that have confidence thresholds.
-       * Precision-recall curve can be derived from it.
+       * Output only. Metrics for each confidence_threshold in
+       * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+       * position_threshold = INT32_MAX_VALUE.
+       * Precision-recall curve is derived from them.
+       * The above metrics may also be supplied for additional values of
+       * position_threshold.
        * 
* * @@ -5752,8 +8186,12 @@ public Builder addConfidenceMetricsEntry( * * *
-       * Output only. Metrics that have confidence thresholds.
-       * Precision-recall curve can be derived from it.
+       * Output only. Metrics for each confidence_threshold in
+       * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+       * position_threshold = INT32_MAX_VALUE.
+       * Precision-recall curve is derived from them.
+       * The above metrics may also be supplied for additional values of
+       * position_threshold.
        * 
* * @@ -5779,8 +8217,12 @@ public Builder addAllConfidenceMetricsEntry( * * *
-       * Output only. Metrics that have confidence thresholds.
-       * Precision-recall curve can be derived from it.
+       * Output only. Metrics for each confidence_threshold in
+       * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+       * position_threshold = INT32_MAX_VALUE.
+       * Precision-recall curve is derived from them.
+       * The above metrics may also be supplied for additional values of
+       * position_threshold.
        * 
* * @@ -5790,7 +8232,7 @@ public Builder addAllConfidenceMetricsEntry( public Builder clearConfidenceMetricsEntry() { if (confidenceMetricsEntryBuilder_ == null) { confidenceMetricsEntry_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { confidenceMetricsEntryBuilder_.clear(); @@ -5801,8 +8243,12 @@ public Builder clearConfidenceMetricsEntry() { * * *
-       * Output only. Metrics that have confidence thresholds.
-       * Precision-recall curve can be derived from it.
+       * Output only. Metrics for each confidence_threshold in
+       * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+       * position_threshold = INT32_MAX_VALUE.
+       * Precision-recall curve is derived from them.
+       * The above metrics may also be supplied for additional values of
+       * position_threshold.
        * 
* * @@ -5823,8 +8269,12 @@ public Builder removeConfidenceMetricsEntry(int index) { * * *
-       * Output only. Metrics that have confidence thresholds.
-       * Precision-recall curve can be derived from it.
+       * Output only. Metrics for each confidence_threshold in
+       * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+       * position_threshold = INT32_MAX_VALUE.
+       * Precision-recall curve is derived from them.
+       * The above metrics may also be supplied for additional values of
+       * position_threshold.
        * 
* * @@ -5840,8 +8290,12 @@ public Builder removeConfidenceMetricsEntry(int index) { * * *
-       * Output only. Metrics that have confidence thresholds.
-       * Precision-recall curve can be derived from it.
+       * Output only. Metrics for each confidence_threshold in
+       * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+       * position_threshold = INT32_MAX_VALUE.
+       * Precision-recall curve is derived from them.
+       * The above metrics may also be supplied for additional values of
+       * position_threshold.
        * 
* * @@ -5861,8 +8315,12 @@ public Builder removeConfidenceMetricsEntry(int index) { * * *
-       * Output only. Metrics that have confidence thresholds.
-       * Precision-recall curve can be derived from it.
+       * Output only. Metrics for each confidence_threshold in
+       * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+       * position_threshold = INT32_MAX_VALUE.
+       * Precision-recall curve is derived from them.
+       * The above metrics may also be supplied for additional values of
+       * position_threshold.
        * 
* * @@ -5884,8 +8342,12 @@ public Builder removeConfidenceMetricsEntry(int index) { * * *
-       * Output only. Metrics that have confidence thresholds.
-       * Precision-recall curve can be derived from it.
+       * Output only. Metrics for each confidence_threshold in
+       * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+       * position_threshold = INT32_MAX_VALUE.
+       * Precision-recall curve is derived from them.
+       * The above metrics may also be supplied for additional values of
+       * position_threshold.
        * 
* * @@ -5904,8 +8366,12 @@ public Builder removeConfidenceMetricsEntry(int index) { * * *
-       * Output only. Metrics that have confidence thresholds.
-       * Precision-recall curve can be derived from it.
+       * Output only. Metrics for each confidence_threshold in
+       * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+       * position_threshold = INT32_MAX_VALUE.
+       * Precision-recall curve is derived from them.
+       * The above metrics may also be supplied for additional values of
+       * position_threshold.
        * 
* * @@ -5925,8 +8391,12 @@ public Builder removeConfidenceMetricsEntry(int index) { * * *
-       * Output only. Metrics that have confidence thresholds.
-       * Precision-recall curve can be derived from it.
+       * Output only. Metrics for each confidence_threshold in
+       * 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
+       * position_threshold = INT32_MAX_VALUE.
+       * Precision-recall curve is derived from them.
+       * The above metrics may also be supplied for additional values of
+       * position_threshold.
        * 
* * @@ -5958,7 +8428,7 @@ public Builder removeConfidenceMetricsEntry(int index) { com.google.cloud.automl.v1beta1.ClassificationProto .ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder>( confidenceMetricsEntry_, - ((bitField0_ & 0x00000004) != 0), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); confidenceMetricsEntry_ = null; @@ -6225,9 +8695,9 @@ public Builder clearConfusionMatrix() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAnnotationSpecIdIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!((bitField0_ & 0x00000040) != 0)) { annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(annotationSpecId_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; } } /** @@ -6340,7 +8810,7 @@ public Builder addAllAnnotationSpecId(java.lang.Iterable value */ public Builder clearAnnotationSpecId() { annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -6426,6 +8896,10 @@ public com.google.protobuf.Parser getParserForT internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_VideoClassificationAnnotation_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_VideoClassificationAnnotation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -6453,31 +8927,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n0google/cloud/automl/v1beta1/classifica" + "tion.proto\022\033google.cloud.automl.v1beta1\032" - + "\034google/api/annotations.proto\")\n\030Classif" - + "icationAnnotation\022\r\n\005score\030\001 \001(\002\"\235\005\n\037Cla" - + "ssificationEvaluationMetrics\022\016\n\006au_prc\030\001" - + " \001(\002\022\023\n\013base_au_prc\030\002 \001(\002\022u\n\030confidence_" - + "metrics_entry\030\003 \003(\0132S.google.cloud.autom" - + "l.v1beta1.ClassificationEvaluationMetric" - + "s.ConfidenceMetricsEntry\022f\n\020confusion_ma" - + "trix\030\004 \001(\0132L.google.cloud.automl.v1beta1" - + ".ClassificationEvaluationMetrics.Confusi" - + "onMatrix\022\032\n\022annotation_spec_id\030\005 \003(\t\032\254\001\n" - + "\026ConfidenceMetricsEntry\022\034\n\024confidence_th" - + "reshold\030\001 \001(\002\022\016\n\006recall\030\002 \001(\002\022\021\n\tprecisi" - + "on\030\003 \001(\002\022\020\n\010f1_score\030\004 \001(\002\022\022\n\nrecall_at1" - + "\030\005 \001(\002\022\025\n\rprecision_at1\030\006 \001(\002\022\024\n\014f1_scor" - + "e_at1\030\007 \001(\002\032\252\001\n\017ConfusionMatrix\022\032\n\022annot" - + "ation_spec_id\030\001 \003(\t\022]\n\003row\030\002 \003(\0132P.googl" - + "e.cloud.automl.v1beta1.ClassificationEva" - + "luationMetrics.ConfusionMatrix.Row\032\034\n\003Ro" - + "w\022\025\n\rexample_count\030\001 \003(\005*Y\n\022Classificati" - + "onType\022#\n\037CLASSIFICATION_TYPE_UNSPECIFIE" - + "D\020\000\022\016\n\nMULTICLASS\020\001\022\016\n\nMULTILABEL\020\002B\227\001\n\037" - + "com.google.cloud.automl.v1beta1B\023Classif" - + "icationProtoZAgoogle.golang.org/genproto" - + "/googleapis/cloud/automl/v1beta1;automl\312" - + "\002\033Google\\Cloud\\AutoMl\\V1beta1b\006proto3" + + "\034google/api/annotations.proto\032*google/cl" + + "oud/automl/v1beta1/temporal.proto\")\n\030Cla" + + "ssificationAnnotation\022\r\n\005score\030\001 \001(\002\"\307\001\n" + + "\035VideoClassificationAnnotation\022\014\n\004type\030\001" + + " \001(\t\022X\n\031classification_annotation\030\002 \001(\0132" + + "5.google.cloud.automl.v1beta1.Classifica" + + "tionAnnotation\022>\n\014time_segment\030\003 \001(\0132(.g" + + "oogle.cloud.automl.v1beta1.TimeSegment\"\223" + + "\007\n\037ClassificationEvaluationMetrics\022\016\n\006au" + + "_prc\030\001 \001(\002\022\027\n\013base_au_prc\030\002 \001(\002B\002\030\001\022\016\n\006a" + + "u_roc\030\006 \001(\002\022\020\n\010log_loss\030\007 \001(\002\022u\n\030confide" + + "nce_metrics_entry\030\003 \003(\0132S.google.cloud.a" + + "utoml.v1beta1.ClassificationEvaluationMe" + + "trics.ConfidenceMetricsEntry\022f\n\020confusio" + + "n_matrix\030\004 \001(\0132L.google.cloud.automl.v1b" + + "eta1.ClassificationEvaluationMetrics.Con" + + "fusionMatrix\022\032\n\022annotation_spec_id\030\005 \003(\t" + + "\032\374\002\n\026ConfidenceMetricsEntry\022\034\n\024confidenc" + + "e_threshold\030\001 \001(\002\022\032\n\022position_threshold\030" + + "\016 \001(\005\022\016\n\006recall\030\002 \001(\002\022\021\n\tprecision\030\003 \001(\002" + + "\022\033\n\023false_positive_rate\030\010 \001(\002\022\020\n\010f1_scor" + + "e\030\004 \001(\002\022\022\n\nrecall_at1\030\005 \001(\002\022\025\n\rprecision" + + "_at1\030\006 \001(\002\022\037\n\027false_positive_rate_at1\030\t " + + "\001(\002\022\024\n\014f1_score_at1\030\007 \001(\002\022\033\n\023true_positi" + + "ve_count\030\n \001(\003\022\034\n\024false_positive_count\030\013" + + " \001(\003\022\034\n\024false_negative_count\030\014 \001(\003\022\033\n\023tr" + + "ue_negative_count\030\r \001(\003\032\252\001\n\017ConfusionMat" + + "rix\022\032\n\022annotation_spec_id\030\001 \003(\t\022]\n\003row\030\002" + + " \003(\0132P.google.cloud.automl.v1beta1.Class" + + "ificationEvaluationMetrics.ConfusionMatr" + + "ix.Row\032\034\n\003Row\022\025\n\rexample_count\030\001 \003(\005*Y\n\022" + + "ClassificationType\022#\n\037CLASSIFICATION_TYP" + + "E_UNSPECIFIED\020\000\022\016\n\nMULTICLASS\020\001\022\016\n\nMULTI" + + "LABEL\020\002B\227\001\n\037com.google.cloud.automl.v1be" + + "ta1B\023ClassificationProtoZAgoogle.golang." + + "org/genproto/googleapis/cloud/automl/v1b" + + "eta1;automl\312\002\033Google\\Cloud\\AutoMl\\V1beta" + + "1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -6491,6 +8978,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.automl.v1beta1.Temporal.getDescriptor(), }, assigner); internal_static_google_cloud_automl_v1beta1_ClassificationAnnotation_descriptor = @@ -6501,13 +8989,27 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Score", }); - internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor = + internal_static_google_cloud_automl_v1beta1_VideoClassificationAnnotation_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_VideoClassificationAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_VideoClassificationAnnotation_descriptor, + new java.lang.String[] { + "Type", "ClassificationAnnotation", "TimeSegment", + }); + internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor, new java.lang.String[] { - "AuPrc", "BaseAuPrc", "ConfidenceMetricsEntry", "ConfusionMatrix", "AnnotationSpecId", + "AuPrc", + "BaseAuPrc", + "AuRoc", + "LogLoss", + "ConfidenceMetricsEntry", + "ConfusionMatrix", + "AnnotationSpecId", }); internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor = internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor @@ -6518,12 +9020,19 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfidenceMetricsEntry_descriptor, new java.lang.String[] { "ConfidenceThreshold", + "PositionThreshold", "Recall", "Precision", + "FalsePositiveRate", "F1Score", "RecallAt1", "PrecisionAt1", + "FalsePositiveRateAt1", "F1ScoreAt1", + "TruePositiveCount", + "FalsePositiveCount", + "FalseNegativeCount", + "TrueNegativeCount", }); internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_ConfusionMatrix_descriptor = internal_static_google_cloud_automl_v1beta1_ClassificationEvaluationMetrics_descriptor @@ -6546,6 +9055,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "ExampleCount", }); com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.automl.v1beta1.Temporal.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpec.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpec.java new file mode 100644 index 000000000000..f780e6b95f11 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpec.java @@ -0,0 +1,3157 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/column_spec.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * A representation of a column in a relational table. When listing them, column specs are returned in the same order in which they were
+ * given on import .
+ * Used by:
+ *   *   Tables
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ColumnSpec} + */ +public final class ColumnSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ColumnSpec) + ColumnSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use ColumnSpec.newBuilder() to construct. + private ColumnSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ColumnSpec() { + name_ = ""; + displayName_ = ""; + topCorrelatedColumns_ = java.util.Collections.emptyList(); + etag_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ColumnSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + com.google.cloud.automl.v1beta1.DataType.Builder subBuilder = null; + if (dataType_ != null) { + subBuilder = dataType_.toBuilder(); + } + dataType_ = + input.readMessage( + com.google.cloud.automl.v1beta1.DataType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataType_); + dataType_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 34: + { + com.google.cloud.automl.v1beta1.DataStats.Builder subBuilder = null; + if (dataStats_ != null) { + subBuilder = dataStats_.toBuilder(); + } + dataStats_ = + input.readMessage( + com.google.cloud.automl.v1beta1.DataStats.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataStats_); + dataStats_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + topCorrelatedColumns_ = + new java.util.ArrayList< + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn>(); + mutable_bitField0_ |= 0x00000010; + } + topCorrelatedColumns_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.parser(), + extensionRegistry)); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000010) != 0)) { + topCorrelatedColumns_ = java.util.Collections.unmodifiableList(topCorrelatedColumns_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ColumnSpecOuterClass + .internal_static_google_cloud_automl_v1beta1_ColumnSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.ColumnSpecOuterClass + .internal_static_google_cloud_automl_v1beta1_ColumnSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ColumnSpec.class, + com.google.cloud.automl.v1beta1.ColumnSpec.Builder.class); + } + + public interface CorrelatedColumnOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The column_spec_id of the correlated column, which belongs to the same
+     * table as the in-context column.
+     * 
+ * + * string column_spec_id = 1; + */ + java.lang.String getColumnSpecId(); + /** + * + * + *
+     * The column_spec_id of the correlated column, which belongs to the same
+     * table as the in-context column.
+     * 
+ * + * string column_spec_id = 1; + */ + com.google.protobuf.ByteString getColumnSpecIdBytes(); + + /** + * + * + *
+     * Correlation between this and the in-context column.
+     * 
+ * + * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; + */ + boolean hasCorrelationStats(); + /** + * + * + *
+     * Correlation between this and the in-context column.
+     * 
+ * + * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; + */ + com.google.cloud.automl.v1beta1.CorrelationStats getCorrelationStats(); + /** + * + * + *
+     * Correlation between this and the in-context column.
+     * 
+ * + * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; + */ + com.google.cloud.automl.v1beta1.CorrelationStatsOrBuilder getCorrelationStatsOrBuilder(); + } + /** + * + * + *
+   * Identifies the table's column, and its correlation with the column this
+   * ColumnSpec describes.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn} + */ + public static final class CorrelatedColumn extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn) + CorrelatedColumnOrBuilder { + private static final long serialVersionUID = 0L; + // Use CorrelatedColumn.newBuilder() to construct. + private CorrelatedColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CorrelatedColumn() { + columnSpecId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CorrelatedColumn( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + columnSpecId_ = s; + break; + } + case 18: + { + com.google.cloud.automl.v1beta1.CorrelationStats.Builder subBuilder = null; + if (correlationStats_ != null) { + subBuilder = correlationStats_.toBuilder(); + } + correlationStats_ = + input.readMessage( + com.google.cloud.automl.v1beta1.CorrelationStats.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(correlationStats_); + correlationStats_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ColumnSpecOuterClass + .internal_static_google_cloud_automl_v1beta1_ColumnSpec_CorrelatedColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.ColumnSpecOuterClass + .internal_static_google_cloud_automl_v1beta1_ColumnSpec_CorrelatedColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.class, + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder.class); + } + + public static final int COLUMN_SPEC_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object columnSpecId_; + /** + * + * + *
+     * The column_spec_id of the correlated column, which belongs to the same
+     * table as the in-context column.
+     * 
+ * + * string column_spec_id = 1; + */ + public java.lang.String getColumnSpecId() { + java.lang.Object ref = columnSpecId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + columnSpecId_ = s; + return s; + } + } + /** + * + * + *
+     * The column_spec_id of the correlated column, which belongs to the same
+     * table as the in-context column.
+     * 
+ * + * string column_spec_id = 1; + */ + public com.google.protobuf.ByteString getColumnSpecIdBytes() { + java.lang.Object ref = columnSpecId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + columnSpecId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CORRELATION_STATS_FIELD_NUMBER = 2; + private com.google.cloud.automl.v1beta1.CorrelationStats correlationStats_; + /** + * + * + *
+     * Correlation between this and the in-context column.
+     * 
+ * + * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; + */ + public boolean hasCorrelationStats() { + return correlationStats_ != null; + } + /** + * + * + *
+     * Correlation between this and the in-context column.
+     * 
+ * + * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; + */ + public com.google.cloud.automl.v1beta1.CorrelationStats getCorrelationStats() { + return correlationStats_ == null + ? com.google.cloud.automl.v1beta1.CorrelationStats.getDefaultInstance() + : correlationStats_; + } + /** + * + * + *
+     * Correlation between this and the in-context column.
+     * 
+ * + * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; + */ + public com.google.cloud.automl.v1beta1.CorrelationStatsOrBuilder + getCorrelationStatsOrBuilder() { + return getCorrelationStats(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getColumnSpecIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnSpecId_); + } + if (correlationStats_ != null) { + output.writeMessage(2, getCorrelationStats()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getColumnSpecIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnSpecId_); + } + if (correlationStats_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCorrelationStats()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn other = + (com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn) obj; + + if (!getColumnSpecId().equals(other.getColumnSpecId())) return false; + if (hasCorrelationStats() != other.hasCorrelationStats()) return false; + if (hasCorrelationStats()) { + if (!getCorrelationStats().equals(other.getCorrelationStats())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COLUMN_SPEC_ID_FIELD_NUMBER; + hash = (53 * hash) + getColumnSpecId().hashCode(); + if (hasCorrelationStats()) { + hash = (37 * hash) + CORRELATION_STATS_FIELD_NUMBER; + hash = (53 * hash) + getCorrelationStats().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Identifies the table's column, and its correlation with the column this
+     * ColumnSpec describes.
+     * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn) + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ColumnSpecOuterClass + .internal_static_google_cloud_automl_v1beta1_ColumnSpec_CorrelatedColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.ColumnSpecOuterClass + .internal_static_google_cloud_automl_v1beta1_ColumnSpec_CorrelatedColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.class, + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + columnSpecId_ = ""; + + if (correlationStatsBuilder_ == null) { + correlationStats_ = null; + } else { + correlationStats_ = null; + correlationStatsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ColumnSpecOuterClass + .internal_static_google_cloud_automl_v1beta1_ColumnSpec_CorrelatedColumn_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn build() { + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn buildPartial() { + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn result = + new com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn(this); + result.columnSpecId_ = columnSpecId_; + if (correlationStatsBuilder_ == null) { + result.correlationStats_ = correlationStats_; + } else { + result.correlationStats_ = correlationStatsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn) { + return mergeFrom((com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn other) { + if (other + == com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.getDefaultInstance()) + return this; + if (!other.getColumnSpecId().isEmpty()) { + columnSpecId_ = other.columnSpecId_; + onChanged(); + } + if (other.hasCorrelationStats()) { + mergeCorrelationStats(other.getCorrelationStats()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object columnSpecId_ = ""; + /** + * + * + *
+       * The column_spec_id of the correlated column, which belongs to the same
+       * table as the in-context column.
+       * 
+ * + * string column_spec_id = 1; + */ + public java.lang.String getColumnSpecId() { + java.lang.Object ref = columnSpecId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + columnSpecId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The column_spec_id of the correlated column, which belongs to the same
+       * table as the in-context column.
+       * 
+ * + * string column_spec_id = 1; + */ + public com.google.protobuf.ByteString getColumnSpecIdBytes() { + java.lang.Object ref = columnSpecId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + columnSpecId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The column_spec_id of the correlated column, which belongs to the same
+       * table as the in-context column.
+       * 
+ * + * string column_spec_id = 1; + */ + public Builder setColumnSpecId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + columnSpecId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The column_spec_id of the correlated column, which belongs to the same
+       * table as the in-context column.
+       * 
+ * + * string column_spec_id = 1; + */ + public Builder clearColumnSpecId() { + + columnSpecId_ = getDefaultInstance().getColumnSpecId(); + onChanged(); + return this; + } + /** + * + * + *
+       * The column_spec_id of the correlated column, which belongs to the same
+       * table as the in-context column.
+       * 
+ * + * string column_spec_id = 1; + */ + public Builder setColumnSpecIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + columnSpecId_ = value; + onChanged(); + return this; + } + + private com.google.cloud.automl.v1beta1.CorrelationStats correlationStats_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.CorrelationStats, + com.google.cloud.automl.v1beta1.CorrelationStats.Builder, + com.google.cloud.automl.v1beta1.CorrelationStatsOrBuilder> + correlationStatsBuilder_; + /** + * + * + *
+       * Correlation between this and the in-context column.
+       * 
+ * + * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; + */ + public boolean hasCorrelationStats() { + return correlationStatsBuilder_ != null || correlationStats_ != null; + } + /** + * + * + *
+       * Correlation between this and the in-context column.
+       * 
+ * + * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; + */ + public com.google.cloud.automl.v1beta1.CorrelationStats getCorrelationStats() { + if (correlationStatsBuilder_ == null) { + return correlationStats_ == null + ? com.google.cloud.automl.v1beta1.CorrelationStats.getDefaultInstance() + : correlationStats_; + } else { + return correlationStatsBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Correlation between this and the in-context column.
+       * 
+ * + * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; + */ + public Builder setCorrelationStats(com.google.cloud.automl.v1beta1.CorrelationStats value) { + if (correlationStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + correlationStats_ = value; + onChanged(); + } else { + correlationStatsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Correlation between this and the in-context column.
+       * 
+ * + * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; + */ + public Builder setCorrelationStats( + com.google.cloud.automl.v1beta1.CorrelationStats.Builder builderForValue) { + if (correlationStatsBuilder_ == null) { + correlationStats_ = builderForValue.build(); + onChanged(); + } else { + correlationStatsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Correlation between this and the in-context column.
+       * 
+ * + * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; + */ + public Builder mergeCorrelationStats(com.google.cloud.automl.v1beta1.CorrelationStats value) { + if (correlationStatsBuilder_ == null) { + if (correlationStats_ != null) { + correlationStats_ = + com.google.cloud.automl.v1beta1.CorrelationStats.newBuilder(correlationStats_) + .mergeFrom(value) + .buildPartial(); + } else { + correlationStats_ = value; + } + onChanged(); + } else { + correlationStatsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Correlation between this and the in-context column.
+       * 
+ * + * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; + */ + public Builder clearCorrelationStats() { + if (correlationStatsBuilder_ == null) { + correlationStats_ = null; + onChanged(); + } else { + correlationStats_ = null; + correlationStatsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Correlation between this and the in-context column.
+       * 
+ * + * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; + */ + public com.google.cloud.automl.v1beta1.CorrelationStats.Builder getCorrelationStatsBuilder() { + + onChanged(); + return getCorrelationStatsFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Correlation between this and the in-context column.
+       * 
+ * + * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; + */ + public com.google.cloud.automl.v1beta1.CorrelationStatsOrBuilder + getCorrelationStatsOrBuilder() { + if (correlationStatsBuilder_ != null) { + return correlationStatsBuilder_.getMessageOrBuilder(); + } else { + return correlationStats_ == null + ? com.google.cloud.automl.v1beta1.CorrelationStats.getDefaultInstance() + : correlationStats_; + } + } + /** + * + * + *
+       * Correlation between this and the in-context column.
+       * 
+ * + * .google.cloud.automl.v1beta1.CorrelationStats correlation_stats = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.CorrelationStats, + com.google.cloud.automl.v1beta1.CorrelationStats.Builder, + com.google.cloud.automl.v1beta1.CorrelationStatsOrBuilder> + getCorrelationStatsFieldBuilder() { + if (correlationStatsBuilder_ == null) { + correlationStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.CorrelationStats, + com.google.cloud.automl.v1beta1.CorrelationStats.Builder, + com.google.cloud.automl.v1beta1.CorrelationStatsOrBuilder>( + getCorrelationStats(), getParentForChildren(), isClean()); + correlationStats_ = null; + } + return correlationStatsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn) + private static final com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn(); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CorrelatedColumn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CorrelatedColumn(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The resource name of the column specs.
+   * Form:
+   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}/columnSpecs/{column_spec_id}`
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of the column specs.
+   * Form:
+   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}/columnSpecs/{column_spec_id}`
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_TYPE_FIELD_NUMBER = 2; + private com.google.cloud.automl.v1beta1.DataType dataType_; + /** + * + * + *
+   * The data type of elements stored in the column.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataType data_type = 2; + */ + public boolean hasDataType() { + return dataType_ != null; + } + /** + * + * + *
+   * The data type of elements stored in the column.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataType data_type = 2; + */ + public com.google.cloud.automl.v1beta1.DataType getDataType() { + return dataType_ == null + ? com.google.cloud.automl.v1beta1.DataType.getDefaultInstance() + : dataType_; + } + /** + * + * + *
+   * The data type of elements stored in the column.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataType data_type = 2; + */ + public com.google.cloud.automl.v1beta1.DataTypeOrBuilder getDataTypeOrBuilder() { + return getDataType(); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Output only. The name of the column to show in the interface. The name can
+   * be up to 100 characters long and can consist only of ASCII Latin letters
+   * A-Z and a-z, ASCII digits 0-9, underscores(_), and forward slashes(/), and
+   * must start with a letter or a digit.
+   * 
+ * + * string display_name = 3; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The name of the column to show in the interface. The name can
+   * be up to 100 characters long and can consist only of ASCII Latin letters
+   * A-Z and a-z, ASCII digits 0-9, underscores(_), and forward slashes(/), and
+   * must start with a letter or a digit.
+   * 
+ * + * string display_name = 3; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_STATS_FIELD_NUMBER = 4; + private com.google.cloud.automl.v1beta1.DataStats dataStats_; + /** + * + * + *
+   * Output only. Stats of the series of values in the column.
+   * This field may be stale, see the ancestor's
+   * Dataset.tables_dataset_metadata.stats_update_time field
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataStats data_stats = 4; + */ + public boolean hasDataStats() { + return dataStats_ != null; + } + /** + * + * + *
+   * Output only. Stats of the series of values in the column.
+   * This field may be stale, see the ancestor's
+   * Dataset.tables_dataset_metadata.stats_update_time field
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataStats data_stats = 4; + */ + public com.google.cloud.automl.v1beta1.DataStats getDataStats() { + return dataStats_ == null + ? com.google.cloud.automl.v1beta1.DataStats.getDefaultInstance() + : dataStats_; + } + /** + * + * + *
+   * Output only. Stats of the series of values in the column.
+   * This field may be stale, see the ancestor's
+   * Dataset.tables_dataset_metadata.stats_update_time field
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataStats data_stats = 4; + */ + public com.google.cloud.automl.v1beta1.DataStatsOrBuilder getDataStatsOrBuilder() { + return getDataStats(); + } + + public static final int TOP_CORRELATED_COLUMNS_FIELD_NUMBER = 5; + private java.util.List + topCorrelatedColumns_; + /** + * + * + *
+   * Output only. Top 10 most correlated with this column columns of the table,
+   * ordered by
+   * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+   * This field may be stale, see the ancestor's
+   * Dataset.tables_dataset_metadata.stats_update_time field
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public java.util.List + getTopCorrelatedColumnsList() { + return topCorrelatedColumns_; + } + /** + * + * + *
+   * Output only. Top 10 most correlated with this column columns of the table,
+   * ordered by
+   * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+   * This field may be stale, see the ancestor's
+   * Dataset.tables_dataset_metadata.stats_update_time field
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public java.util.List< + ? extends com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder> + getTopCorrelatedColumnsOrBuilderList() { + return topCorrelatedColumns_; + } + /** + * + * + *
+   * Output only. Top 10 most correlated with this column columns of the table,
+   * ordered by
+   * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+   * This field may be stale, see the ancestor's
+   * Dataset.tables_dataset_metadata.stats_update_time field
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public int getTopCorrelatedColumnsCount() { + return topCorrelatedColumns_.size(); + } + /** + * + * + *
+   * Output only. Top 10 most correlated with this column columns of the table,
+   * ordered by
+   * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+   * This field may be stale, see the ancestor's
+   * Dataset.tables_dataset_metadata.stats_update_time field
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getTopCorrelatedColumns( + int index) { + return topCorrelatedColumns_.get(index); + } + /** + * + * + *
+   * Output only. Top 10 most correlated with this column columns of the table,
+   * ordered by
+   * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+   * This field may be stale, see the ancestor's
+   * Dataset.tables_dataset_metadata.stats_update_time field
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder + getTopCorrelatedColumnsOrBuilder(int index) { + return topCorrelatedColumns_.get(index); + } + + public static final int ETAG_FIELD_NUMBER = 6; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 6; + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 6; + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (dataType_ != null) { + output.writeMessage(2, getDataType()); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (dataStats_ != null) { + output.writeMessage(4, getDataStats()); + } + for (int i = 0; i < topCorrelatedColumns_.size(); i++) { + output.writeMessage(5, topCorrelatedColumns_.get(i)); + } + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, etag_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (dataType_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataType()); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (dataStats_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDataStats()); + } + for (int i = 0; i < topCorrelatedColumns_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, topCorrelatedColumns_.get(i)); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, etag_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.ColumnSpec)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ColumnSpec other = + (com.google.cloud.automl.v1beta1.ColumnSpec) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDataType() != other.hasDataType()) return false; + if (hasDataType()) { + if (!getDataType().equals(other.getDataType())) return false; + } + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasDataStats() != other.hasDataStats()) return false; + if (hasDataStats()) { + if (!getDataStats().equals(other.getDataStats())) return false; + } + if (!getTopCorrelatedColumnsList().equals(other.getTopCorrelatedColumnsList())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasDataType()) { + hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDataType().hashCode(); + } + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasDataStats()) { + hash = (37 * hash) + DATA_STATS_FIELD_NUMBER; + hash = (53 * hash) + getDataStats().hashCode(); + } + if (getTopCorrelatedColumnsCount() > 0) { + hash = (37 * hash) + TOP_CORRELATED_COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getTopCorrelatedColumnsList().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.ColumnSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A representation of a column in a relational table. When listing them, column specs are returned in the same order in which they were
+   * given on import .
+   * Used by:
+   *   *   Tables
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ColumnSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ColumnSpec) + com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ColumnSpecOuterClass + .internal_static_google_cloud_automl_v1beta1_ColumnSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.ColumnSpecOuterClass + .internal_static_google_cloud_automl_v1beta1_ColumnSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ColumnSpec.class, + com.google.cloud.automl.v1beta1.ColumnSpec.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.ColumnSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTopCorrelatedColumnsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (dataTypeBuilder_ == null) { + dataType_ = null; + } else { + dataType_ = null; + dataTypeBuilder_ = null; + } + displayName_ = ""; + + if (dataStatsBuilder_ == null) { + dataStats_ = null; + } else { + dataStats_ = null; + dataStatsBuilder_ = null; + } + if (topCorrelatedColumnsBuilder_ == null) { + topCorrelatedColumns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + topCorrelatedColumnsBuilder_.clear(); + } + etag_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ColumnSpecOuterClass + .internal_static_google_cloud_automl_v1beta1_ColumnSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ColumnSpec getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ColumnSpec build() { + com.google.cloud.automl.v1beta1.ColumnSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ColumnSpec buildPartial() { + com.google.cloud.automl.v1beta1.ColumnSpec result = + new com.google.cloud.automl.v1beta1.ColumnSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + if (dataTypeBuilder_ == null) { + result.dataType_ = dataType_; + } else { + result.dataType_ = dataTypeBuilder_.build(); + } + result.displayName_ = displayName_; + if (dataStatsBuilder_ == null) { + result.dataStats_ = dataStats_; + } else { + result.dataStats_ = dataStatsBuilder_.build(); + } + if (topCorrelatedColumnsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + topCorrelatedColumns_ = java.util.Collections.unmodifiableList(topCorrelatedColumns_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.topCorrelatedColumns_ = topCorrelatedColumns_; + } else { + result.topCorrelatedColumns_ = topCorrelatedColumnsBuilder_.build(); + } + result.etag_ = etag_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.ColumnSpec) { + return mergeFrom((com.google.cloud.automl.v1beta1.ColumnSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.ColumnSpec other) { + if (other == com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasDataType()) { + mergeDataType(other.getDataType()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (other.hasDataStats()) { + mergeDataStats(other.getDataStats()); + } + if (topCorrelatedColumnsBuilder_ == null) { + if (!other.topCorrelatedColumns_.isEmpty()) { + if (topCorrelatedColumns_.isEmpty()) { + topCorrelatedColumns_ = other.topCorrelatedColumns_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureTopCorrelatedColumnsIsMutable(); + topCorrelatedColumns_.addAll(other.topCorrelatedColumns_); + } + onChanged(); + } + } else { + if (!other.topCorrelatedColumns_.isEmpty()) { + if (topCorrelatedColumnsBuilder_.isEmpty()) { + topCorrelatedColumnsBuilder_.dispose(); + topCorrelatedColumnsBuilder_ = null; + topCorrelatedColumns_ = other.topCorrelatedColumns_; + bitField0_ = (bitField0_ & ~0x00000010); + topCorrelatedColumnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTopCorrelatedColumnsFieldBuilder() + : null; + } else { + topCorrelatedColumnsBuilder_.addAllMessages(other.topCorrelatedColumns_); + } + } + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ColumnSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.ColumnSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of the column specs.
+     * Form:
+     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}/columnSpecs/{column_spec_id}`
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the column specs.
+     * Form:
+     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}/columnSpecs/{column_spec_id}`
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the column specs.
+     * Form:
+     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}/columnSpecs/{column_spec_id}`
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the column specs.
+     * Form:
+     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}/columnSpecs/{column_spec_id}`
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the column specs.
+     * Form:
+     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}/columnSpecs/{column_spec_id}`
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.cloud.automl.v1beta1.DataType dataType_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DataType, + com.google.cloud.automl.v1beta1.DataType.Builder, + com.google.cloud.automl.v1beta1.DataTypeOrBuilder> + dataTypeBuilder_; + /** + * + * + *
+     * The data type of elements stored in the column.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataType data_type = 2; + */ + public boolean hasDataType() { + return dataTypeBuilder_ != null || dataType_ != null; + } + /** + * + * + *
+     * The data type of elements stored in the column.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataType data_type = 2; + */ + public com.google.cloud.automl.v1beta1.DataType getDataType() { + if (dataTypeBuilder_ == null) { + return dataType_ == null + ? com.google.cloud.automl.v1beta1.DataType.getDefaultInstance() + : dataType_; + } else { + return dataTypeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The data type of elements stored in the column.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataType data_type = 2; + */ + public Builder setDataType(com.google.cloud.automl.v1beta1.DataType value) { + if (dataTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataType_ = value; + onChanged(); + } else { + dataTypeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The data type of elements stored in the column.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataType data_type = 2; + */ + public Builder setDataType(com.google.cloud.automl.v1beta1.DataType.Builder builderForValue) { + if (dataTypeBuilder_ == null) { + dataType_ = builderForValue.build(); + onChanged(); + } else { + dataTypeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The data type of elements stored in the column.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataType data_type = 2; + */ + public Builder mergeDataType(com.google.cloud.automl.v1beta1.DataType value) { + if (dataTypeBuilder_ == null) { + if (dataType_ != null) { + dataType_ = + com.google.cloud.automl.v1beta1.DataType.newBuilder(dataType_) + .mergeFrom(value) + .buildPartial(); + } else { + dataType_ = value; + } + onChanged(); + } else { + dataTypeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The data type of elements stored in the column.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataType data_type = 2; + */ + public Builder clearDataType() { + if (dataTypeBuilder_ == null) { + dataType_ = null; + onChanged(); + } else { + dataType_ = null; + dataTypeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The data type of elements stored in the column.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataType data_type = 2; + */ + public com.google.cloud.automl.v1beta1.DataType.Builder getDataTypeBuilder() { + + onChanged(); + return getDataTypeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The data type of elements stored in the column.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataType data_type = 2; + */ + public com.google.cloud.automl.v1beta1.DataTypeOrBuilder getDataTypeOrBuilder() { + if (dataTypeBuilder_ != null) { + return dataTypeBuilder_.getMessageOrBuilder(); + } else { + return dataType_ == null + ? com.google.cloud.automl.v1beta1.DataType.getDefaultInstance() + : dataType_; + } + } + /** + * + * + *
+     * The data type of elements stored in the column.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataType data_type = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DataType, + com.google.cloud.automl.v1beta1.DataType.Builder, + com.google.cloud.automl.v1beta1.DataTypeOrBuilder> + getDataTypeFieldBuilder() { + if (dataTypeBuilder_ == null) { + dataTypeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DataType, + com.google.cloud.automl.v1beta1.DataType.Builder, + com.google.cloud.automl.v1beta1.DataTypeOrBuilder>( + getDataType(), getParentForChildren(), isClean()); + dataType_ = null; + } + return dataTypeBuilder_; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Output only. The name of the column to show in the interface. The name can
+     * be up to 100 characters long and can consist only of ASCII Latin letters
+     * A-Z and a-z, ASCII digits 0-9, underscores(_), and forward slashes(/), and
+     * must start with a letter or a digit.
+     * 
+ * + * string display_name = 3; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The name of the column to show in the interface. The name can
+     * be up to 100 characters long and can consist only of ASCII Latin letters
+     * A-Z and a-z, ASCII digits 0-9, underscores(_), and forward slashes(/), and
+     * must start with a letter or a digit.
+     * 
+ * + * string display_name = 3; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The name of the column to show in the interface. The name can
+     * be up to 100 characters long and can consist only of ASCII Latin letters
+     * A-Z and a-z, ASCII digits 0-9, underscores(_), and forward slashes(/), and
+     * must start with a letter or a digit.
+     * 
+ * + * string display_name = 3; + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The name of the column to show in the interface. The name can
+     * be up to 100 characters long and can consist only of ASCII Latin letters
+     * A-Z and a-z, ASCII digits 0-9, underscores(_), and forward slashes(/), and
+     * must start with a letter or a digit.
+     * 
+ * + * string display_name = 3; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The name of the column to show in the interface. The name can
+     * be up to 100 characters long and can consist only of ASCII Latin letters
+     * A-Z and a-z, ASCII digits 0-9, underscores(_), and forward slashes(/), and
+     * must start with a letter or a digit.
+     * 
+ * + * string display_name = 3; + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private com.google.cloud.automl.v1beta1.DataStats dataStats_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DataStats, + com.google.cloud.automl.v1beta1.DataStats.Builder, + com.google.cloud.automl.v1beta1.DataStatsOrBuilder> + dataStatsBuilder_; + /** + * + * + *
+     * Output only. Stats of the series of values in the column.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataStats data_stats = 4; + */ + public boolean hasDataStats() { + return dataStatsBuilder_ != null || dataStats_ != null; + } + /** + * + * + *
+     * Output only. Stats of the series of values in the column.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataStats data_stats = 4; + */ + public com.google.cloud.automl.v1beta1.DataStats getDataStats() { + if (dataStatsBuilder_ == null) { + return dataStats_ == null + ? com.google.cloud.automl.v1beta1.DataStats.getDefaultInstance() + : dataStats_; + } else { + return dataStatsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Stats of the series of values in the column.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataStats data_stats = 4; + */ + public Builder setDataStats(com.google.cloud.automl.v1beta1.DataStats value) { + if (dataStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataStats_ = value; + onChanged(); + } else { + dataStatsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Stats of the series of values in the column.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataStats data_stats = 4; + */ + public Builder setDataStats(com.google.cloud.automl.v1beta1.DataStats.Builder builderForValue) { + if (dataStatsBuilder_ == null) { + dataStats_ = builderForValue.build(); + onChanged(); + } else { + dataStatsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Stats of the series of values in the column.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataStats data_stats = 4; + */ + public Builder mergeDataStats(com.google.cloud.automl.v1beta1.DataStats value) { + if (dataStatsBuilder_ == null) { + if (dataStats_ != null) { + dataStats_ = + com.google.cloud.automl.v1beta1.DataStats.newBuilder(dataStats_) + .mergeFrom(value) + .buildPartial(); + } else { + dataStats_ = value; + } + onChanged(); + } else { + dataStatsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Stats of the series of values in the column.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataStats data_stats = 4; + */ + public Builder clearDataStats() { + if (dataStatsBuilder_ == null) { + dataStats_ = null; + onChanged(); + } else { + dataStats_ = null; + dataStatsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Stats of the series of values in the column.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataStats data_stats = 4; + */ + public com.google.cloud.automl.v1beta1.DataStats.Builder getDataStatsBuilder() { + + onChanged(); + return getDataStatsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Stats of the series of values in the column.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataStats data_stats = 4; + */ + public com.google.cloud.automl.v1beta1.DataStatsOrBuilder getDataStatsOrBuilder() { + if (dataStatsBuilder_ != null) { + return dataStatsBuilder_.getMessageOrBuilder(); + } else { + return dataStats_ == null + ? com.google.cloud.automl.v1beta1.DataStats.getDefaultInstance() + : dataStats_; + } + } + /** + * + * + *
+     * Output only. Stats of the series of values in the column.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataStats data_stats = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DataStats, + com.google.cloud.automl.v1beta1.DataStats.Builder, + com.google.cloud.automl.v1beta1.DataStatsOrBuilder> + getDataStatsFieldBuilder() { + if (dataStatsBuilder_ == null) { + dataStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DataStats, + com.google.cloud.automl.v1beta1.DataStats.Builder, + com.google.cloud.automl.v1beta1.DataStatsOrBuilder>( + getDataStats(), getParentForChildren(), isClean()); + dataStats_ = null; + } + return dataStatsBuilder_; + } + + private java.util.List + topCorrelatedColumns_ = java.util.Collections.emptyList(); + + private void ensureTopCorrelatedColumnsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + topCorrelatedColumns_ = + new java.util.ArrayList( + topCorrelatedColumns_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn, + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder, + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder> + topCorrelatedColumnsBuilder_; + + /** + * + * + *
+     * Output only. Top 10 most correlated with this column columns of the table,
+     * ordered by
+     * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public java.util.List + getTopCorrelatedColumnsList() { + if (topCorrelatedColumnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(topCorrelatedColumns_); + } else { + return topCorrelatedColumnsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. Top 10 most correlated with this column columns of the table,
+     * ordered by
+     * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public int getTopCorrelatedColumnsCount() { + if (topCorrelatedColumnsBuilder_ == null) { + return topCorrelatedColumns_.size(); + } else { + return topCorrelatedColumnsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. Top 10 most correlated with this column columns of the table,
+     * ordered by
+     * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getTopCorrelatedColumns( + int index) { + if (topCorrelatedColumnsBuilder_ == null) { + return topCorrelatedColumns_.get(index); + } else { + return topCorrelatedColumnsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. Top 10 most correlated with this column columns of the table,
+     * ordered by
+     * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public Builder setTopCorrelatedColumns( + int index, com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn value) { + if (topCorrelatedColumnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopCorrelatedColumnsIsMutable(); + topCorrelatedColumns_.set(index, value); + onChanged(); + } else { + topCorrelatedColumnsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Top 10 most correlated with this column columns of the table,
+     * ordered by
+     * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public Builder setTopCorrelatedColumns( + int index, + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder builderForValue) { + if (topCorrelatedColumnsBuilder_ == null) { + ensureTopCorrelatedColumnsIsMutable(); + topCorrelatedColumns_.set(index, builderForValue.build()); + onChanged(); + } else { + topCorrelatedColumnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Top 10 most correlated with this column columns of the table,
+     * ordered by
+     * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public Builder addTopCorrelatedColumns( + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn value) { + if (topCorrelatedColumnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopCorrelatedColumnsIsMutable(); + topCorrelatedColumns_.add(value); + onChanged(); + } else { + topCorrelatedColumnsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. Top 10 most correlated with this column columns of the table,
+     * ordered by
+     * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public Builder addTopCorrelatedColumns( + int index, com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn value) { + if (topCorrelatedColumnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopCorrelatedColumnsIsMutable(); + topCorrelatedColumns_.add(index, value); + onChanged(); + } else { + topCorrelatedColumnsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Top 10 most correlated with this column columns of the table,
+     * ordered by
+     * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public Builder addTopCorrelatedColumns( + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder builderForValue) { + if (topCorrelatedColumnsBuilder_ == null) { + ensureTopCorrelatedColumnsIsMutable(); + topCorrelatedColumns_.add(builderForValue.build()); + onChanged(); + } else { + topCorrelatedColumnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Top 10 most correlated with this column columns of the table,
+     * ordered by
+     * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public Builder addTopCorrelatedColumns( + int index, + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder builderForValue) { + if (topCorrelatedColumnsBuilder_ == null) { + ensureTopCorrelatedColumnsIsMutable(); + topCorrelatedColumns_.add(index, builderForValue.build()); + onChanged(); + } else { + topCorrelatedColumnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Top 10 most correlated with this column columns of the table,
+     * ordered by
+     * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public Builder addAllTopCorrelatedColumns( + java.lang.Iterable + values) { + if (topCorrelatedColumnsBuilder_ == null) { + ensureTopCorrelatedColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topCorrelatedColumns_); + onChanged(); + } else { + topCorrelatedColumnsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. Top 10 most correlated with this column columns of the table,
+     * ordered by
+     * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public Builder clearTopCorrelatedColumns() { + if (topCorrelatedColumnsBuilder_ == null) { + topCorrelatedColumns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + topCorrelatedColumnsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Top 10 most correlated with this column columns of the table,
+     * ordered by
+     * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public Builder removeTopCorrelatedColumns(int index) { + if (topCorrelatedColumnsBuilder_ == null) { + ensureTopCorrelatedColumnsIsMutable(); + topCorrelatedColumns_.remove(index); + onChanged(); + } else { + topCorrelatedColumnsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. Top 10 most correlated with this column columns of the table,
+     * ordered by
+     * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder + getTopCorrelatedColumnsBuilder(int index) { + return getTopCorrelatedColumnsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. Top 10 most correlated with this column columns of the table,
+     * ordered by
+     * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder + getTopCorrelatedColumnsOrBuilder(int index) { + if (topCorrelatedColumnsBuilder_ == null) { + return topCorrelatedColumns_.get(index); + } else { + return topCorrelatedColumnsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. Top 10 most correlated with this column columns of the table,
+     * ordered by
+     * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public java.util.List< + ? extends com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder> + getTopCorrelatedColumnsOrBuilderList() { + if (topCorrelatedColumnsBuilder_ != null) { + return topCorrelatedColumnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(topCorrelatedColumns_); + } + } + /** + * + * + *
+     * Output only. Top 10 most correlated with this column columns of the table,
+     * ordered by
+     * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder + addTopCorrelatedColumnsBuilder() { + return getTopCorrelatedColumnsFieldBuilder() + .addBuilder( + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Top 10 most correlated with this column columns of the table,
+     * ordered by
+     * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder + addTopCorrelatedColumnsBuilder(int index) { + return getTopCorrelatedColumnsFieldBuilder() + .addBuilder( + index, + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Top 10 most correlated with this column columns of the table,
+     * ordered by
+     * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+     * This field may be stale, see the ancestor's
+     * Dataset.tables_dataset_metadata.stats_update_time field
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + public java.util.List + getTopCorrelatedColumnsBuilderList() { + return getTopCorrelatedColumnsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn, + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder, + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder> + getTopCorrelatedColumnsFieldBuilder() { + if (topCorrelatedColumnsBuilder_ == null) { + topCorrelatedColumnsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn, + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn.Builder, + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder>( + topCorrelatedColumns_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + topCorrelatedColumns_ = null; + } + return topCorrelatedColumnsBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 6; + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 6; + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 6; + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + etag_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 6; + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 6; + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ColumnSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ColumnSpec) + private static final com.google.cloud.automl.v1beta1.ColumnSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ColumnSpec(); + } + + public static com.google.cloud.automl.v1beta1.ColumnSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColumnSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ColumnSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ColumnSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOrBuilder.java new file mode 100644 index 000000000000..a6fcd49ac442 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOrBuilder.java @@ -0,0 +1,245 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/column_spec.proto + +package com.google.cloud.automl.v1beta1; + +public interface ColumnSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ColumnSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of the column specs.
+   * Form:
+   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}/columnSpecs/{column_spec_id}`
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of the column specs.
+   * Form:
+   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}/columnSpecs/{column_spec_id}`
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The data type of elements stored in the column.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataType data_type = 2; + */ + boolean hasDataType(); + /** + * + * + *
+   * The data type of elements stored in the column.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataType data_type = 2; + */ + com.google.cloud.automl.v1beta1.DataType getDataType(); + /** + * + * + *
+   * The data type of elements stored in the column.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataType data_type = 2; + */ + com.google.cloud.automl.v1beta1.DataTypeOrBuilder getDataTypeOrBuilder(); + + /** + * + * + *
+   * Output only. The name of the column to show in the interface. The name can
+   * be up to 100 characters long and can consist only of ASCII Latin letters
+   * A-Z and a-z, ASCII digits 0-9, underscores(_), and forward slashes(/), and
+   * must start with a letter or a digit.
+   * 
+ * + * string display_name = 3; + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Output only. The name of the column to show in the interface. The name can
+   * be up to 100 characters long and can consist only of ASCII Latin letters
+   * A-Z and a-z, ASCII digits 0-9, underscores(_), and forward slashes(/), and
+   * must start with a letter or a digit.
+   * 
+ * + * string display_name = 3; + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. Stats of the series of values in the column.
+   * This field may be stale, see the ancestor's
+   * Dataset.tables_dataset_metadata.stats_update_time field
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataStats data_stats = 4; + */ + boolean hasDataStats(); + /** + * + * + *
+   * Output only. Stats of the series of values in the column.
+   * This field may be stale, see the ancestor's
+   * Dataset.tables_dataset_metadata.stats_update_time field
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataStats data_stats = 4; + */ + com.google.cloud.automl.v1beta1.DataStats getDataStats(); + /** + * + * + *
+   * Output only. Stats of the series of values in the column.
+   * This field may be stale, see the ancestor's
+   * Dataset.tables_dataset_metadata.stats_update_time field
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataStats data_stats = 4; + */ + com.google.cloud.automl.v1beta1.DataStatsOrBuilder getDataStatsOrBuilder(); + + /** + * + * + *
+   * Output only. Top 10 most correlated with this column columns of the table,
+   * ordered by
+   * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+   * This field may be stale, see the ancestor's
+   * Dataset.tables_dataset_metadata.stats_update_time field
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + java.util.List + getTopCorrelatedColumnsList(); + /** + * + * + *
+   * Output only. Top 10 most correlated with this column columns of the table,
+   * ordered by
+   * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+   * This field may be stale, see the ancestor's
+   * Dataset.tables_dataset_metadata.stats_update_time field
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn getTopCorrelatedColumns(int index); + /** + * + * + *
+   * Output only. Top 10 most correlated with this column columns of the table,
+   * ordered by
+   * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+   * This field may be stale, see the ancestor's
+   * Dataset.tables_dataset_metadata.stats_update_time field
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + int getTopCorrelatedColumnsCount(); + /** + * + * + *
+   * Output only. Top 10 most correlated with this column columns of the table,
+   * ordered by
+   * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+   * This field may be stale, see the ancestor's
+   * Dataset.tables_dataset_metadata.stats_update_time field
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + java.util.List + getTopCorrelatedColumnsOrBuilderList(); + /** + * + * + *
+   * Output only. Top 10 most correlated with this column columns of the table,
+   * ordered by
+   * [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric.
+   * This field may be stale, see the ancestor's
+   * Dataset.tables_dataset_metadata.stats_update_time field
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5; + * + */ + com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder + getTopCorrelatedColumnsOrBuilder(int index); + + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 6; + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 6; + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOuterClass.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOuterClass.java new file mode 100644 index 000000000000..8a597d814c5e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ColumnSpecOuterClass.java @@ -0,0 +1,90 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/column_spec.proto + +package com.google.cloud.automl.v1beta1; + +public final class ColumnSpecOuterClass { + private ColumnSpecOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ColumnSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ColumnSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ColumnSpec_CorrelatedColumn_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ColumnSpec_CorrelatedColumn_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/automl/v1beta1/column_spe" + + "c.proto\022\033google.cloud.automl.v1beta1\032\034go" + + "ogle/api/annotations.proto\032,google/cloud" + + "/automl/v1beta1/data_stats.proto\032,google" + + "/cloud/automl/v1beta1/data_types.proto\"\204" + + "\003\n\nColumnSpec\022\014\n\004name\030\001 \001(\t\0228\n\tdata_type" + + "\030\002 \001(\0132%.google.cloud.automl.v1beta1.Dat" + + "aType\022\024\n\014display_name\030\003 \001(\t\022:\n\ndata_stat" + + "s\030\004 \001(\0132&.google.cloud.automl.v1beta1.Da" + + "taStats\022X\n\026top_correlated_columns\030\005 \003(\0132" + + "8.google.cloud.automl.v1beta1.ColumnSpec" + + ".CorrelatedColumn\022\014\n\004etag\030\006 \001(\t\032t\n\020Corre" + + "latedColumn\022\026\n\016column_spec_id\030\001 \001(\t\022H\n\021c" + + "orrelation_stats\030\002 \001(\0132-.google.cloud.au" + + "toml.v1beta1.CorrelationStatsB\204\001\n\037com.go" + + "ogle.cloud.automl.v1beta1P\001ZAgoogle.gola" + + "ng.org/genproto/googleapis/cloud/automl/" + + "v1beta1;automl\312\002\033Google\\Cloud\\AutoMl\\V1b" + + "eta1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.automl.v1beta1.DataStatsOuterClass.getDescriptor(), + com.google.cloud.automl.v1beta1.DataTypes.getDescriptor(), + }, + assigner); + internal_static_google_cloud_automl_v1beta1_ColumnSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_ColumnSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ColumnSpec_descriptor, + new java.lang.String[] { + "Name", "DataType", "DisplayName", "DataStats", "TopCorrelatedColumns", "Etag", + }); + internal_static_google_cloud_automl_v1beta1_ColumnSpec_CorrelatedColumn_descriptor = + internal_static_google_cloud_automl_v1beta1_ColumnSpec_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_automl_v1beta1_ColumnSpec_CorrelatedColumn_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ColumnSpec_CorrelatedColumn_descriptor, + new java.lang.String[] { + "ColumnSpecId", "CorrelationStats", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.automl.v1beta1.DataStatsOuterClass.getDescriptor(); + com.google.cloud.automl.v1beta1.DataTypes.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStats.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStats.java new file mode 100644 index 000000000000..af1cac80fbdc --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStats.java @@ -0,0 +1,522 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_stats.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * A correlation statistics between two series of DataType values. The series
+ * may have differing DataType-s, but within a single series the DataType must
+ * be the same.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.CorrelationStats} + */ +public final class CorrelationStats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.CorrelationStats) + CorrelationStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use CorrelationStats.newBuilder() to construct. + private CorrelationStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CorrelationStats() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CorrelationStats( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + cramersV_ = input.readDouble(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_CorrelationStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_CorrelationStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.CorrelationStats.class, + com.google.cloud.automl.v1beta1.CorrelationStats.Builder.class); + } + + public static final int CRAMERS_V_FIELD_NUMBER = 1; + private double cramersV_; + /** + * + * + *
+   * The correlation value using the Cramer's V measure.
+   * 
+ * + * double cramers_v = 1; + */ + public double getCramersV() { + return cramersV_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (cramersV_ != 0D) { + output.writeDouble(1, cramersV_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (cramersV_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, cramersV_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.CorrelationStats)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.CorrelationStats other = + (com.google.cloud.automl.v1beta1.CorrelationStats) obj; + + if (java.lang.Double.doubleToLongBits(getCramersV()) + != java.lang.Double.doubleToLongBits(other.getCramersV())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CRAMERS_V_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCramersV())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.CorrelationStats parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.CorrelationStats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.CorrelationStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.CorrelationStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.CorrelationStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.CorrelationStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.CorrelationStats parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.CorrelationStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.CorrelationStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.CorrelationStats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.CorrelationStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.CorrelationStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.CorrelationStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A correlation statistics between two series of DataType values. The series
+   * may have differing DataType-s, but within a single series the DataType must
+   * be the same.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.CorrelationStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.CorrelationStats) + com.google.cloud.automl.v1beta1.CorrelationStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_CorrelationStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_CorrelationStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.CorrelationStats.class, + com.google.cloud.automl.v1beta1.CorrelationStats.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.CorrelationStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + cramersV_ = 0D; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_CorrelationStats_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.CorrelationStats getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.CorrelationStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.CorrelationStats build() { + com.google.cloud.automl.v1beta1.CorrelationStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.CorrelationStats buildPartial() { + com.google.cloud.automl.v1beta1.CorrelationStats result = + new com.google.cloud.automl.v1beta1.CorrelationStats(this); + result.cramersV_ = cramersV_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.CorrelationStats) { + return mergeFrom((com.google.cloud.automl.v1beta1.CorrelationStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.CorrelationStats other) { + if (other == com.google.cloud.automl.v1beta1.CorrelationStats.getDefaultInstance()) + return this; + if (other.getCramersV() != 0D) { + setCramersV(other.getCramersV()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.CorrelationStats parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.CorrelationStats) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double cramersV_; + /** + * + * + *
+     * The correlation value using the Cramer's V measure.
+     * 
+ * + * double cramers_v = 1; + */ + public double getCramersV() { + return cramersV_; + } + /** + * + * + *
+     * The correlation value using the Cramer's V measure.
+     * 
+ * + * double cramers_v = 1; + */ + public Builder setCramersV(double value) { + + cramersV_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The correlation value using the Cramer's V measure.
+     * 
+ * + * double cramers_v = 1; + */ + public Builder clearCramersV() { + + cramersV_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.CorrelationStats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.CorrelationStats) + private static final com.google.cloud.automl.v1beta1.CorrelationStats DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.CorrelationStats(); + } + + public static com.google.cloud.automl.v1beta1.CorrelationStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CorrelationStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CorrelationStats(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.CorrelationStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStatsOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStatsOrBuilder.java new file mode 100644 index 000000000000..6fcfaedd32c4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CorrelationStatsOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_stats.proto + +package com.google.cloud.automl.v1beta1; + +public interface CorrelationStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.CorrelationStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The correlation value using the Cramer's V measure.
+   * 
+ * + * double cramers_v = 1; + */ + double getCramersV(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequest.java index 83a2a3ad5d0b..78726d109cd8 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateDatasetRequest.java @@ -7,8 +7,7 @@ * * *
- * Request message for
- * [AutoMl.CreateDataset][google.cloud.automl.v1beta1.AutoMl.CreateDataset].
+ * Request message for [AutoMl.CreateDataset][google.cloud.automl.v1beta1.AutoMl.CreateDataset].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.CreateDatasetRequest} @@ -369,8 +368,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for
-   * [AutoMl.CreateDataset][google.cloud.automl.v1beta1.AutoMl.CreateDataset].
+   * Request message for [AutoMl.CreateDataset][google.cloud.automl.v1beta1.AutoMl.CreateDataset].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.CreateDatasetRequest} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequest.java index cc1f177045eb..3d98a53a89af 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/CreateModelRequest.java @@ -7,8 +7,7 @@ * * *
- * Request message for
- * [AutoMl.CreateModel][google.cloud.automl.v1beta1.AutoMl.CreateModel].
+ * Request message for [AutoMl.CreateModel][google.cloud.automl.v1beta1.AutoMl.CreateModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.CreateModelRequest} @@ -367,8 +366,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for
-   * [AutoMl.CreateModel][google.cloud.automl.v1beta1.AutoMl.CreateModel].
+   * Request message for [AutoMl.CreateModel][google.cloud.automl.v1beta1.AutoMl.CreateModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.CreateModelRequest} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java index bf456d23f41c..2cc7403c473b 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataItems.java @@ -20,6 +20,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_automl_v1beta1_TextSnippet_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_TextSnippet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_Document_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_Document_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_Row_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_Row_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_automl_v1beta1_ExamplePayload_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -36,19 +44,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n,google/cloud/automl/v1beta1/data_items" + ".proto\022\033google.cloud.automl.v1beta1\032\034goo" + "gle/api/annotations.proto\032$google/cloud/" - + "automl/v1beta1/io.proto\"\177\n\005Image\022\025\n\013imag" - + "e_bytes\030\001 \001(\014H\000\022@\n\014input_config\030\006 \001(\0132(." - + "google.cloud.automl.v1beta1.InputConfigH" - + "\000\022\025\n\rthumbnail_uri\030\004 \001(\tB\006\n\004data\"F\n\013Text" - + "Snippet\022\017\n\007content\030\001 \001(\t\022\021\n\tmime_type\030\002 " - + "\001(\t\022\023\n\013content_uri\030\004 \001(\t\"\222\001\n\016ExamplePayl" - + "oad\0223\n\005image\030\001 \001(\0132\".google.cloud.automl" - + ".v1beta1.ImageH\000\022@\n\014text_snippet\030\002 \001(\0132(" - + ".google.cloud.automl.v1beta1.TextSnippet" - + "H\000B\t\n\007payloadB\204\001\n\037com.google.cloud.autom" - + "l.v1beta1P\001ZAgoogle.golang.org/genproto/" - + "googleapis/cloud/automl/v1beta1;automl\312\002" - + "\033Google\\Cloud\\AutoMl\\V1beta1b\006proto3" + + "automl/v1beta1/io.proto\032\031google/protobuf" + + "/any.proto\032\036google/protobuf/duration.pro" + + "to\032\034google/protobuf/struct.proto\"\177\n\005Imag" + + "e\022\025\n\013image_bytes\030\001 \001(\014H\000\022@\n\014input_config" + + "\030\006 \001(\0132(.google.cloud.automl.v1beta1.Inp" + + "utConfigH\000\022\025\n\rthumbnail_uri\030\004 \001(\tB\006\n\004dat" + + "a\"F\n\013TextSnippet\022\017\n\007content\030\001 \001(\t\022\021\n\tmim" + + "e_type\030\002 \001(\t\022\023\n\013content_uri\030\004 \001(\t\"R\n\010Doc" + + "ument\022F\n\014input_config\030\001 \001(\01320.google.clo" + + "ud.automl.v1beta1.DocumentInputConfig\"F\n" + + "\003Row\022\027\n\017column_spec_ids\030\002 \003(\t\022&\n\006values\030" + + "\003 \003(\0132\026.google.protobuf.Value\"\376\001\n\016Exampl" + + "ePayload\0223\n\005image\030\001 \001(\0132\".google.cloud.a" + + "utoml.v1beta1.ImageH\000\022@\n\014text_snippet\030\002 " + + "\001(\0132(.google.cloud.automl.v1beta1.TextSn" + + "ippetH\000\0229\n\010document\030\004 \001(\0132%.google.cloud" + + ".automl.v1beta1.DocumentH\000\022/\n\003row\030\003 \001(\0132" + + " .google.cloud.automl.v1beta1.RowH\000B\t\n\007p" + + "ayloadB\204\001\n\037com.google.cloud.automl.v1bet" + + "a1P\001ZAgoogle.golang.org/genproto/googlea" + + "pis/cloud/automl/v1beta1;automl\312\002\033Google" + + "\\Cloud\\AutoMl\\V1beta1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -63,6 +80,9 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), com.google.cloud.automl.v1beta1.Io.getDescriptor(), + com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), }, assigner); internal_static_google_cloud_automl_v1beta1_Image_descriptor = @@ -81,16 +101,35 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Content", "MimeType", "ContentUri", }); - internal_static_google_cloud_automl_v1beta1_ExamplePayload_descriptor = + internal_static_google_cloud_automl_v1beta1_Document_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_automl_v1beta1_Document_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_Document_descriptor, + new java.lang.String[] { + "InputConfig", + }); + internal_static_google_cloud_automl_v1beta1_Row_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_automl_v1beta1_Row_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_Row_descriptor, + new java.lang.String[] { + "ColumnSpecIds", "Values", + }); + internal_static_google_cloud_automl_v1beta1_ExamplePayload_descriptor = + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_automl_v1beta1_ExamplePayload_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_ExamplePayload_descriptor, new java.lang.String[] { - "Image", "TextSnippet", "Payload", + "Image", "TextSnippet", "Document", "Row", "Payload", }); com.google.api.AnnotationsProto.getDescriptor(); com.google.cloud.automl.v1beta1.Io.getDescriptor(); + com.google.protobuf.AnyProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStats.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStats.java new file mode 100644 index 000000000000..bbd7e8ed3bca --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStats.java @@ -0,0 +1,2410 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_stats.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * The data statistics of a series of values that share the same DataType.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.DataStats} + */ +public final class DataStats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.DataStats) + DataStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataStats.newBuilder() to construct. + private DataStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataStats() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DataStats( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + distinctValueCount_ = input.readInt64(); + break; + } + case 16: + { + nullValueCount_ = input.readInt64(); + break; + } + case 26: + { + com.google.cloud.automl.v1beta1.Float64Stats.Builder subBuilder = null; + if (statsCase_ == 3) { + subBuilder = ((com.google.cloud.automl.v1beta1.Float64Stats) stats_).toBuilder(); + } + stats_ = + input.readMessage( + com.google.cloud.automl.v1beta1.Float64Stats.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.Float64Stats) stats_); + stats_ = subBuilder.buildPartial(); + } + statsCase_ = 3; + break; + } + case 34: + { + com.google.cloud.automl.v1beta1.StringStats.Builder subBuilder = null; + if (statsCase_ == 4) { + subBuilder = ((com.google.cloud.automl.v1beta1.StringStats) stats_).toBuilder(); + } + stats_ = + input.readMessage( + com.google.cloud.automl.v1beta1.StringStats.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.StringStats) stats_); + stats_ = subBuilder.buildPartial(); + } + statsCase_ = 4; + break; + } + case 42: + { + com.google.cloud.automl.v1beta1.TimestampStats.Builder subBuilder = null; + if (statsCase_ == 5) { + subBuilder = ((com.google.cloud.automl.v1beta1.TimestampStats) stats_).toBuilder(); + } + stats_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TimestampStats.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.TimestampStats) stats_); + stats_ = subBuilder.buildPartial(); + } + statsCase_ = 5; + break; + } + case 50: + { + com.google.cloud.automl.v1beta1.ArrayStats.Builder subBuilder = null; + if (statsCase_ == 6) { + subBuilder = ((com.google.cloud.automl.v1beta1.ArrayStats) stats_).toBuilder(); + } + stats_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ArrayStats.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.ArrayStats) stats_); + stats_ = subBuilder.buildPartial(); + } + statsCase_ = 6; + break; + } + case 58: + { + com.google.cloud.automl.v1beta1.StructStats.Builder subBuilder = null; + if (statsCase_ == 7) { + subBuilder = ((com.google.cloud.automl.v1beta1.StructStats) stats_).toBuilder(); + } + stats_ = + input.readMessage( + com.google.cloud.automl.v1beta1.StructStats.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.StructStats) stats_); + stats_ = subBuilder.buildPartial(); + } + statsCase_ = 7; + break; + } + case 66: + { + com.google.cloud.automl.v1beta1.CategoryStats.Builder subBuilder = null; + if (statsCase_ == 8) { + subBuilder = ((com.google.cloud.automl.v1beta1.CategoryStats) stats_).toBuilder(); + } + stats_ = + input.readMessage( + com.google.cloud.automl.v1beta1.CategoryStats.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.CategoryStats) stats_); + stats_ = subBuilder.buildPartial(); + } + statsCase_ = 8; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_DataStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_DataStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.DataStats.class, + com.google.cloud.automl.v1beta1.DataStats.Builder.class); + } + + private int statsCase_ = 0; + private java.lang.Object stats_; + + public enum StatsCase implements com.google.protobuf.Internal.EnumLite { + FLOAT64_STATS(3), + STRING_STATS(4), + TIMESTAMP_STATS(5), + ARRAY_STATS(6), + STRUCT_STATS(7), + CATEGORY_STATS(8), + STATS_NOT_SET(0); + private final int value; + + private StatsCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static StatsCase valueOf(int value) { + return forNumber(value); + } + + public static StatsCase forNumber(int value) { + switch (value) { + case 3: + return FLOAT64_STATS; + case 4: + return STRING_STATS; + case 5: + return TIMESTAMP_STATS; + case 6: + return ARRAY_STATS; + case 7: + return STRUCT_STATS; + case 8: + return CATEGORY_STATS; + case 0: + return STATS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public StatsCase getStatsCase() { + return StatsCase.forNumber(statsCase_); + } + + public static final int FLOAT64_STATS_FIELD_NUMBER = 3; + /** + * + * + *
+   * The statistics for FLOAT64 DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3; + */ + public boolean hasFloat64Stats() { + return statsCase_ == 3; + } + /** + * + * + *
+   * The statistics for FLOAT64 DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3; + */ + public com.google.cloud.automl.v1beta1.Float64Stats getFloat64Stats() { + if (statsCase_ == 3) { + return (com.google.cloud.automl.v1beta1.Float64Stats) stats_; + } + return com.google.cloud.automl.v1beta1.Float64Stats.getDefaultInstance(); + } + /** + * + * + *
+   * The statistics for FLOAT64 DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3; + */ + public com.google.cloud.automl.v1beta1.Float64StatsOrBuilder getFloat64StatsOrBuilder() { + if (statsCase_ == 3) { + return (com.google.cloud.automl.v1beta1.Float64Stats) stats_; + } + return com.google.cloud.automl.v1beta1.Float64Stats.getDefaultInstance(); + } + + public static final int STRING_STATS_FIELD_NUMBER = 4; + /** + * + * + *
+   * The statistics for STRING DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.StringStats string_stats = 4; + */ + public boolean hasStringStats() { + return statsCase_ == 4; + } + /** + * + * + *
+   * The statistics for STRING DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.StringStats string_stats = 4; + */ + public com.google.cloud.automl.v1beta1.StringStats getStringStats() { + if (statsCase_ == 4) { + return (com.google.cloud.automl.v1beta1.StringStats) stats_; + } + return com.google.cloud.automl.v1beta1.StringStats.getDefaultInstance(); + } + /** + * + * + *
+   * The statistics for STRING DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.StringStats string_stats = 4; + */ + public com.google.cloud.automl.v1beta1.StringStatsOrBuilder getStringStatsOrBuilder() { + if (statsCase_ == 4) { + return (com.google.cloud.automl.v1beta1.StringStats) stats_; + } + return com.google.cloud.automl.v1beta1.StringStats.getDefaultInstance(); + } + + public static final int TIMESTAMP_STATS_FIELD_NUMBER = 5; + /** + * + * + *
+   * The statistics for TIMESTAMP DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; + */ + public boolean hasTimestampStats() { + return statsCase_ == 5; + } + /** + * + * + *
+   * The statistics for TIMESTAMP DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; + */ + public com.google.cloud.automl.v1beta1.TimestampStats getTimestampStats() { + if (statsCase_ == 5) { + return (com.google.cloud.automl.v1beta1.TimestampStats) stats_; + } + return com.google.cloud.automl.v1beta1.TimestampStats.getDefaultInstance(); + } + /** + * + * + *
+   * The statistics for TIMESTAMP DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; + */ + public com.google.cloud.automl.v1beta1.TimestampStatsOrBuilder getTimestampStatsOrBuilder() { + if (statsCase_ == 5) { + return (com.google.cloud.automl.v1beta1.TimestampStats) stats_; + } + return com.google.cloud.automl.v1beta1.TimestampStats.getDefaultInstance(); + } + + public static final int ARRAY_STATS_FIELD_NUMBER = 6; + /** + * + * + *
+   * The statistics for ARRAY DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; + */ + public boolean hasArrayStats() { + return statsCase_ == 6; + } + /** + * + * + *
+   * The statistics for ARRAY DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; + */ + public com.google.cloud.automl.v1beta1.ArrayStats getArrayStats() { + if (statsCase_ == 6) { + return (com.google.cloud.automl.v1beta1.ArrayStats) stats_; + } + return com.google.cloud.automl.v1beta1.ArrayStats.getDefaultInstance(); + } + /** + * + * + *
+   * The statistics for ARRAY DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; + */ + public com.google.cloud.automl.v1beta1.ArrayStatsOrBuilder getArrayStatsOrBuilder() { + if (statsCase_ == 6) { + return (com.google.cloud.automl.v1beta1.ArrayStats) stats_; + } + return com.google.cloud.automl.v1beta1.ArrayStats.getDefaultInstance(); + } + + public static final int STRUCT_STATS_FIELD_NUMBER = 7; + /** + * + * + *
+   * The statistics for STRUCT DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; + */ + public boolean hasStructStats() { + return statsCase_ == 7; + } + /** + * + * + *
+   * The statistics for STRUCT DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; + */ + public com.google.cloud.automl.v1beta1.StructStats getStructStats() { + if (statsCase_ == 7) { + return (com.google.cloud.automl.v1beta1.StructStats) stats_; + } + return com.google.cloud.automl.v1beta1.StructStats.getDefaultInstance(); + } + /** + * + * + *
+   * The statistics for STRUCT DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; + */ + public com.google.cloud.automl.v1beta1.StructStatsOrBuilder getStructStatsOrBuilder() { + if (statsCase_ == 7) { + return (com.google.cloud.automl.v1beta1.StructStats) stats_; + } + return com.google.cloud.automl.v1beta1.StructStats.getDefaultInstance(); + } + + public static final int CATEGORY_STATS_FIELD_NUMBER = 8; + /** + * + * + *
+   * The statistics for CATEGORY DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; + */ + public boolean hasCategoryStats() { + return statsCase_ == 8; + } + /** + * + * + *
+   * The statistics for CATEGORY DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; + */ + public com.google.cloud.automl.v1beta1.CategoryStats getCategoryStats() { + if (statsCase_ == 8) { + return (com.google.cloud.automl.v1beta1.CategoryStats) stats_; + } + return com.google.cloud.automl.v1beta1.CategoryStats.getDefaultInstance(); + } + /** + * + * + *
+   * The statistics for CATEGORY DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; + */ + public com.google.cloud.automl.v1beta1.CategoryStatsOrBuilder getCategoryStatsOrBuilder() { + if (statsCase_ == 8) { + return (com.google.cloud.automl.v1beta1.CategoryStats) stats_; + } + return com.google.cloud.automl.v1beta1.CategoryStats.getDefaultInstance(); + } + + public static final int DISTINCT_VALUE_COUNT_FIELD_NUMBER = 1; + private long distinctValueCount_; + /** + * + * + *
+   * The number of distinct values.
+   * 
+ * + * int64 distinct_value_count = 1; + */ + public long getDistinctValueCount() { + return distinctValueCount_; + } + + public static final int NULL_VALUE_COUNT_FIELD_NUMBER = 2; + private long nullValueCount_; + /** + * + * + *
+   * The number of values that are null.
+   * 
+ * + * int64 null_value_count = 2; + */ + public long getNullValueCount() { + return nullValueCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (distinctValueCount_ != 0L) { + output.writeInt64(1, distinctValueCount_); + } + if (nullValueCount_ != 0L) { + output.writeInt64(2, nullValueCount_); + } + if (statsCase_ == 3) { + output.writeMessage(3, (com.google.cloud.automl.v1beta1.Float64Stats) stats_); + } + if (statsCase_ == 4) { + output.writeMessage(4, (com.google.cloud.automl.v1beta1.StringStats) stats_); + } + if (statsCase_ == 5) { + output.writeMessage(5, (com.google.cloud.automl.v1beta1.TimestampStats) stats_); + } + if (statsCase_ == 6) { + output.writeMessage(6, (com.google.cloud.automl.v1beta1.ArrayStats) stats_); + } + if (statsCase_ == 7) { + output.writeMessage(7, (com.google.cloud.automl.v1beta1.StructStats) stats_); + } + if (statsCase_ == 8) { + output.writeMessage(8, (com.google.cloud.automl.v1beta1.CategoryStats) stats_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (distinctValueCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, distinctValueCount_); + } + if (nullValueCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, nullValueCount_); + } + if (statsCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.automl.v1beta1.Float64Stats) stats_); + } + if (statsCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.automl.v1beta1.StringStats) stats_); + } + if (statsCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.automl.v1beta1.TimestampStats) stats_); + } + if (statsCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.automl.v1beta1.ArrayStats) stats_); + } + if (statsCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.automl.v1beta1.StructStats) stats_); + } + if (statsCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.automl.v1beta1.CategoryStats) stats_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.DataStats)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.DataStats other = + (com.google.cloud.automl.v1beta1.DataStats) obj; + + if (getDistinctValueCount() != other.getDistinctValueCount()) return false; + if (getNullValueCount() != other.getNullValueCount()) return false; + if (!getStatsCase().equals(other.getStatsCase())) return false; + switch (statsCase_) { + case 3: + if (!getFloat64Stats().equals(other.getFloat64Stats())) return false; + break; + case 4: + if (!getStringStats().equals(other.getStringStats())) return false; + break; + case 5: + if (!getTimestampStats().equals(other.getTimestampStats())) return false; + break; + case 6: + if (!getArrayStats().equals(other.getArrayStats())) return false; + break; + case 7: + if (!getStructStats().equals(other.getStructStats())) return false; + break; + case 8: + if (!getCategoryStats().equals(other.getCategoryStats())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISTINCT_VALUE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDistinctValueCount()); + hash = (37 * hash) + NULL_VALUE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNullValueCount()); + switch (statsCase_) { + case 3: + hash = (37 * hash) + FLOAT64_STATS_FIELD_NUMBER; + hash = (53 * hash) + getFloat64Stats().hashCode(); + break; + case 4: + hash = (37 * hash) + STRING_STATS_FIELD_NUMBER; + hash = (53 * hash) + getStringStats().hashCode(); + break; + case 5: + hash = (37 * hash) + TIMESTAMP_STATS_FIELD_NUMBER; + hash = (53 * hash) + getTimestampStats().hashCode(); + break; + case 6: + hash = (37 * hash) + ARRAY_STATS_FIELD_NUMBER; + hash = (53 * hash) + getArrayStats().hashCode(); + break; + case 7: + hash = (37 * hash) + STRUCT_STATS_FIELD_NUMBER; + hash = (53 * hash) + getStructStats().hashCode(); + break; + case 8: + hash = (37 * hash) + CATEGORY_STATS_FIELD_NUMBER; + hash = (53 * hash) + getCategoryStats().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.DataStats parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.DataStats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DataStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.DataStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DataStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.DataStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DataStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.DataStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DataStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.DataStats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DataStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.DataStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.DataStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The data statistics of a series of values that share the same DataType.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.DataStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.DataStats) + com.google.cloud.automl.v1beta1.DataStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_DataStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_DataStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.DataStats.class, + com.google.cloud.automl.v1beta1.DataStats.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.DataStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + distinctValueCount_ = 0L; + + nullValueCount_ = 0L; + + statsCase_ = 0; + stats_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_DataStats_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DataStats getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.DataStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DataStats build() { + com.google.cloud.automl.v1beta1.DataStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DataStats buildPartial() { + com.google.cloud.automl.v1beta1.DataStats result = + new com.google.cloud.automl.v1beta1.DataStats(this); + if (statsCase_ == 3) { + if (float64StatsBuilder_ == null) { + result.stats_ = stats_; + } else { + result.stats_ = float64StatsBuilder_.build(); + } + } + if (statsCase_ == 4) { + if (stringStatsBuilder_ == null) { + result.stats_ = stats_; + } else { + result.stats_ = stringStatsBuilder_.build(); + } + } + if (statsCase_ == 5) { + if (timestampStatsBuilder_ == null) { + result.stats_ = stats_; + } else { + result.stats_ = timestampStatsBuilder_.build(); + } + } + if (statsCase_ == 6) { + if (arrayStatsBuilder_ == null) { + result.stats_ = stats_; + } else { + result.stats_ = arrayStatsBuilder_.build(); + } + } + if (statsCase_ == 7) { + if (structStatsBuilder_ == null) { + result.stats_ = stats_; + } else { + result.stats_ = structStatsBuilder_.build(); + } + } + if (statsCase_ == 8) { + if (categoryStatsBuilder_ == null) { + result.stats_ = stats_; + } else { + result.stats_ = categoryStatsBuilder_.build(); + } + } + result.distinctValueCount_ = distinctValueCount_; + result.nullValueCount_ = nullValueCount_; + result.statsCase_ = statsCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.DataStats) { + return mergeFrom((com.google.cloud.automl.v1beta1.DataStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.DataStats other) { + if (other == com.google.cloud.automl.v1beta1.DataStats.getDefaultInstance()) return this; + if (other.getDistinctValueCount() != 0L) { + setDistinctValueCount(other.getDistinctValueCount()); + } + if (other.getNullValueCount() != 0L) { + setNullValueCount(other.getNullValueCount()); + } + switch (other.getStatsCase()) { + case FLOAT64_STATS: + { + mergeFloat64Stats(other.getFloat64Stats()); + break; + } + case STRING_STATS: + { + mergeStringStats(other.getStringStats()); + break; + } + case TIMESTAMP_STATS: + { + mergeTimestampStats(other.getTimestampStats()); + break; + } + case ARRAY_STATS: + { + mergeArrayStats(other.getArrayStats()); + break; + } + case STRUCT_STATS: + { + mergeStructStats(other.getStructStats()); + break; + } + case CATEGORY_STATS: + { + mergeCategoryStats(other.getCategoryStats()); + break; + } + case STATS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.DataStats parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.DataStats) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int statsCase_ = 0; + private java.lang.Object stats_; + + public StatsCase getStatsCase() { + return StatsCase.forNumber(statsCase_); + } + + public Builder clearStats() { + statsCase_ = 0; + stats_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.Float64Stats, + com.google.cloud.automl.v1beta1.Float64Stats.Builder, + com.google.cloud.automl.v1beta1.Float64StatsOrBuilder> + float64StatsBuilder_; + /** + * + * + *
+     * The statistics for FLOAT64 DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3; + */ + public boolean hasFloat64Stats() { + return statsCase_ == 3; + } + /** + * + * + *
+     * The statistics for FLOAT64 DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3; + */ + public com.google.cloud.automl.v1beta1.Float64Stats getFloat64Stats() { + if (float64StatsBuilder_ == null) { + if (statsCase_ == 3) { + return (com.google.cloud.automl.v1beta1.Float64Stats) stats_; + } + return com.google.cloud.automl.v1beta1.Float64Stats.getDefaultInstance(); + } else { + if (statsCase_ == 3) { + return float64StatsBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.Float64Stats.getDefaultInstance(); + } + } + /** + * + * + *
+     * The statistics for FLOAT64 DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3; + */ + public Builder setFloat64Stats(com.google.cloud.automl.v1beta1.Float64Stats value) { + if (float64StatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stats_ = value; + onChanged(); + } else { + float64StatsBuilder_.setMessage(value); + } + statsCase_ = 3; + return this; + } + /** + * + * + *
+     * The statistics for FLOAT64 DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3; + */ + public Builder setFloat64Stats( + com.google.cloud.automl.v1beta1.Float64Stats.Builder builderForValue) { + if (float64StatsBuilder_ == null) { + stats_ = builderForValue.build(); + onChanged(); + } else { + float64StatsBuilder_.setMessage(builderForValue.build()); + } + statsCase_ = 3; + return this; + } + /** + * + * + *
+     * The statistics for FLOAT64 DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3; + */ + public Builder mergeFloat64Stats(com.google.cloud.automl.v1beta1.Float64Stats value) { + if (float64StatsBuilder_ == null) { + if (statsCase_ == 3 + && stats_ != com.google.cloud.automl.v1beta1.Float64Stats.getDefaultInstance()) { + stats_ = + com.google.cloud.automl.v1beta1.Float64Stats.newBuilder( + (com.google.cloud.automl.v1beta1.Float64Stats) stats_) + .mergeFrom(value) + .buildPartial(); + } else { + stats_ = value; + } + onChanged(); + } else { + if (statsCase_ == 3) { + float64StatsBuilder_.mergeFrom(value); + } + float64StatsBuilder_.setMessage(value); + } + statsCase_ = 3; + return this; + } + /** + * + * + *
+     * The statistics for FLOAT64 DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3; + */ + public Builder clearFloat64Stats() { + if (float64StatsBuilder_ == null) { + if (statsCase_ == 3) { + statsCase_ = 0; + stats_ = null; + onChanged(); + } + } else { + if (statsCase_ == 3) { + statsCase_ = 0; + stats_ = null; + } + float64StatsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The statistics for FLOAT64 DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3; + */ + public com.google.cloud.automl.v1beta1.Float64Stats.Builder getFloat64StatsBuilder() { + return getFloat64StatsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The statistics for FLOAT64 DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3; + */ + public com.google.cloud.automl.v1beta1.Float64StatsOrBuilder getFloat64StatsOrBuilder() { + if ((statsCase_ == 3) && (float64StatsBuilder_ != null)) { + return float64StatsBuilder_.getMessageOrBuilder(); + } else { + if (statsCase_ == 3) { + return (com.google.cloud.automl.v1beta1.Float64Stats) stats_; + } + return com.google.cloud.automl.v1beta1.Float64Stats.getDefaultInstance(); + } + } + /** + * + * + *
+     * The statistics for FLOAT64 DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.Float64Stats, + com.google.cloud.automl.v1beta1.Float64Stats.Builder, + com.google.cloud.automl.v1beta1.Float64StatsOrBuilder> + getFloat64StatsFieldBuilder() { + if (float64StatsBuilder_ == null) { + if (!(statsCase_ == 3)) { + stats_ = com.google.cloud.automl.v1beta1.Float64Stats.getDefaultInstance(); + } + float64StatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.Float64Stats, + com.google.cloud.automl.v1beta1.Float64Stats.Builder, + com.google.cloud.automl.v1beta1.Float64StatsOrBuilder>( + (com.google.cloud.automl.v1beta1.Float64Stats) stats_, + getParentForChildren(), + isClean()); + stats_ = null; + } + statsCase_ = 3; + onChanged(); + ; + return float64StatsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.StringStats, + com.google.cloud.automl.v1beta1.StringStats.Builder, + com.google.cloud.automl.v1beta1.StringStatsOrBuilder> + stringStatsBuilder_; + /** + * + * + *
+     * The statistics for STRING DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.StringStats string_stats = 4; + */ + public boolean hasStringStats() { + return statsCase_ == 4; + } + /** + * + * + *
+     * The statistics for STRING DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.StringStats string_stats = 4; + */ + public com.google.cloud.automl.v1beta1.StringStats getStringStats() { + if (stringStatsBuilder_ == null) { + if (statsCase_ == 4) { + return (com.google.cloud.automl.v1beta1.StringStats) stats_; + } + return com.google.cloud.automl.v1beta1.StringStats.getDefaultInstance(); + } else { + if (statsCase_ == 4) { + return stringStatsBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.StringStats.getDefaultInstance(); + } + } + /** + * + * + *
+     * The statistics for STRING DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.StringStats string_stats = 4; + */ + public Builder setStringStats(com.google.cloud.automl.v1beta1.StringStats value) { + if (stringStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stats_ = value; + onChanged(); + } else { + stringStatsBuilder_.setMessage(value); + } + statsCase_ = 4; + return this; + } + /** + * + * + *
+     * The statistics for STRING DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.StringStats string_stats = 4; + */ + public Builder setStringStats( + com.google.cloud.automl.v1beta1.StringStats.Builder builderForValue) { + if (stringStatsBuilder_ == null) { + stats_ = builderForValue.build(); + onChanged(); + } else { + stringStatsBuilder_.setMessage(builderForValue.build()); + } + statsCase_ = 4; + return this; + } + /** + * + * + *
+     * The statistics for STRING DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.StringStats string_stats = 4; + */ + public Builder mergeStringStats(com.google.cloud.automl.v1beta1.StringStats value) { + if (stringStatsBuilder_ == null) { + if (statsCase_ == 4 + && stats_ != com.google.cloud.automl.v1beta1.StringStats.getDefaultInstance()) { + stats_ = + com.google.cloud.automl.v1beta1.StringStats.newBuilder( + (com.google.cloud.automl.v1beta1.StringStats) stats_) + .mergeFrom(value) + .buildPartial(); + } else { + stats_ = value; + } + onChanged(); + } else { + if (statsCase_ == 4) { + stringStatsBuilder_.mergeFrom(value); + } + stringStatsBuilder_.setMessage(value); + } + statsCase_ = 4; + return this; + } + /** + * + * + *
+     * The statistics for STRING DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.StringStats string_stats = 4; + */ + public Builder clearStringStats() { + if (stringStatsBuilder_ == null) { + if (statsCase_ == 4) { + statsCase_ = 0; + stats_ = null; + onChanged(); + } + } else { + if (statsCase_ == 4) { + statsCase_ = 0; + stats_ = null; + } + stringStatsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The statistics for STRING DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.StringStats string_stats = 4; + */ + public com.google.cloud.automl.v1beta1.StringStats.Builder getStringStatsBuilder() { + return getStringStatsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The statistics for STRING DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.StringStats string_stats = 4; + */ + public com.google.cloud.automl.v1beta1.StringStatsOrBuilder getStringStatsOrBuilder() { + if ((statsCase_ == 4) && (stringStatsBuilder_ != null)) { + return stringStatsBuilder_.getMessageOrBuilder(); + } else { + if (statsCase_ == 4) { + return (com.google.cloud.automl.v1beta1.StringStats) stats_; + } + return com.google.cloud.automl.v1beta1.StringStats.getDefaultInstance(); + } + } + /** + * + * + *
+     * The statistics for STRING DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.StringStats string_stats = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.StringStats, + com.google.cloud.automl.v1beta1.StringStats.Builder, + com.google.cloud.automl.v1beta1.StringStatsOrBuilder> + getStringStatsFieldBuilder() { + if (stringStatsBuilder_ == null) { + if (!(statsCase_ == 4)) { + stats_ = com.google.cloud.automl.v1beta1.StringStats.getDefaultInstance(); + } + stringStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.StringStats, + com.google.cloud.automl.v1beta1.StringStats.Builder, + com.google.cloud.automl.v1beta1.StringStatsOrBuilder>( + (com.google.cloud.automl.v1beta1.StringStats) stats_, + getParentForChildren(), + isClean()); + stats_ = null; + } + statsCase_ = 4; + onChanged(); + ; + return stringStatsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TimestampStats, + com.google.cloud.automl.v1beta1.TimestampStats.Builder, + com.google.cloud.automl.v1beta1.TimestampStatsOrBuilder> + timestampStatsBuilder_; + /** + * + * + *
+     * The statistics for TIMESTAMP DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; + */ + public boolean hasTimestampStats() { + return statsCase_ == 5; + } + /** + * + * + *
+     * The statistics for TIMESTAMP DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; + */ + public com.google.cloud.automl.v1beta1.TimestampStats getTimestampStats() { + if (timestampStatsBuilder_ == null) { + if (statsCase_ == 5) { + return (com.google.cloud.automl.v1beta1.TimestampStats) stats_; + } + return com.google.cloud.automl.v1beta1.TimestampStats.getDefaultInstance(); + } else { + if (statsCase_ == 5) { + return timestampStatsBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.TimestampStats.getDefaultInstance(); + } + } + /** + * + * + *
+     * The statistics for TIMESTAMP DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; + */ + public Builder setTimestampStats(com.google.cloud.automl.v1beta1.TimestampStats value) { + if (timestampStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stats_ = value; + onChanged(); + } else { + timestampStatsBuilder_.setMessage(value); + } + statsCase_ = 5; + return this; + } + /** + * + * + *
+     * The statistics for TIMESTAMP DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; + */ + public Builder setTimestampStats( + com.google.cloud.automl.v1beta1.TimestampStats.Builder builderForValue) { + if (timestampStatsBuilder_ == null) { + stats_ = builderForValue.build(); + onChanged(); + } else { + timestampStatsBuilder_.setMessage(builderForValue.build()); + } + statsCase_ = 5; + return this; + } + /** + * + * + *
+     * The statistics for TIMESTAMP DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; + */ + public Builder mergeTimestampStats(com.google.cloud.automl.v1beta1.TimestampStats value) { + if (timestampStatsBuilder_ == null) { + if (statsCase_ == 5 + && stats_ != com.google.cloud.automl.v1beta1.TimestampStats.getDefaultInstance()) { + stats_ = + com.google.cloud.automl.v1beta1.TimestampStats.newBuilder( + (com.google.cloud.automl.v1beta1.TimestampStats) stats_) + .mergeFrom(value) + .buildPartial(); + } else { + stats_ = value; + } + onChanged(); + } else { + if (statsCase_ == 5) { + timestampStatsBuilder_.mergeFrom(value); + } + timestampStatsBuilder_.setMessage(value); + } + statsCase_ = 5; + return this; + } + /** + * + * + *
+     * The statistics for TIMESTAMP DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; + */ + public Builder clearTimestampStats() { + if (timestampStatsBuilder_ == null) { + if (statsCase_ == 5) { + statsCase_ = 0; + stats_ = null; + onChanged(); + } + } else { + if (statsCase_ == 5) { + statsCase_ = 0; + stats_ = null; + } + timestampStatsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The statistics for TIMESTAMP DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; + */ + public com.google.cloud.automl.v1beta1.TimestampStats.Builder getTimestampStatsBuilder() { + return getTimestampStatsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The statistics for TIMESTAMP DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; + */ + public com.google.cloud.automl.v1beta1.TimestampStatsOrBuilder getTimestampStatsOrBuilder() { + if ((statsCase_ == 5) && (timestampStatsBuilder_ != null)) { + return timestampStatsBuilder_.getMessageOrBuilder(); + } else { + if (statsCase_ == 5) { + return (com.google.cloud.automl.v1beta1.TimestampStats) stats_; + } + return com.google.cloud.automl.v1beta1.TimestampStats.getDefaultInstance(); + } + } + /** + * + * + *
+     * The statistics for TIMESTAMP DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TimestampStats, + com.google.cloud.automl.v1beta1.TimestampStats.Builder, + com.google.cloud.automl.v1beta1.TimestampStatsOrBuilder> + getTimestampStatsFieldBuilder() { + if (timestampStatsBuilder_ == null) { + if (!(statsCase_ == 5)) { + stats_ = com.google.cloud.automl.v1beta1.TimestampStats.getDefaultInstance(); + } + timestampStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TimestampStats, + com.google.cloud.automl.v1beta1.TimestampStats.Builder, + com.google.cloud.automl.v1beta1.TimestampStatsOrBuilder>( + (com.google.cloud.automl.v1beta1.TimestampStats) stats_, + getParentForChildren(), + isClean()); + stats_ = null; + } + statsCase_ = 5; + onChanged(); + ; + return timestampStatsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ArrayStats, + com.google.cloud.automl.v1beta1.ArrayStats.Builder, + com.google.cloud.automl.v1beta1.ArrayStatsOrBuilder> + arrayStatsBuilder_; + /** + * + * + *
+     * The statistics for ARRAY DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; + */ + public boolean hasArrayStats() { + return statsCase_ == 6; + } + /** + * + * + *
+     * The statistics for ARRAY DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; + */ + public com.google.cloud.automl.v1beta1.ArrayStats getArrayStats() { + if (arrayStatsBuilder_ == null) { + if (statsCase_ == 6) { + return (com.google.cloud.automl.v1beta1.ArrayStats) stats_; + } + return com.google.cloud.automl.v1beta1.ArrayStats.getDefaultInstance(); + } else { + if (statsCase_ == 6) { + return arrayStatsBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.ArrayStats.getDefaultInstance(); + } + } + /** + * + * + *
+     * The statistics for ARRAY DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; + */ + public Builder setArrayStats(com.google.cloud.automl.v1beta1.ArrayStats value) { + if (arrayStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stats_ = value; + onChanged(); + } else { + arrayStatsBuilder_.setMessage(value); + } + statsCase_ = 6; + return this; + } + /** + * + * + *
+     * The statistics for ARRAY DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; + */ + public Builder setArrayStats( + com.google.cloud.automl.v1beta1.ArrayStats.Builder builderForValue) { + if (arrayStatsBuilder_ == null) { + stats_ = builderForValue.build(); + onChanged(); + } else { + arrayStatsBuilder_.setMessage(builderForValue.build()); + } + statsCase_ = 6; + return this; + } + /** + * + * + *
+     * The statistics for ARRAY DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; + */ + public Builder mergeArrayStats(com.google.cloud.automl.v1beta1.ArrayStats value) { + if (arrayStatsBuilder_ == null) { + if (statsCase_ == 6 + && stats_ != com.google.cloud.automl.v1beta1.ArrayStats.getDefaultInstance()) { + stats_ = + com.google.cloud.automl.v1beta1.ArrayStats.newBuilder( + (com.google.cloud.automl.v1beta1.ArrayStats) stats_) + .mergeFrom(value) + .buildPartial(); + } else { + stats_ = value; + } + onChanged(); + } else { + if (statsCase_ == 6) { + arrayStatsBuilder_.mergeFrom(value); + } + arrayStatsBuilder_.setMessage(value); + } + statsCase_ = 6; + return this; + } + /** + * + * + *
+     * The statistics for ARRAY DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; + */ + public Builder clearArrayStats() { + if (arrayStatsBuilder_ == null) { + if (statsCase_ == 6) { + statsCase_ = 0; + stats_ = null; + onChanged(); + } + } else { + if (statsCase_ == 6) { + statsCase_ = 0; + stats_ = null; + } + arrayStatsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The statistics for ARRAY DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; + */ + public com.google.cloud.automl.v1beta1.ArrayStats.Builder getArrayStatsBuilder() { + return getArrayStatsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The statistics for ARRAY DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; + */ + public com.google.cloud.automl.v1beta1.ArrayStatsOrBuilder getArrayStatsOrBuilder() { + if ((statsCase_ == 6) && (arrayStatsBuilder_ != null)) { + return arrayStatsBuilder_.getMessageOrBuilder(); + } else { + if (statsCase_ == 6) { + return (com.google.cloud.automl.v1beta1.ArrayStats) stats_; + } + return com.google.cloud.automl.v1beta1.ArrayStats.getDefaultInstance(); + } + } + /** + * + * + *
+     * The statistics for ARRAY DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ArrayStats, + com.google.cloud.automl.v1beta1.ArrayStats.Builder, + com.google.cloud.automl.v1beta1.ArrayStatsOrBuilder> + getArrayStatsFieldBuilder() { + if (arrayStatsBuilder_ == null) { + if (!(statsCase_ == 6)) { + stats_ = com.google.cloud.automl.v1beta1.ArrayStats.getDefaultInstance(); + } + arrayStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ArrayStats, + com.google.cloud.automl.v1beta1.ArrayStats.Builder, + com.google.cloud.automl.v1beta1.ArrayStatsOrBuilder>( + (com.google.cloud.automl.v1beta1.ArrayStats) stats_, + getParentForChildren(), + isClean()); + stats_ = null; + } + statsCase_ = 6; + onChanged(); + ; + return arrayStatsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.StructStats, + com.google.cloud.automl.v1beta1.StructStats.Builder, + com.google.cloud.automl.v1beta1.StructStatsOrBuilder> + structStatsBuilder_; + /** + * + * + *
+     * The statistics for STRUCT DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; + */ + public boolean hasStructStats() { + return statsCase_ == 7; + } + /** + * + * + *
+     * The statistics for STRUCT DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; + */ + public com.google.cloud.automl.v1beta1.StructStats getStructStats() { + if (structStatsBuilder_ == null) { + if (statsCase_ == 7) { + return (com.google.cloud.automl.v1beta1.StructStats) stats_; + } + return com.google.cloud.automl.v1beta1.StructStats.getDefaultInstance(); + } else { + if (statsCase_ == 7) { + return structStatsBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.StructStats.getDefaultInstance(); + } + } + /** + * + * + *
+     * The statistics for STRUCT DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; + */ + public Builder setStructStats(com.google.cloud.automl.v1beta1.StructStats value) { + if (structStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stats_ = value; + onChanged(); + } else { + structStatsBuilder_.setMessage(value); + } + statsCase_ = 7; + return this; + } + /** + * + * + *
+     * The statistics for STRUCT DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; + */ + public Builder setStructStats( + com.google.cloud.automl.v1beta1.StructStats.Builder builderForValue) { + if (structStatsBuilder_ == null) { + stats_ = builderForValue.build(); + onChanged(); + } else { + structStatsBuilder_.setMessage(builderForValue.build()); + } + statsCase_ = 7; + return this; + } + /** + * + * + *
+     * The statistics for STRUCT DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; + */ + public Builder mergeStructStats(com.google.cloud.automl.v1beta1.StructStats value) { + if (structStatsBuilder_ == null) { + if (statsCase_ == 7 + && stats_ != com.google.cloud.automl.v1beta1.StructStats.getDefaultInstance()) { + stats_ = + com.google.cloud.automl.v1beta1.StructStats.newBuilder( + (com.google.cloud.automl.v1beta1.StructStats) stats_) + .mergeFrom(value) + .buildPartial(); + } else { + stats_ = value; + } + onChanged(); + } else { + if (statsCase_ == 7) { + structStatsBuilder_.mergeFrom(value); + } + structStatsBuilder_.setMessage(value); + } + statsCase_ = 7; + return this; + } + /** + * + * + *
+     * The statistics for STRUCT DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; + */ + public Builder clearStructStats() { + if (structStatsBuilder_ == null) { + if (statsCase_ == 7) { + statsCase_ = 0; + stats_ = null; + onChanged(); + } + } else { + if (statsCase_ == 7) { + statsCase_ = 0; + stats_ = null; + } + structStatsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The statistics for STRUCT DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; + */ + public com.google.cloud.automl.v1beta1.StructStats.Builder getStructStatsBuilder() { + return getStructStatsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The statistics for STRUCT DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; + */ + public com.google.cloud.automl.v1beta1.StructStatsOrBuilder getStructStatsOrBuilder() { + if ((statsCase_ == 7) && (structStatsBuilder_ != null)) { + return structStatsBuilder_.getMessageOrBuilder(); + } else { + if (statsCase_ == 7) { + return (com.google.cloud.automl.v1beta1.StructStats) stats_; + } + return com.google.cloud.automl.v1beta1.StructStats.getDefaultInstance(); + } + } + /** + * + * + *
+     * The statistics for STRUCT DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.StructStats, + com.google.cloud.automl.v1beta1.StructStats.Builder, + com.google.cloud.automl.v1beta1.StructStatsOrBuilder> + getStructStatsFieldBuilder() { + if (structStatsBuilder_ == null) { + if (!(statsCase_ == 7)) { + stats_ = com.google.cloud.automl.v1beta1.StructStats.getDefaultInstance(); + } + structStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.StructStats, + com.google.cloud.automl.v1beta1.StructStats.Builder, + com.google.cloud.automl.v1beta1.StructStatsOrBuilder>( + (com.google.cloud.automl.v1beta1.StructStats) stats_, + getParentForChildren(), + isClean()); + stats_ = null; + } + statsCase_ = 7; + onChanged(); + ; + return structStatsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.CategoryStats, + com.google.cloud.automl.v1beta1.CategoryStats.Builder, + com.google.cloud.automl.v1beta1.CategoryStatsOrBuilder> + categoryStatsBuilder_; + /** + * + * + *
+     * The statistics for CATEGORY DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; + */ + public boolean hasCategoryStats() { + return statsCase_ == 8; + } + /** + * + * + *
+     * The statistics for CATEGORY DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; + */ + public com.google.cloud.automl.v1beta1.CategoryStats getCategoryStats() { + if (categoryStatsBuilder_ == null) { + if (statsCase_ == 8) { + return (com.google.cloud.automl.v1beta1.CategoryStats) stats_; + } + return com.google.cloud.automl.v1beta1.CategoryStats.getDefaultInstance(); + } else { + if (statsCase_ == 8) { + return categoryStatsBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.CategoryStats.getDefaultInstance(); + } + } + /** + * + * + *
+     * The statistics for CATEGORY DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; + */ + public Builder setCategoryStats(com.google.cloud.automl.v1beta1.CategoryStats value) { + if (categoryStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stats_ = value; + onChanged(); + } else { + categoryStatsBuilder_.setMessage(value); + } + statsCase_ = 8; + return this; + } + /** + * + * + *
+     * The statistics for CATEGORY DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; + */ + public Builder setCategoryStats( + com.google.cloud.automl.v1beta1.CategoryStats.Builder builderForValue) { + if (categoryStatsBuilder_ == null) { + stats_ = builderForValue.build(); + onChanged(); + } else { + categoryStatsBuilder_.setMessage(builderForValue.build()); + } + statsCase_ = 8; + return this; + } + /** + * + * + *
+     * The statistics for CATEGORY DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; + */ + public Builder mergeCategoryStats(com.google.cloud.automl.v1beta1.CategoryStats value) { + if (categoryStatsBuilder_ == null) { + if (statsCase_ == 8 + && stats_ != com.google.cloud.automl.v1beta1.CategoryStats.getDefaultInstance()) { + stats_ = + com.google.cloud.automl.v1beta1.CategoryStats.newBuilder( + (com.google.cloud.automl.v1beta1.CategoryStats) stats_) + .mergeFrom(value) + .buildPartial(); + } else { + stats_ = value; + } + onChanged(); + } else { + if (statsCase_ == 8) { + categoryStatsBuilder_.mergeFrom(value); + } + categoryStatsBuilder_.setMessage(value); + } + statsCase_ = 8; + return this; + } + /** + * + * + *
+     * The statistics for CATEGORY DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; + */ + public Builder clearCategoryStats() { + if (categoryStatsBuilder_ == null) { + if (statsCase_ == 8) { + statsCase_ = 0; + stats_ = null; + onChanged(); + } + } else { + if (statsCase_ == 8) { + statsCase_ = 0; + stats_ = null; + } + categoryStatsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The statistics for CATEGORY DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; + */ + public com.google.cloud.automl.v1beta1.CategoryStats.Builder getCategoryStatsBuilder() { + return getCategoryStatsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The statistics for CATEGORY DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; + */ + public com.google.cloud.automl.v1beta1.CategoryStatsOrBuilder getCategoryStatsOrBuilder() { + if ((statsCase_ == 8) && (categoryStatsBuilder_ != null)) { + return categoryStatsBuilder_.getMessageOrBuilder(); + } else { + if (statsCase_ == 8) { + return (com.google.cloud.automl.v1beta1.CategoryStats) stats_; + } + return com.google.cloud.automl.v1beta1.CategoryStats.getDefaultInstance(); + } + } + /** + * + * + *
+     * The statistics for CATEGORY DataType.
+     * 
+ * + * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.CategoryStats, + com.google.cloud.automl.v1beta1.CategoryStats.Builder, + com.google.cloud.automl.v1beta1.CategoryStatsOrBuilder> + getCategoryStatsFieldBuilder() { + if (categoryStatsBuilder_ == null) { + if (!(statsCase_ == 8)) { + stats_ = com.google.cloud.automl.v1beta1.CategoryStats.getDefaultInstance(); + } + categoryStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.CategoryStats, + com.google.cloud.automl.v1beta1.CategoryStats.Builder, + com.google.cloud.automl.v1beta1.CategoryStatsOrBuilder>( + (com.google.cloud.automl.v1beta1.CategoryStats) stats_, + getParentForChildren(), + isClean()); + stats_ = null; + } + statsCase_ = 8; + onChanged(); + ; + return categoryStatsBuilder_; + } + + private long distinctValueCount_; + /** + * + * + *
+     * The number of distinct values.
+     * 
+ * + * int64 distinct_value_count = 1; + */ + public long getDistinctValueCount() { + return distinctValueCount_; + } + /** + * + * + *
+     * The number of distinct values.
+     * 
+ * + * int64 distinct_value_count = 1; + */ + public Builder setDistinctValueCount(long value) { + + distinctValueCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of distinct values.
+     * 
+ * + * int64 distinct_value_count = 1; + */ + public Builder clearDistinctValueCount() { + + distinctValueCount_ = 0L; + onChanged(); + return this; + } + + private long nullValueCount_; + /** + * + * + *
+     * The number of values that are null.
+     * 
+ * + * int64 null_value_count = 2; + */ + public long getNullValueCount() { + return nullValueCount_; + } + /** + * + * + *
+     * The number of values that are null.
+     * 
+ * + * int64 null_value_count = 2; + */ + public Builder setNullValueCount(long value) { + + nullValueCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of values that are null.
+     * 
+ * + * int64 null_value_count = 2; + */ + public Builder clearNullValueCount() { + + nullValueCount_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.DataStats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.DataStats) + private static final com.google.cloud.automl.v1beta1.DataStats DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.DataStats(); + } + + public static com.google.cloud.automl.v1beta1.DataStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DataStats(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DataStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOrBuilder.java new file mode 100644 index 000000000000..3fde4e4c46a0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOrBuilder.java @@ -0,0 +1,220 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_stats.proto + +package com.google.cloud.automl.v1beta1; + +public interface DataStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.DataStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The statistics for FLOAT64 DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3; + */ + boolean hasFloat64Stats(); + /** + * + * + *
+   * The statistics for FLOAT64 DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3; + */ + com.google.cloud.automl.v1beta1.Float64Stats getFloat64Stats(); + /** + * + * + *
+   * The statistics for FLOAT64 DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.Float64Stats float64_stats = 3; + */ + com.google.cloud.automl.v1beta1.Float64StatsOrBuilder getFloat64StatsOrBuilder(); + + /** + * + * + *
+   * The statistics for STRING DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.StringStats string_stats = 4; + */ + boolean hasStringStats(); + /** + * + * + *
+   * The statistics for STRING DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.StringStats string_stats = 4; + */ + com.google.cloud.automl.v1beta1.StringStats getStringStats(); + /** + * + * + *
+   * The statistics for STRING DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.StringStats string_stats = 4; + */ + com.google.cloud.automl.v1beta1.StringStatsOrBuilder getStringStatsOrBuilder(); + + /** + * + * + *
+   * The statistics for TIMESTAMP DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; + */ + boolean hasTimestampStats(); + /** + * + * + *
+   * The statistics for TIMESTAMP DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; + */ + com.google.cloud.automl.v1beta1.TimestampStats getTimestampStats(); + /** + * + * + *
+   * The statistics for TIMESTAMP DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.TimestampStats timestamp_stats = 5; + */ + com.google.cloud.automl.v1beta1.TimestampStatsOrBuilder getTimestampStatsOrBuilder(); + + /** + * + * + *
+   * The statistics for ARRAY DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; + */ + boolean hasArrayStats(); + /** + * + * + *
+   * The statistics for ARRAY DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; + */ + com.google.cloud.automl.v1beta1.ArrayStats getArrayStats(); + /** + * + * + *
+   * The statistics for ARRAY DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.ArrayStats array_stats = 6; + */ + com.google.cloud.automl.v1beta1.ArrayStatsOrBuilder getArrayStatsOrBuilder(); + + /** + * + * + *
+   * The statistics for STRUCT DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; + */ + boolean hasStructStats(); + /** + * + * + *
+   * The statistics for STRUCT DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; + */ + com.google.cloud.automl.v1beta1.StructStats getStructStats(); + /** + * + * + *
+   * The statistics for STRUCT DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.StructStats struct_stats = 7; + */ + com.google.cloud.automl.v1beta1.StructStatsOrBuilder getStructStatsOrBuilder(); + + /** + * + * + *
+   * The statistics for CATEGORY DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; + */ + boolean hasCategoryStats(); + /** + * + * + *
+   * The statistics for CATEGORY DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; + */ + com.google.cloud.automl.v1beta1.CategoryStats getCategoryStats(); + /** + * + * + *
+   * The statistics for CATEGORY DataType.
+   * 
+ * + * .google.cloud.automl.v1beta1.CategoryStats category_stats = 8; + */ + com.google.cloud.automl.v1beta1.CategoryStatsOrBuilder getCategoryStatsOrBuilder(); + + /** + * + * + *
+   * The number of distinct values.
+   * 
+ * + * int64 distinct_value_count = 1; + */ + long getDistinctValueCount(); + + /** + * + * + *
+   * The number of values that are null.
+   * 
+ * + * int64 null_value_count = 2; + */ + long getNullValueCount(); + + public com.google.cloud.automl.v1beta1.DataStats.StatsCase getStatsCase(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOuterClass.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOuterClass.java new file mode 100644 index 000000000000..905340dcd90b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataStatsOuterClass.java @@ -0,0 +1,288 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_stats.proto + +package com.google.cloud.automl.v1beta1; + +public final class DataStatsOuterClass { + private DataStatsOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_DataStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_DataStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_Float64Stats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_Float64Stats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_Float64Stats_HistogramBucket_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_Float64Stats_HistogramBucket_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_StringStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_StringStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_StringStats_UnigramStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_StringStats_UnigramStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TimestampStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TimestampStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStats_BucketsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStats_BucketsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStatsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStatsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ArrayStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ArrayStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_StructStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_StructStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_StructStats_FieldStatsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_StructStats_FieldStatsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_CategoryStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_CategoryStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_CategoryStats_SingleCategoryStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_CategoryStats_SingleCategoryStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_CorrelationStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_CorrelationStats_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/automl/v1beta1/data_stats" + + ".proto\022\033google.cloud.automl.v1beta1\032\034goo" + + "gle/api/annotations.proto\"\342\003\n\tDataStats\022" + + "B\n\rfloat64_stats\030\003 \001(\0132).google.cloud.au" + + "toml.v1beta1.Float64StatsH\000\022@\n\014string_st" + + "ats\030\004 \001(\0132(.google.cloud.automl.v1beta1." + + "StringStatsH\000\022F\n\017timestamp_stats\030\005 \001(\0132+" + + ".google.cloud.automl.v1beta1.TimestampSt" + + "atsH\000\022>\n\013array_stats\030\006 \001(\0132\'.google.clou" + + "d.automl.v1beta1.ArrayStatsH\000\022@\n\014struct_" + + "stats\030\007 \001(\0132(.google.cloud.automl.v1beta" + + "1.StructStatsH\000\022D\n\016category_stats\030\010 \001(\0132" + + "*.google.cloud.automl.v1beta1.CategorySt" + + "atsH\000\022\034\n\024distinct_value_count\030\001 \001(\003\022\030\n\020n" + + "ull_value_count\030\002 \001(\003B\007\n\005stats\"\335\001\n\014Float" + + "64Stats\022\014\n\004mean\030\001 \001(\001\022\032\n\022standard_deviat" + + "ion\030\002 \001(\001\022\021\n\tquantiles\030\003 \003(\001\022T\n\021histogra" + + "m_buckets\030\004 \003(\01329.google.cloud.automl.v1" + + "beta1.Float64Stats.HistogramBucket\032:\n\017Hi" + + "stogramBucket\022\013\n\003min\030\001 \001(\001\022\013\n\003max\030\002 \001(\001\022" + + "\r\n\005count\030\003 \001(\003\"\215\001\n\013StringStats\022P\n\021top_un" + + "igram_stats\030\001 \003(\01325.google.cloud.automl." + + "v1beta1.StringStats.UnigramStats\032,\n\014Unig" + + "ramStats\022\r\n\005value\030\001 \001(\t\022\r\n\005count\030\002 \001(\003\"\364" + + "\002\n\016TimestampStats\022V\n\016granular_stats\030\001 \003(" + + "\0132>.google.cloud.automl.v1beta1.Timestam" + + "pStats.GranularStatsEntry\032\230\001\n\rGranularSt" + + "ats\022W\n\007buckets\030\001 \003(\0132F.google.cloud.auto" + + "ml.v1beta1.TimestampStats.GranularStats." + + "BucketsEntry\032.\n\014BucketsEntry\022\013\n\003key\030\001 \001(" + + "\005\022\r\n\005value\030\002 \001(\003:\0028\001\032o\n\022GranularStatsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022H\n\005value\030\002 \001(\01329.google." + + "cloud.automl.v1beta1.TimestampStats.Gran" + + "ularStats:\0028\001\"J\n\nArrayStats\022<\n\014member_st" + + "ats\030\002 \001(\0132&.google.cloud.automl.v1beta1." + + "DataStats\"\267\001\n\013StructStats\022M\n\013field_stats" + + "\030\001 \003(\01328.google.cloud.automl.v1beta1.Str" + + "uctStats.FieldStatsEntry\032Y\n\017FieldStatsEn" + + "try\022\013\n\003key\030\001 \001(\t\0225\n\005value\030\002 \001(\0132&.google" + + ".cloud.automl.v1beta1.DataStats:\0028\001\"\240\001\n\r" + + "CategoryStats\022Z\n\022top_category_stats\030\001 \003(" + + "\0132>.google.cloud.automl.v1beta1.Category" + + "Stats.SingleCategoryStats\0323\n\023SingleCateg" + + "oryStats\022\r\n\005value\030\001 \001(\t\022\r\n\005count\030\002 \001(\003\"%" + + "\n\020CorrelationStats\022\021\n\tcramers_v\030\001 \001(\001B\204\001" + + "\n\037com.google.cloud.automl.v1beta1P\001ZAgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/automl/v1beta1;automl\312\002\033Google\\Cloud\\Au" + + "toMl\\V1beta1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_automl_v1beta1_DataStats_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_DataStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_DataStats_descriptor, + new java.lang.String[] { + "Float64Stats", + "StringStats", + "TimestampStats", + "ArrayStats", + "StructStats", + "CategoryStats", + "DistinctValueCount", + "NullValueCount", + "Stats", + }); + internal_static_google_cloud_automl_v1beta1_Float64Stats_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_Float64Stats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_Float64Stats_descriptor, + new java.lang.String[] { + "Mean", "StandardDeviation", "Quantiles", "HistogramBuckets", + }); + internal_static_google_cloud_automl_v1beta1_Float64Stats_HistogramBucket_descriptor = + internal_static_google_cloud_automl_v1beta1_Float64Stats_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_automl_v1beta1_Float64Stats_HistogramBucket_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_Float64Stats_HistogramBucket_descriptor, + new java.lang.String[] { + "Min", "Max", "Count", + }); + internal_static_google_cloud_automl_v1beta1_StringStats_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_automl_v1beta1_StringStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_StringStats_descriptor, + new java.lang.String[] { + "TopUnigramStats", + }); + internal_static_google_cloud_automl_v1beta1_StringStats_UnigramStats_descriptor = + internal_static_google_cloud_automl_v1beta1_StringStats_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_automl_v1beta1_StringStats_UnigramStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_StringStats_UnigramStats_descriptor, + new java.lang.String[] { + "Value", "Count", + }); + internal_static_google_cloud_automl_v1beta1_TimestampStats_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_automl_v1beta1_TimestampStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TimestampStats_descriptor, + new java.lang.String[] { + "GranularStats", + }); + internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStats_descriptor = + internal_static_google_cloud_automl_v1beta1_TimestampStats_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStats_descriptor, + new java.lang.String[] { + "Buckets", + }); + internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStats_BucketsEntry_descriptor = + internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStats_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStats_BucketsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStats_BucketsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStatsEntry_descriptor = + internal_static_google_cloud_automl_v1beta1_TimestampStats_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStatsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStatsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_automl_v1beta1_ArrayStats_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_automl_v1beta1_ArrayStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ArrayStats_descriptor, + new java.lang.String[] { + "MemberStats", + }); + internal_static_google_cloud_automl_v1beta1_StructStats_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_automl_v1beta1_StructStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_StructStats_descriptor, + new java.lang.String[] { + "FieldStats", + }); + internal_static_google_cloud_automl_v1beta1_StructStats_FieldStatsEntry_descriptor = + internal_static_google_cloud_automl_v1beta1_StructStats_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_automl_v1beta1_StructStats_FieldStatsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_StructStats_FieldStatsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_automl_v1beta1_CategoryStats_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_automl_v1beta1_CategoryStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_CategoryStats_descriptor, + new java.lang.String[] { + "TopCategoryStats", + }); + internal_static_google_cloud_automl_v1beta1_CategoryStats_SingleCategoryStats_descriptor = + internal_static_google_cloud_automl_v1beta1_CategoryStats_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_automl_v1beta1_CategoryStats_SingleCategoryStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_CategoryStats_SingleCategoryStats_descriptor, + new java.lang.String[] { + "Value", "Count", + }); + internal_static_google_cloud_automl_v1beta1_CorrelationStats_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_automl_v1beta1_CorrelationStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_CorrelationStats_descriptor, + new java.lang.String[] { + "CramersV", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataType.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataType.java new file mode 100644 index 000000000000..5c17ccc07ca4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataType.java @@ -0,0 +1,1578 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_types.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Indicated the type of data that can be stored in a structured data entity
+ * (e.g. a table).
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.DataType} + */ +public final class DataType extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.DataType) + DataTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataType.newBuilder() to construct. + private DataType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataType() { + typeCode_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DataType( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + typeCode_ = rawValue; + break; + } + case 18: + { + com.google.cloud.automl.v1beta1.DataType.Builder subBuilder = null; + if (detailsCase_ == 2) { + subBuilder = ((com.google.cloud.automl.v1beta1.DataType) details_).toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.automl.v1beta1.DataType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.DataType) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 2; + break; + } + case 26: + { + com.google.cloud.automl.v1beta1.StructType.Builder subBuilder = null; + if (detailsCase_ == 3) { + subBuilder = ((com.google.cloud.automl.v1beta1.StructType) details_).toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.automl.v1beta1.StructType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.StructType) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 3; + break; + } + case 32: + { + nullable_ = input.readBool(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + detailsCase_ = 5; + details_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataTypes + .internal_static_google_cloud_automl_v1beta1_DataType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataTypes + .internal_static_google_cloud_automl_v1beta1_DataType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.DataType.class, + com.google.cloud.automl.v1beta1.DataType.Builder.class); + } + + private int detailsCase_ = 0; + private java.lang.Object details_; + + public enum DetailsCase implements com.google.protobuf.Internal.EnumLite { + LIST_ELEMENT_TYPE(2), + STRUCT_TYPE(3), + TIME_FORMAT(5), + DETAILS_NOT_SET(0); + private final int value; + + private DetailsCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static DetailsCase valueOf(int value) { + return forNumber(value); + } + + public static DetailsCase forNumber(int value) { + switch (value) { + case 2: + return LIST_ELEMENT_TYPE; + case 3: + return STRUCT_TYPE; + case 5: + return TIME_FORMAT; + case 0: + return DETAILS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DetailsCase getDetailsCase() { + return DetailsCase.forNumber(detailsCase_); + } + + public static final int LIST_ELEMENT_TYPE_FIELD_NUMBER = 2; + /** + * + * + *
+   * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY],
+   * then `list_element_type` is the type of the elements.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataType list_element_type = 2; + */ + public boolean hasListElementType() { + return detailsCase_ == 2; + } + /** + * + * + *
+   * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY],
+   * then `list_element_type` is the type of the elements.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataType list_element_type = 2; + */ + public com.google.cloud.automl.v1beta1.DataType getListElementType() { + if (detailsCase_ == 2) { + return (com.google.cloud.automl.v1beta1.DataType) details_; + } + return com.google.cloud.automl.v1beta1.DataType.getDefaultInstance(); + } + /** + * + * + *
+   * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY],
+   * then `list_element_type` is the type of the elements.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataType list_element_type = 2; + */ + public com.google.cloud.automl.v1beta1.DataTypeOrBuilder getListElementTypeOrBuilder() { + if (detailsCase_ == 2) { + return (com.google.cloud.automl.v1beta1.DataType) details_; + } + return com.google.cloud.automl.v1beta1.DataType.getDefaultInstance(); + } + + public static final int STRUCT_TYPE_FIELD_NUMBER = 3; + /** + * + * + *
+   * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type`
+   * provides type information for the struct's fields.
+   * 
+ * + * .google.cloud.automl.v1beta1.StructType struct_type = 3; + */ + public boolean hasStructType() { + return detailsCase_ == 3; + } + /** + * + * + *
+   * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type`
+   * provides type information for the struct's fields.
+   * 
+ * + * .google.cloud.automl.v1beta1.StructType struct_type = 3; + */ + public com.google.cloud.automl.v1beta1.StructType getStructType() { + if (detailsCase_ == 3) { + return (com.google.cloud.automl.v1beta1.StructType) details_; + } + return com.google.cloud.automl.v1beta1.StructType.getDefaultInstance(); + } + /** + * + * + *
+   * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type`
+   * provides type information for the struct's fields.
+   * 
+ * + * .google.cloud.automl.v1beta1.StructType struct_type = 3; + */ + public com.google.cloud.automl.v1beta1.StructTypeOrBuilder getStructTypeOrBuilder() { + if (detailsCase_ == 3) { + return (com.google.cloud.automl.v1beta1.StructType) details_; + } + return com.google.cloud.automl.v1beta1.StructType.getDefaultInstance(); + } + + public static final int TIME_FORMAT_FIELD_NUMBER = 5; + /** + * + * + *
+   * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP]
+   * then `time_format` provides the format in which that time field is
+   * expressed. The time_format must either be one of:
+   * * `UNIX_SECONDS`
+   * * `UNIX_MILLISECONDS`
+   * * `UNIX_MICROSECONDS`
+   * * `UNIX_NANOSECONDS`
+   * (for respectively number of seconds, milliseconds, microseconds and
+   * nanoseconds since start of the Unix epoch);
+   * or be written in `strftime` syntax. If time_format is not set, then the
+   * default format as described on the type_code is used.
+   * 
+ * + * string time_format = 5; + */ + public java.lang.String getTimeFormat() { + java.lang.Object ref = ""; + if (detailsCase_ == 5) { + ref = details_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (detailsCase_ == 5) { + details_ = s; + } + return s; + } + } + /** + * + * + *
+   * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP]
+   * then `time_format` provides the format in which that time field is
+   * expressed. The time_format must either be one of:
+   * * `UNIX_SECONDS`
+   * * `UNIX_MILLISECONDS`
+   * * `UNIX_MICROSECONDS`
+   * * `UNIX_NANOSECONDS`
+   * (for respectively number of seconds, milliseconds, microseconds and
+   * nanoseconds since start of the Unix epoch);
+   * or be written in `strftime` syntax. If time_format is not set, then the
+   * default format as described on the type_code is used.
+   * 
+ * + * string time_format = 5; + */ + public com.google.protobuf.ByteString getTimeFormatBytes() { + java.lang.Object ref = ""; + if (detailsCase_ == 5) { + ref = details_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (detailsCase_ == 5) { + details_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_CODE_FIELD_NUMBER = 1; + private int typeCode_; + /** + * + * + *
+   * Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
+   * 
+ * + * .google.cloud.automl.v1beta1.TypeCode type_code = 1; + */ + public int getTypeCodeValue() { + return typeCode_; + } + /** + * + * + *
+   * Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
+   * 
+ * + * .google.cloud.automl.v1beta1.TypeCode type_code = 1; + */ + public com.google.cloud.automl.v1beta1.TypeCode getTypeCode() { + @SuppressWarnings("deprecation") + com.google.cloud.automl.v1beta1.TypeCode result = + com.google.cloud.automl.v1beta1.TypeCode.valueOf(typeCode_); + return result == null ? com.google.cloud.automl.v1beta1.TypeCode.UNRECOGNIZED : result; + } + + public static final int NULLABLE_FIELD_NUMBER = 4; + private boolean nullable_; + /** + * + * + *
+   * If true, this DataType can also be `null`.
+   * 
+ * + * bool nullable = 4; + */ + public boolean getNullable() { + return nullable_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (typeCode_ != com.google.cloud.automl.v1beta1.TypeCode.TYPE_CODE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, typeCode_); + } + if (detailsCase_ == 2) { + output.writeMessage(2, (com.google.cloud.automl.v1beta1.DataType) details_); + } + if (detailsCase_ == 3) { + output.writeMessage(3, (com.google.cloud.automl.v1beta1.StructType) details_); + } + if (nullable_ != false) { + output.writeBool(4, nullable_); + } + if (detailsCase_ == 5) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, details_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeCode_ != com.google.cloud.automl.v1beta1.TypeCode.TYPE_CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, typeCode_); + } + if (detailsCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.automl.v1beta1.DataType) details_); + } + if (detailsCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.automl.v1beta1.StructType) details_); + } + if (nullable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, nullable_); + } + if (detailsCase_ == 5) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, details_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.DataType)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.DataType other = (com.google.cloud.automl.v1beta1.DataType) obj; + + if (typeCode_ != other.typeCode_) return false; + if (getNullable() != other.getNullable()) return false; + if (!getDetailsCase().equals(other.getDetailsCase())) return false; + switch (detailsCase_) { + case 2: + if (!getListElementType().equals(other.getListElementType())) return false; + break; + case 3: + if (!getStructType().equals(other.getStructType())) return false; + break; + case 5: + if (!getTimeFormat().equals(other.getTimeFormat())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_CODE_FIELD_NUMBER; + hash = (53 * hash) + typeCode_; + hash = (37 * hash) + NULLABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullable()); + switch (detailsCase_) { + case 2: + hash = (37 * hash) + LIST_ELEMENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getListElementType().hashCode(); + break; + case 3: + hash = (37 * hash) + STRUCT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getStructType().hashCode(); + break; + case 5: + hash = (37 * hash) + TIME_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + getTimeFormat().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.DataType parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.DataType parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DataType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.DataType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DataType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.DataType parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DataType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.DataType parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DataType parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.DataType parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DataType parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.DataType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.DataType prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Indicated the type of data that can be stored in a structured data entity
+   * (e.g. a table).
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.DataType} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.DataType) + com.google.cloud.automl.v1beta1.DataTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataTypes + .internal_static_google_cloud_automl_v1beta1_DataType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataTypes + .internal_static_google_cloud_automl_v1beta1_DataType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.DataType.class, + com.google.cloud.automl.v1beta1.DataType.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.DataType.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + typeCode_ = 0; + + nullable_ = false; + + detailsCase_ = 0; + details_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataTypes + .internal_static_google_cloud_automl_v1beta1_DataType_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DataType getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.DataType.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DataType build() { + com.google.cloud.automl.v1beta1.DataType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DataType buildPartial() { + com.google.cloud.automl.v1beta1.DataType result = + new com.google.cloud.automl.v1beta1.DataType(this); + if (detailsCase_ == 2) { + if (listElementTypeBuilder_ == null) { + result.details_ = details_; + } else { + result.details_ = listElementTypeBuilder_.build(); + } + } + if (detailsCase_ == 3) { + if (structTypeBuilder_ == null) { + result.details_ = details_; + } else { + result.details_ = structTypeBuilder_.build(); + } + } + if (detailsCase_ == 5) { + result.details_ = details_; + } + result.typeCode_ = typeCode_; + result.nullable_ = nullable_; + result.detailsCase_ = detailsCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.DataType) { + return mergeFrom((com.google.cloud.automl.v1beta1.DataType) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.DataType other) { + if (other == com.google.cloud.automl.v1beta1.DataType.getDefaultInstance()) return this; + if (other.typeCode_ != 0) { + setTypeCodeValue(other.getTypeCodeValue()); + } + if (other.getNullable() != false) { + setNullable(other.getNullable()); + } + switch (other.getDetailsCase()) { + case LIST_ELEMENT_TYPE: + { + mergeListElementType(other.getListElementType()); + break; + } + case STRUCT_TYPE: + { + mergeStructType(other.getStructType()); + break; + } + case TIME_FORMAT: + { + detailsCase_ = 5; + details_ = other.details_; + onChanged(); + break; + } + case DETAILS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.DataType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.DataType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int detailsCase_ = 0; + private java.lang.Object details_; + + public DetailsCase getDetailsCase() { + return DetailsCase.forNumber(detailsCase_); + } + + public Builder clearDetails() { + detailsCase_ = 0; + details_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DataType, + com.google.cloud.automl.v1beta1.DataType.Builder, + com.google.cloud.automl.v1beta1.DataTypeOrBuilder> + listElementTypeBuilder_; + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY],
+     * then `list_element_type` is the type of the elements.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataType list_element_type = 2; + */ + public boolean hasListElementType() { + return detailsCase_ == 2; + } + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY],
+     * then `list_element_type` is the type of the elements.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataType list_element_type = 2; + */ + public com.google.cloud.automl.v1beta1.DataType getListElementType() { + if (listElementTypeBuilder_ == null) { + if (detailsCase_ == 2) { + return (com.google.cloud.automl.v1beta1.DataType) details_; + } + return com.google.cloud.automl.v1beta1.DataType.getDefaultInstance(); + } else { + if (detailsCase_ == 2) { + return listElementTypeBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.DataType.getDefaultInstance(); + } + } + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY],
+     * then `list_element_type` is the type of the elements.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataType list_element_type = 2; + */ + public Builder setListElementType(com.google.cloud.automl.v1beta1.DataType value) { + if (listElementTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + listElementTypeBuilder_.setMessage(value); + } + detailsCase_ = 2; + return this; + } + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY],
+     * then `list_element_type` is the type of the elements.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataType list_element_type = 2; + */ + public Builder setListElementType( + com.google.cloud.automl.v1beta1.DataType.Builder builderForValue) { + if (listElementTypeBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + listElementTypeBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 2; + return this; + } + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY],
+     * then `list_element_type` is the type of the elements.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataType list_element_type = 2; + */ + public Builder mergeListElementType(com.google.cloud.automl.v1beta1.DataType value) { + if (listElementTypeBuilder_ == null) { + if (detailsCase_ == 2 + && details_ != com.google.cloud.automl.v1beta1.DataType.getDefaultInstance()) { + details_ = + com.google.cloud.automl.v1beta1.DataType.newBuilder( + (com.google.cloud.automl.v1beta1.DataType) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 2) { + listElementTypeBuilder_.mergeFrom(value); + } + listElementTypeBuilder_.setMessage(value); + } + detailsCase_ = 2; + return this; + } + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY],
+     * then `list_element_type` is the type of the elements.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataType list_element_type = 2; + */ + public Builder clearListElementType() { + if (listElementTypeBuilder_ == null) { + if (detailsCase_ == 2) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 2) { + detailsCase_ = 0; + details_ = null; + } + listElementTypeBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY],
+     * then `list_element_type` is the type of the elements.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataType list_element_type = 2; + */ + public com.google.cloud.automl.v1beta1.DataType.Builder getListElementTypeBuilder() { + return getListElementTypeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY],
+     * then `list_element_type` is the type of the elements.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataType list_element_type = 2; + */ + public com.google.cloud.automl.v1beta1.DataTypeOrBuilder getListElementTypeOrBuilder() { + if ((detailsCase_ == 2) && (listElementTypeBuilder_ != null)) { + return listElementTypeBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 2) { + return (com.google.cloud.automl.v1beta1.DataType) details_; + } + return com.google.cloud.automl.v1beta1.DataType.getDefaultInstance(); + } + } + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY],
+     * then `list_element_type` is the type of the elements.
+     * 
+ * + * .google.cloud.automl.v1beta1.DataType list_element_type = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DataType, + com.google.cloud.automl.v1beta1.DataType.Builder, + com.google.cloud.automl.v1beta1.DataTypeOrBuilder> + getListElementTypeFieldBuilder() { + if (listElementTypeBuilder_ == null) { + if (!(detailsCase_ == 2)) { + details_ = com.google.cloud.automl.v1beta1.DataType.getDefaultInstance(); + } + listElementTypeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DataType, + com.google.cloud.automl.v1beta1.DataType.Builder, + com.google.cloud.automl.v1beta1.DataTypeOrBuilder>( + (com.google.cloud.automl.v1beta1.DataType) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 2; + onChanged(); + ; + return listElementTypeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.StructType, + com.google.cloud.automl.v1beta1.StructType.Builder, + com.google.cloud.automl.v1beta1.StructTypeOrBuilder> + structTypeBuilder_; + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type`
+     * provides type information for the struct's fields.
+     * 
+ * + * .google.cloud.automl.v1beta1.StructType struct_type = 3; + */ + public boolean hasStructType() { + return detailsCase_ == 3; + } + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type`
+     * provides type information for the struct's fields.
+     * 
+ * + * .google.cloud.automl.v1beta1.StructType struct_type = 3; + */ + public com.google.cloud.automl.v1beta1.StructType getStructType() { + if (structTypeBuilder_ == null) { + if (detailsCase_ == 3) { + return (com.google.cloud.automl.v1beta1.StructType) details_; + } + return com.google.cloud.automl.v1beta1.StructType.getDefaultInstance(); + } else { + if (detailsCase_ == 3) { + return structTypeBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.StructType.getDefaultInstance(); + } + } + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type`
+     * provides type information for the struct's fields.
+     * 
+ * + * .google.cloud.automl.v1beta1.StructType struct_type = 3; + */ + public Builder setStructType(com.google.cloud.automl.v1beta1.StructType value) { + if (structTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + structTypeBuilder_.setMessage(value); + } + detailsCase_ = 3; + return this; + } + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type`
+     * provides type information for the struct's fields.
+     * 
+ * + * .google.cloud.automl.v1beta1.StructType struct_type = 3; + */ + public Builder setStructType( + com.google.cloud.automl.v1beta1.StructType.Builder builderForValue) { + if (structTypeBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + structTypeBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 3; + return this; + } + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type`
+     * provides type information for the struct's fields.
+     * 
+ * + * .google.cloud.automl.v1beta1.StructType struct_type = 3; + */ + public Builder mergeStructType(com.google.cloud.automl.v1beta1.StructType value) { + if (structTypeBuilder_ == null) { + if (detailsCase_ == 3 + && details_ != com.google.cloud.automl.v1beta1.StructType.getDefaultInstance()) { + details_ = + com.google.cloud.automl.v1beta1.StructType.newBuilder( + (com.google.cloud.automl.v1beta1.StructType) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 3) { + structTypeBuilder_.mergeFrom(value); + } + structTypeBuilder_.setMessage(value); + } + detailsCase_ = 3; + return this; + } + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type`
+     * provides type information for the struct's fields.
+     * 
+ * + * .google.cloud.automl.v1beta1.StructType struct_type = 3; + */ + public Builder clearStructType() { + if (structTypeBuilder_ == null) { + if (detailsCase_ == 3) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 3) { + detailsCase_ = 0; + details_ = null; + } + structTypeBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type`
+     * provides type information for the struct's fields.
+     * 
+ * + * .google.cloud.automl.v1beta1.StructType struct_type = 3; + */ + public com.google.cloud.automl.v1beta1.StructType.Builder getStructTypeBuilder() { + return getStructTypeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type`
+     * provides type information for the struct's fields.
+     * 
+ * + * .google.cloud.automl.v1beta1.StructType struct_type = 3; + */ + public com.google.cloud.automl.v1beta1.StructTypeOrBuilder getStructTypeOrBuilder() { + if ((detailsCase_ == 3) && (structTypeBuilder_ != null)) { + return structTypeBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 3) { + return (com.google.cloud.automl.v1beta1.StructType) details_; + } + return com.google.cloud.automl.v1beta1.StructType.getDefaultInstance(); + } + } + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type`
+     * provides type information for the struct's fields.
+     * 
+ * + * .google.cloud.automl.v1beta1.StructType struct_type = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.StructType, + com.google.cloud.automl.v1beta1.StructType.Builder, + com.google.cloud.automl.v1beta1.StructTypeOrBuilder> + getStructTypeFieldBuilder() { + if (structTypeBuilder_ == null) { + if (!(detailsCase_ == 3)) { + details_ = com.google.cloud.automl.v1beta1.StructType.getDefaultInstance(); + } + structTypeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.StructType, + com.google.cloud.automl.v1beta1.StructType.Builder, + com.google.cloud.automl.v1beta1.StructTypeOrBuilder>( + (com.google.cloud.automl.v1beta1.StructType) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 3; + onChanged(); + ; + return structTypeBuilder_; + } + + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP]
+     * then `time_format` provides the format in which that time field is
+     * expressed. The time_format must either be one of:
+     * * `UNIX_SECONDS`
+     * * `UNIX_MILLISECONDS`
+     * * `UNIX_MICROSECONDS`
+     * * `UNIX_NANOSECONDS`
+     * (for respectively number of seconds, milliseconds, microseconds and
+     * nanoseconds since start of the Unix epoch);
+     * or be written in `strftime` syntax. If time_format is not set, then the
+     * default format as described on the type_code is used.
+     * 
+ * + * string time_format = 5; + */ + public java.lang.String getTimeFormat() { + java.lang.Object ref = ""; + if (detailsCase_ == 5) { + ref = details_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (detailsCase_ == 5) { + details_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP]
+     * then `time_format` provides the format in which that time field is
+     * expressed. The time_format must either be one of:
+     * * `UNIX_SECONDS`
+     * * `UNIX_MILLISECONDS`
+     * * `UNIX_MICROSECONDS`
+     * * `UNIX_NANOSECONDS`
+     * (for respectively number of seconds, milliseconds, microseconds and
+     * nanoseconds since start of the Unix epoch);
+     * or be written in `strftime` syntax. If time_format is not set, then the
+     * default format as described on the type_code is used.
+     * 
+ * + * string time_format = 5; + */ + public com.google.protobuf.ByteString getTimeFormatBytes() { + java.lang.Object ref = ""; + if (detailsCase_ == 5) { + ref = details_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (detailsCase_ == 5) { + details_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP]
+     * then `time_format` provides the format in which that time field is
+     * expressed. The time_format must either be one of:
+     * * `UNIX_SECONDS`
+     * * `UNIX_MILLISECONDS`
+     * * `UNIX_MICROSECONDS`
+     * * `UNIX_NANOSECONDS`
+     * (for respectively number of seconds, milliseconds, microseconds and
+     * nanoseconds since start of the Unix epoch);
+     * or be written in `strftime` syntax. If time_format is not set, then the
+     * default format as described on the type_code is used.
+     * 
+ * + * string time_format = 5; + */ + public Builder setTimeFormat(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + detailsCase_ = 5; + details_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP]
+     * then `time_format` provides the format in which that time field is
+     * expressed. The time_format must either be one of:
+     * * `UNIX_SECONDS`
+     * * `UNIX_MILLISECONDS`
+     * * `UNIX_MICROSECONDS`
+     * * `UNIX_NANOSECONDS`
+     * (for respectively number of seconds, milliseconds, microseconds and
+     * nanoseconds since start of the Unix epoch);
+     * or be written in `strftime` syntax. If time_format is not set, then the
+     * default format as described on the type_code is used.
+     * 
+ * + * string time_format = 5; + */ + public Builder clearTimeFormat() { + if (detailsCase_ == 5) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP]
+     * then `time_format` provides the format in which that time field is
+     * expressed. The time_format must either be one of:
+     * * `UNIX_SECONDS`
+     * * `UNIX_MILLISECONDS`
+     * * `UNIX_MICROSECONDS`
+     * * `UNIX_NANOSECONDS`
+     * (for respectively number of seconds, milliseconds, microseconds and
+     * nanoseconds since start of the Unix epoch);
+     * or be written in `strftime` syntax. If time_format is not set, then the
+     * default format as described on the type_code is used.
+     * 
+ * + * string time_format = 5; + */ + public Builder setTimeFormatBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detailsCase_ = 5; + details_ = value; + onChanged(); + return this; + } + + private int typeCode_ = 0; + /** + * + * + *
+     * Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
+     * 
+ * + * .google.cloud.automl.v1beta1.TypeCode type_code = 1; + */ + public int getTypeCodeValue() { + return typeCode_; + } + /** + * + * + *
+     * Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
+     * 
+ * + * .google.cloud.automl.v1beta1.TypeCode type_code = 1; + */ + public Builder setTypeCodeValue(int value) { + typeCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
+     * 
+ * + * .google.cloud.automl.v1beta1.TypeCode type_code = 1; + */ + public com.google.cloud.automl.v1beta1.TypeCode getTypeCode() { + @SuppressWarnings("deprecation") + com.google.cloud.automl.v1beta1.TypeCode result = + com.google.cloud.automl.v1beta1.TypeCode.valueOf(typeCode_); + return result == null ? com.google.cloud.automl.v1beta1.TypeCode.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
+     * 
+ * + * .google.cloud.automl.v1beta1.TypeCode type_code = 1; + */ + public Builder setTypeCode(com.google.cloud.automl.v1beta1.TypeCode value) { + if (value == null) { + throw new NullPointerException(); + } + + typeCode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
+     * 
+ * + * .google.cloud.automl.v1beta1.TypeCode type_code = 1; + */ + public Builder clearTypeCode() { + + typeCode_ = 0; + onChanged(); + return this; + } + + private boolean nullable_; + /** + * + * + *
+     * If true, this DataType can also be `null`.
+     * 
+ * + * bool nullable = 4; + */ + public boolean getNullable() { + return nullable_; + } + /** + * + * + *
+     * If true, this DataType can also be `null`.
+     * 
+ * + * bool nullable = 4; + */ + public Builder setNullable(boolean value) { + + nullable_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, this DataType can also be `null`.
+     * 
+ * + * bool nullable = 4; + */ + public Builder clearNullable() { + + nullable_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.DataType) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.DataType) + private static final com.google.cloud.automl.v1beta1.DataType DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.DataType(); + } + + public static com.google.cloud.automl.v1beta1.DataType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DataType(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DataType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypeOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypeOrBuilder.java new file mode 100644 index 000000000000..1e6be83bb548 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypeOrBuilder.java @@ -0,0 +1,153 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_types.proto + +package com.google.cloud.automl.v1beta1; + +public interface DataTypeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.DataType) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY],
+   * then `list_element_type` is the type of the elements.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataType list_element_type = 2; + */ + boolean hasListElementType(); + /** + * + * + *
+   * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY],
+   * then `list_element_type` is the type of the elements.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataType list_element_type = 2; + */ + com.google.cloud.automl.v1beta1.DataType getListElementType(); + /** + * + * + *
+   * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY],
+   * then `list_element_type` is the type of the elements.
+   * 
+ * + * .google.cloud.automl.v1beta1.DataType list_element_type = 2; + */ + com.google.cloud.automl.v1beta1.DataTypeOrBuilder getListElementTypeOrBuilder(); + + /** + * + * + *
+   * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type`
+   * provides type information for the struct's fields.
+   * 
+ * + * .google.cloud.automl.v1beta1.StructType struct_type = 3; + */ + boolean hasStructType(); + /** + * + * + *
+   * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type`
+   * provides type information for the struct's fields.
+   * 
+ * + * .google.cloud.automl.v1beta1.StructType struct_type = 3; + */ + com.google.cloud.automl.v1beta1.StructType getStructType(); + /** + * + * + *
+   * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type`
+   * provides type information for the struct's fields.
+   * 
+ * + * .google.cloud.automl.v1beta1.StructType struct_type = 3; + */ + com.google.cloud.automl.v1beta1.StructTypeOrBuilder getStructTypeOrBuilder(); + + /** + * + * + *
+   * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP]
+   * then `time_format` provides the format in which that time field is
+   * expressed. The time_format must either be one of:
+   * * `UNIX_SECONDS`
+   * * `UNIX_MILLISECONDS`
+   * * `UNIX_MICROSECONDS`
+   * * `UNIX_NANOSECONDS`
+   * (for respectively number of seconds, milliseconds, microseconds and
+   * nanoseconds since start of the Unix epoch);
+   * or be written in `strftime` syntax. If time_format is not set, then the
+   * default format as described on the type_code is used.
+   * 
+ * + * string time_format = 5; + */ + java.lang.String getTimeFormat(); + /** + * + * + *
+   * If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP]
+   * then `time_format` provides the format in which that time field is
+   * expressed. The time_format must either be one of:
+   * * `UNIX_SECONDS`
+   * * `UNIX_MILLISECONDS`
+   * * `UNIX_MICROSECONDS`
+   * * `UNIX_NANOSECONDS`
+   * (for respectively number of seconds, milliseconds, microseconds and
+   * nanoseconds since start of the Unix epoch);
+   * or be written in `strftime` syntax. If time_format is not set, then the
+   * default format as described on the type_code is used.
+   * 
+ * + * string time_format = 5; + */ + com.google.protobuf.ByteString getTimeFormatBytes(); + + /** + * + * + *
+   * Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
+   * 
+ * + * .google.cloud.automl.v1beta1.TypeCode type_code = 1; + */ + int getTypeCodeValue(); + /** + * + * + *
+   * Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
+   * 
+ * + * .google.cloud.automl.v1beta1.TypeCode type_code = 1; + */ + com.google.cloud.automl.v1beta1.TypeCode getTypeCode(); + + /** + * + * + *
+   * If true, this DataType can also be `null`.
+   * 
+ * + * bool nullable = 4; + */ + boolean getNullable(); + + public com.google.cloud.automl.v1beta1.DataType.DetailsCase getDetailsCase(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypes.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypes.java new file mode 100644 index 000000000000..4ba65fba0acc --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DataTypes.java @@ -0,0 +1,108 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_types.proto + +package com.google.cloud.automl.v1beta1; + +public final class DataTypes { + private DataTypes() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_DataType_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_DataType_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_StructType_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_StructType_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_StructType_FieldsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_StructType_FieldsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/automl/v1beta1/data_types" + + ".proto\022\033google.cloud.automl.v1beta1\032\034goo" + + "gle/api/annotations.proto\032$google/cloud/" + + "automl/v1beta1/io.proto\0321google/cloud/au" + + "toml/v1beta1/text_extraction.proto\032\031goog" + + "le/protobuf/any.proto\"\374\001\n\010DataType\022B\n\021li" + + "st_element_type\030\002 \001(\0132%.google.cloud.aut" + + "oml.v1beta1.DataTypeH\000\022>\n\013struct_type\030\003 " + + "\001(\0132\'.google.cloud.automl.v1beta1.Struct" + + "TypeH\000\022\025\n\013time_format\030\005 \001(\tH\000\0228\n\ttype_co" + + "de\030\001 \001(\0162%.google.cloud.automl.v1beta1.T" + + "ypeCode\022\020\n\010nullable\030\004 \001(\010B\t\n\007details\"\247\001\n" + + "\nStructType\022C\n\006fields\030\001 \003(\01323.google.clo" + + "ud.automl.v1beta1.StructType.FieldsEntry" + + "\032T\n\013FieldsEntry\022\013\n\003key\030\001 \001(\t\0224\n\005value\030\002 " + + "\001(\0132%.google.cloud.automl.v1beta1.DataTy" + + "pe:\0028\001*r\n\010TypeCode\022\031\n\025TYPE_CODE_UNSPECIF" + + "IED\020\000\022\013\n\007FLOAT64\020\003\022\r\n\tTIMESTAMP\020\004\022\n\n\006STR" + + "ING\020\006\022\t\n\005ARRAY\020\010\022\n\n\006STRUCT\020\t\022\014\n\010CATEGORY" + + "\020\nB\204\001\n\037com.google.cloud.automl.v1beta1P\001" + + "ZAgoogle.golang.org/genproto/googleapis/" + + "cloud/automl/v1beta1;automl\312\002\033Google\\Clo" + + "ud\\AutoMl\\V1beta1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.automl.v1beta1.Io.getDescriptor(), + com.google.cloud.automl.v1beta1.TextExtraction.getDescriptor(), + com.google.protobuf.AnyProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_automl_v1beta1_DataType_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_DataType_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_DataType_descriptor, + new java.lang.String[] { + "ListElementType", "StructType", "TimeFormat", "TypeCode", "Nullable", "Details", + }); + internal_static_google_cloud_automl_v1beta1_StructType_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_StructType_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_StructType_descriptor, + new java.lang.String[] { + "Fields", + }); + internal_static_google_cloud_automl_v1beta1_StructType_FieldsEntry_descriptor = + internal_static_google_cloud_automl_v1beta1_StructType_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_automl_v1beta1_StructType_FieldsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_StructType_FieldsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.automl.v1beta1.Io.getDescriptor(); + com.google.cloud.automl.v1beta1.TextExtraction.getDescriptor(); + com.google.protobuf.AnyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Dataset.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Dataset.java index 8681ae087620..1428b285121e 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Dataset.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Dataset.java @@ -26,6 +26,8 @@ private Dataset(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Dataset() { name_ = ""; displayName_ = ""; + description_ = ""; + etag_ = ""; } @java.lang.Override @@ -66,6 +68,13 @@ private Dataset( displayName_ = s; break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } case 114: { com.google.protobuf.Timestamp.Builder subBuilder = null; @@ -79,6 +88,13 @@ private Dataset( createTime_ = subBuilder.buildPartial(); } + break; + } + case 138: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; break; } case 168: @@ -152,6 +168,118 @@ private Dataset( datasetMetadataCase_ = 25; break; } + case 210: + { + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.Builder + subBuilder = null; + if (datasetMetadataCase_ == 26) { + subBuilder = + ((com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) + datasetMetadata_) + .toBuilder(); + } + datasetMetadata_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) + datasetMetadata_); + datasetMetadata_ = subBuilder.buildPartial(); + } + datasetMetadataCase_ = 26; + break; + } + case 226: + { + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.Builder subBuilder = + null; + if (datasetMetadataCase_ == 28) { + subBuilder = + ((com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) + datasetMetadata_) + .toBuilder(); + } + datasetMetadata_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) + datasetMetadata_); + datasetMetadata_ = subBuilder.buildPartial(); + } + datasetMetadataCase_ = 28; + break; + } + case 242: + { + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.Builder subBuilder = + null; + if (datasetMetadataCase_ == 30) { + subBuilder = + ((com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) + datasetMetadata_) + .toBuilder(); + } + datasetMetadata_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) + datasetMetadata_); + datasetMetadata_ = subBuilder.buildPartial(); + } + datasetMetadataCase_ = 30; + break; + } + case 250: + { + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.Builder + subBuilder = null; + if (datasetMetadataCase_ == 31) { + subBuilder = + ((com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) + datasetMetadata_) + .toBuilder(); + } + datasetMetadata_ = + input.readMessage( + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) + datasetMetadata_); + datasetMetadata_ = subBuilder.buildPartial(); + } + datasetMetadataCase_ = 31; + break; + } + case 266: + { + com.google.cloud.automl.v1beta1.TablesDatasetMetadata.Builder subBuilder = null; + if (datasetMetadataCase_ == 33) { + subBuilder = + ((com.google.cloud.automl.v1beta1.TablesDatasetMetadata) datasetMetadata_) + .toBuilder(); + } + datasetMetadata_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TablesDatasetMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) datasetMetadata_); + datasetMetadata_ = subBuilder.buildPartial(); + } + datasetMetadataCase_ = 33; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -193,6 +321,11 @@ public enum DatasetMetadataCase implements com.google.protobuf.Internal.EnumLite TRANSLATION_DATASET_METADATA(23), IMAGE_CLASSIFICATION_DATASET_METADATA(24), TEXT_CLASSIFICATION_DATASET_METADATA(25), + IMAGE_OBJECT_DETECTION_DATASET_METADATA(26), + VIDEO_CLASSIFICATION_DATASET_METADATA(31), + TEXT_EXTRACTION_DATASET_METADATA(28), + TEXT_SENTIMENT_DATASET_METADATA(30), + TABLES_DATASET_METADATA(33), DATASETMETADATA_NOT_SET(0); private final int value; @@ -213,6 +346,16 @@ public static DatasetMetadataCase forNumber(int value) { return IMAGE_CLASSIFICATION_DATASET_METADATA; case 25: return TEXT_CLASSIFICATION_DATASET_METADATA; + case 26: + return IMAGE_OBJECT_DETECTION_DATASET_METADATA; + case 31: + return VIDEO_CLASSIFICATION_DATASET_METADATA; + case 28: + return TEXT_EXTRACTION_DATASET_METADATA; + case 30: + return TEXT_SENTIMENT_DATASET_METADATA; + case 33: + return TABLES_DATASET_METADATA; case 0: return DATASETMETADATA_NOT_SET; default: @@ -385,6 +528,259 @@ public boolean hasTextClassificationDatasetMetadata() { return com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.getDefaultInstance(); } + public static final int IMAGE_OBJECT_DETECTION_DATASET_METADATA_FIELD_NUMBER = 26; + /** + * + * + *
+   * Metadata for a dataset used for image object detection.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + */ + public boolean hasImageObjectDetectionDatasetMetadata() { + return datasetMetadataCase_ == 26; + } + /** + * + * + *
+   * Metadata for a dataset used for image object detection.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata + getImageObjectDetectionDatasetMetadata() { + if (datasetMetadataCase_ == 26) { + return (com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) datasetMetadata_; + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.getDefaultInstance(); + } + /** + * + * + *
+   * Metadata for a dataset used for image object detection.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadataOrBuilder + getImageObjectDetectionDatasetMetadataOrBuilder() { + if (datasetMetadataCase_ == 26) { + return (com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) datasetMetadata_; + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.getDefaultInstance(); + } + + public static final int VIDEO_CLASSIFICATION_DATASET_METADATA_FIELD_NUMBER = 31; + /** + * + * + *
+   * Metadata for a dataset used for video classification.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + */ + public boolean hasVideoClassificationDatasetMetadata() { + return datasetMetadataCase_ == 31; + } + /** + * + * + *
+   * Metadata for a dataset used for video classification.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + */ + public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata + getVideoClassificationDatasetMetadata() { + if (datasetMetadataCase_ == 31) { + return (com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) datasetMetadata_; + } + return com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.getDefaultInstance(); + } + /** + * + * + *
+   * Metadata for a dataset used for video classification.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + */ + public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadataOrBuilder + getVideoClassificationDatasetMetadataOrBuilder() { + if (datasetMetadataCase_ == 31) { + return (com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) datasetMetadata_; + } + return com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.getDefaultInstance(); + } + + public static final int TEXT_EXTRACTION_DATASET_METADATA_FIELD_NUMBER = 28; + /** + * + * + *
+   * Metadata for a dataset used for text extraction.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + */ + public boolean hasTextExtractionDatasetMetadata() { + return datasetMetadataCase_ == 28; + } + /** + * + * + *
+   * Metadata for a dataset used for text extraction.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + */ + public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata + getTextExtractionDatasetMetadata() { + if (datasetMetadataCase_ == 28) { + return (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) datasetMetadata_; + } + return com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.getDefaultInstance(); + } + /** + * + * + *
+   * Metadata for a dataset used for text extraction.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + */ + public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadataOrBuilder + getTextExtractionDatasetMetadataOrBuilder() { + if (datasetMetadataCase_ == 28) { + return (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) datasetMetadata_; + } + return com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.getDefaultInstance(); + } + + public static final int TEXT_SENTIMENT_DATASET_METADATA_FIELD_NUMBER = 30; + /** + * + * + *
+   * Metadata for a dataset used for text sentiment.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + */ + public boolean hasTextSentimentDatasetMetadata() { + return datasetMetadataCase_ == 30; + } + /** + * + * + *
+   * Metadata for a dataset used for text sentiment.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + */ + public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata + getTextSentimentDatasetMetadata() { + if (datasetMetadataCase_ == 30) { + return (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) datasetMetadata_; + } + return com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.getDefaultInstance(); + } + /** + * + * + *
+   * Metadata for a dataset used for text sentiment.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + */ + public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadataOrBuilder + getTextSentimentDatasetMetadataOrBuilder() { + if (datasetMetadataCase_ == 30) { + return (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) datasetMetadata_; + } + return com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.getDefaultInstance(); + } + + public static final int TABLES_DATASET_METADATA_FIELD_NUMBER = 33; + /** + * + * + *
+   * Metadata for a dataset used for Tables.
+   * 
+ * + * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; + */ + public boolean hasTablesDatasetMetadata() { + return datasetMetadataCase_ == 33; + } + /** + * + * + *
+   * Metadata for a dataset used for Tables.
+   * 
+ * + * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; + */ + public com.google.cloud.automl.v1beta1.TablesDatasetMetadata getTablesDatasetMetadata() { + if (datasetMetadataCase_ == 33) { + return (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) datasetMetadata_; + } + return com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance(); + } + /** + * + * + *
+   * Metadata for a dataset used for Tables.
+   * 
+ * + * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; + */ + public com.google.cloud.automl.v1beta1.TablesDatasetMetadataOrBuilder + getTablesDatasetMetadataOrBuilder() { + if (datasetMetadataCase_ == 33) { + return (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) datasetMetadata_; + } + return com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -437,8 +833,8 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Required. The name of the dataset to show in the interface. The name can be
-   * up to 32 characters
-   * long and can consist only of ASCII Latin letters A-Z and a-z, underscores
+   * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+   * and a-z, underscores
    * (_), and ASCII digits 0-9.
    * 
* @@ -460,8 +856,8 @@ public java.lang.String getDisplayName() { * *
    * Required. The name of the dataset to show in the interface. The name can be
-   * up to 32 characters
-   * long and can consist only of ASCII Latin letters A-Z and a-z, underscores
+   * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+   * and a-z, underscores
    * (_), and ASCII digits 0-9.
    * 
* @@ -479,23 +875,68 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } - public static final int EXAMPLE_COUNT_FIELD_NUMBER = 21; - private int exampleCount_; + public static final int DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; /** * * *
-   * Output only. The number of examples in the dataset.
+   * User-provided description of the dataset. The description can be up to
+   * 25000 characters long.
    * 
* - * int32 example_count = 21; + * string description = 3; */ - public int getExampleCount() { - return exampleCount_; - } - - public static final int CREATE_TIME_FIELD_NUMBER = 14; - private com.google.protobuf.Timestamp createTime_; + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * User-provided description of the dataset. The description can be up to
+   * 25000 characters long.
+   * 
+ * + * string description = 3; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXAMPLE_COUNT_FIELD_NUMBER = 21; + private int exampleCount_; + /** + * + * + *
+   * Output only. The number of examples in the dataset.
+   * 
+ * + * int32 example_count = 21; + */ + public int getExampleCount() { + return exampleCount_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 14; + private com.google.protobuf.Timestamp createTime_; /** * * @@ -533,6 +974,51 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); } + public static final int ETAG_FIELD_NUMBER = 17; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 17; + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 17; + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -553,9 +1039,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getDisplayNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } if (createTime_ != null) { output.writeMessage(14, getCreateTime()); } + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, etag_); + } if (exampleCount_ != 0) { output.writeInt32(21, exampleCount_); } @@ -572,6 +1064,28 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 25, (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) datasetMetadata_); } + if (datasetMetadataCase_ == 26) { + output.writeMessage( + 26, + (com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) datasetMetadata_); + } + if (datasetMetadataCase_ == 28) { + output.writeMessage( + 28, (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) datasetMetadata_); + } + if (datasetMetadataCase_ == 30) { + output.writeMessage( + 30, (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) datasetMetadata_); + } + if (datasetMetadataCase_ == 31) { + output.writeMessage( + 31, + (com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) datasetMetadata_); + } + if (datasetMetadataCase_ == 33) { + output.writeMessage( + 33, (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) datasetMetadata_); + } unknownFields.writeTo(output); } @@ -587,9 +1101,15 @@ public int getSerializedSize() { if (!getDisplayNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } if (createTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getCreateTime()); } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, etag_); + } if (exampleCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(21, exampleCount_); } @@ -611,6 +1131,35 @@ public int getSerializedSize() { 25, (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) datasetMetadata_); } + if (datasetMetadataCase_ == 26) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 26, + (com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) + datasetMetadata_); + } + if (datasetMetadataCase_ == 28) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 28, (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) datasetMetadata_); + } + if (datasetMetadataCase_ == 30) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 30, (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) datasetMetadata_); + } + if (datasetMetadataCase_ == 31) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 31, + (com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) + datasetMetadata_); + } + if (datasetMetadataCase_ == 33) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 33, (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) datasetMetadata_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -628,11 +1177,13 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (getExampleCount() != other.getExampleCount()) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } + if (!getEtag().equals(other.getEtag())) return false; if (!getDatasetMetadataCase().equals(other.getDatasetMetadataCase())) return false; switch (datasetMetadataCase_) { case 23: @@ -647,6 +1198,25 @@ public boolean equals(final java.lang.Object obj) { if (!getTextClassificationDatasetMetadata() .equals(other.getTextClassificationDatasetMetadata())) return false; break; + case 26: + if (!getImageObjectDetectionDatasetMetadata() + .equals(other.getImageObjectDetectionDatasetMetadata())) return false; + break; + case 31: + if (!getVideoClassificationDatasetMetadata() + .equals(other.getVideoClassificationDatasetMetadata())) return false; + break; + case 28: + if (!getTextExtractionDatasetMetadata().equals(other.getTextExtractionDatasetMetadata())) + return false; + break; + case 30: + if (!getTextSentimentDatasetMetadata().equals(other.getTextSentimentDatasetMetadata())) + return false; + break; + case 33: + if (!getTablesDatasetMetadata().equals(other.getTablesDatasetMetadata())) return false; + break; case 0: default: } @@ -665,12 +1235,16 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + EXAMPLE_COUNT_FIELD_NUMBER; hash = (53 * hash) + getExampleCount(); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); switch (datasetMetadataCase_) { case 23: hash = (37 * hash) + TRANSLATION_DATASET_METADATA_FIELD_NUMBER; @@ -684,6 +1258,26 @@ public int hashCode() { hash = (37 * hash) + TEXT_CLASSIFICATION_DATASET_METADATA_FIELD_NUMBER; hash = (53 * hash) + getTextClassificationDatasetMetadata().hashCode(); break; + case 26: + hash = (37 * hash) + IMAGE_OBJECT_DETECTION_DATASET_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getImageObjectDetectionDatasetMetadata().hashCode(); + break; + case 31: + hash = (37 * hash) + VIDEO_CLASSIFICATION_DATASET_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getVideoClassificationDatasetMetadata().hashCode(); + break; + case 28: + hash = (37 * hash) + TEXT_EXTRACTION_DATASET_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTextExtractionDatasetMetadata().hashCode(); + break; + case 30: + hash = (37 * hash) + TEXT_SENTIMENT_DATASET_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTextSentimentDatasetMetadata().hashCode(); + break; + case 33: + hash = (37 * hash) + TABLES_DATASET_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTablesDatasetMetadata().hashCode(); + break; case 0: default: } @@ -837,6 +1431,8 @@ public Builder clear() { displayName_ = ""; + description_ = ""; + exampleCount_ = 0; if (createTimeBuilder_ == null) { @@ -845,6 +1441,8 @@ public Builder clear() { createTime_ = null; createTimeBuilder_ = null; } + etag_ = ""; + datasetMetadataCase_ = 0; datasetMetadata_ = null; return this; @@ -895,14 +1493,51 @@ public com.google.cloud.automl.v1beta1.Dataset buildPartial() { result.datasetMetadata_ = textClassificationDatasetMetadataBuilder_.build(); } } + if (datasetMetadataCase_ == 26) { + if (imageObjectDetectionDatasetMetadataBuilder_ == null) { + result.datasetMetadata_ = datasetMetadata_; + } else { + result.datasetMetadata_ = imageObjectDetectionDatasetMetadataBuilder_.build(); + } + } + if (datasetMetadataCase_ == 31) { + if (videoClassificationDatasetMetadataBuilder_ == null) { + result.datasetMetadata_ = datasetMetadata_; + } else { + result.datasetMetadata_ = videoClassificationDatasetMetadataBuilder_.build(); + } + } + if (datasetMetadataCase_ == 28) { + if (textExtractionDatasetMetadataBuilder_ == null) { + result.datasetMetadata_ = datasetMetadata_; + } else { + result.datasetMetadata_ = textExtractionDatasetMetadataBuilder_.build(); + } + } + if (datasetMetadataCase_ == 30) { + if (textSentimentDatasetMetadataBuilder_ == null) { + result.datasetMetadata_ = datasetMetadata_; + } else { + result.datasetMetadata_ = textSentimentDatasetMetadataBuilder_.build(); + } + } + if (datasetMetadataCase_ == 33) { + if (tablesDatasetMetadataBuilder_ == null) { + result.datasetMetadata_ = datasetMetadata_; + } else { + result.datasetMetadata_ = tablesDatasetMetadataBuilder_.build(); + } + } result.name_ = name_; result.displayName_ = displayName_; + result.description_ = description_; result.exampleCount_ = exampleCount_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { result.createTime_ = createTimeBuilder_.build(); } + result.etag_ = etag_; result.datasetMetadataCase_ = datasetMetadataCase_; onBuilt(); return result; @@ -961,12 +1596,20 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.Dataset other) { displayName_ = other.displayName_; onChanged(); } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } if (other.getExampleCount() != 0) { setExampleCount(other.getExampleCount()); } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } switch (other.getDatasetMetadataCase()) { case TRANSLATION_DATASET_METADATA: { @@ -983,6 +1626,32 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.Dataset other) { mergeTextClassificationDatasetMetadata(other.getTextClassificationDatasetMetadata()); break; } + case IMAGE_OBJECT_DETECTION_DATASET_METADATA: + { + mergeImageObjectDetectionDatasetMetadata( + other.getImageObjectDetectionDatasetMetadata()); + break; + } + case VIDEO_CLASSIFICATION_DATASET_METADATA: + { + mergeVideoClassificationDatasetMetadata(other.getVideoClassificationDatasetMetadata()); + break; + } + case TEXT_EXTRACTION_DATASET_METADATA: + { + mergeTextExtractionDatasetMetadata(other.getTextExtractionDatasetMetadata()); + break; + } + case TEXT_SENTIMENT_DATASET_METADATA: + { + mergeTextSentimentDatasetMetadata(other.getTextSentimentDatasetMetadata()); + break; + } + case TABLES_DATASET_METADATA: + { + mergeTablesDatasetMetadata(other.getTablesDatasetMetadata()); + break; + } case DATASETMETADATA_NOT_SET: { break; @@ -1490,128 +2159,1280 @@ public Builder clearImageClassificationDatasetMetadata() { isClean()); datasetMetadata_ = null; } - datasetMetadataCase_ = 24; + datasetMetadataCase_ = 24; + onChanged(); + ; + return imageClassificationDatasetMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata, + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadataOrBuilder> + textClassificationDatasetMetadataBuilder_; + /** + * + * + *
+     * Metadata for a dataset used for text classification.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + */ + public boolean hasTextClassificationDatasetMetadata() { + return datasetMetadataCase_ == 25; + } + /** + * + * + *
+     * Metadata for a dataset used for text classification.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + */ + public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata + getTextClassificationDatasetMetadata() { + if (textClassificationDatasetMetadataBuilder_ == null) { + if (datasetMetadataCase_ == 25) { + return (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) + datasetMetadata_; + } + return com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata + .getDefaultInstance(); + } else { + if (datasetMetadataCase_ == 25) { + return textClassificationDatasetMetadataBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Metadata for a dataset used for text classification.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + */ + public Builder setTextClassificationDatasetMetadata( + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata value) { + if (textClassificationDatasetMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasetMetadata_ = value; + onChanged(); + } else { + textClassificationDatasetMetadataBuilder_.setMessage(value); + } + datasetMetadataCase_ = 25; + return this; + } + /** + * + * + *
+     * Metadata for a dataset used for text classification.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + */ + public Builder setTextClassificationDatasetMetadata( + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder builderForValue) { + if (textClassificationDatasetMetadataBuilder_ == null) { + datasetMetadata_ = builderForValue.build(); + onChanged(); + } else { + textClassificationDatasetMetadataBuilder_.setMessage(builderForValue.build()); + } + datasetMetadataCase_ = 25; + return this; + } + /** + * + * + *
+     * Metadata for a dataset used for text classification.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + */ + public Builder mergeTextClassificationDatasetMetadata( + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata value) { + if (textClassificationDatasetMetadataBuilder_ == null) { + if (datasetMetadataCase_ == 25 + && datasetMetadata_ + != com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata + .getDefaultInstance()) { + datasetMetadata_ = + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) + datasetMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + datasetMetadata_ = value; + } + onChanged(); + } else { + if (datasetMetadataCase_ == 25) { + textClassificationDatasetMetadataBuilder_.mergeFrom(value); + } + textClassificationDatasetMetadataBuilder_.setMessage(value); + } + datasetMetadataCase_ = 25; + return this; + } + /** + * + * + *
+     * Metadata for a dataset used for text classification.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + */ + public Builder clearTextClassificationDatasetMetadata() { + if (textClassificationDatasetMetadataBuilder_ == null) { + if (datasetMetadataCase_ == 25) { + datasetMetadataCase_ = 0; + datasetMetadata_ = null; + onChanged(); + } + } else { + if (datasetMetadataCase_ == 25) { + datasetMetadataCase_ = 0; + datasetMetadata_ = null; + } + textClassificationDatasetMetadataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Metadata for a dataset used for text classification.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + */ + public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder + getTextClassificationDatasetMetadataBuilder() { + return getTextClassificationDatasetMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Metadata for a dataset used for text classification.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + */ + public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadataOrBuilder + getTextClassificationDatasetMetadataOrBuilder() { + if ((datasetMetadataCase_ == 25) && (textClassificationDatasetMetadataBuilder_ != null)) { + return textClassificationDatasetMetadataBuilder_.getMessageOrBuilder(); + } else { + if (datasetMetadataCase_ == 25) { + return (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) + datasetMetadata_; + } + return com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Metadata for a dataset used for text classification.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata, + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadataOrBuilder> + getTextClassificationDatasetMetadataFieldBuilder() { + if (textClassificationDatasetMetadataBuilder_ == null) { + if (!(datasetMetadataCase_ == 25)) { + datasetMetadata_ = + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata + .getDefaultInstance(); + } + textClassificationDatasetMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata, + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) + datasetMetadata_, + getParentForChildren(), + isClean()); + datasetMetadata_ = null; + } + datasetMetadataCase_ = 25; + onChanged(); + ; + return textClassificationDatasetMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata, + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadataOrBuilder> + imageObjectDetectionDatasetMetadataBuilder_; + /** + * + * + *
+     * Metadata for a dataset used for image object detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + */ + public boolean hasImageObjectDetectionDatasetMetadata() { + return datasetMetadataCase_ == 26; + } + /** + * + * + *
+     * Metadata for a dataset used for image object detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata + getImageObjectDetectionDatasetMetadata() { + if (imageObjectDetectionDatasetMetadataBuilder_ == null) { + if (datasetMetadataCase_ == 26) { + return (com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) + datasetMetadata_; + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata + .getDefaultInstance(); + } else { + if (datasetMetadataCase_ == 26) { + return imageObjectDetectionDatasetMetadataBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Metadata for a dataset used for image object detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + */ + public Builder setImageObjectDetectionDatasetMetadata( + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata value) { + if (imageObjectDetectionDatasetMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasetMetadata_ = value; + onChanged(); + } else { + imageObjectDetectionDatasetMetadataBuilder_.setMessage(value); + } + datasetMetadataCase_ = 26; + return this; + } + /** + * + * + *
+     * Metadata for a dataset used for image object detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + */ + public Builder setImageObjectDetectionDatasetMetadata( + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.Builder + builderForValue) { + if (imageObjectDetectionDatasetMetadataBuilder_ == null) { + datasetMetadata_ = builderForValue.build(); + onChanged(); + } else { + imageObjectDetectionDatasetMetadataBuilder_.setMessage(builderForValue.build()); + } + datasetMetadataCase_ = 26; + return this; + } + /** + * + * + *
+     * Metadata for a dataset used for image object detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + */ + public Builder mergeImageObjectDetectionDatasetMetadata( + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata value) { + if (imageObjectDetectionDatasetMetadataBuilder_ == null) { + if (datasetMetadataCase_ == 26 + && datasetMetadata_ + != com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata + .getDefaultInstance()) { + datasetMetadata_ = + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) + datasetMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + datasetMetadata_ = value; + } + onChanged(); + } else { + if (datasetMetadataCase_ == 26) { + imageObjectDetectionDatasetMetadataBuilder_.mergeFrom(value); + } + imageObjectDetectionDatasetMetadataBuilder_.setMessage(value); + } + datasetMetadataCase_ = 26; + return this; + } + /** + * + * + *
+     * Metadata for a dataset used for image object detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + */ + public Builder clearImageObjectDetectionDatasetMetadata() { + if (imageObjectDetectionDatasetMetadataBuilder_ == null) { + if (datasetMetadataCase_ == 26) { + datasetMetadataCase_ = 0; + datasetMetadata_ = null; + onChanged(); + } + } else { + if (datasetMetadataCase_ == 26) { + datasetMetadataCase_ = 0; + datasetMetadata_ = null; + } + imageObjectDetectionDatasetMetadataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Metadata for a dataset used for image object detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.Builder + getImageObjectDetectionDatasetMetadataBuilder() { + return getImageObjectDetectionDatasetMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Metadata for a dataset used for image object detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadataOrBuilder + getImageObjectDetectionDatasetMetadataOrBuilder() { + if ((datasetMetadataCase_ == 26) && (imageObjectDetectionDatasetMetadataBuilder_ != null)) { + return imageObjectDetectionDatasetMetadataBuilder_.getMessageOrBuilder(); + } else { + if (datasetMetadataCase_ == 26) { + return (com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) + datasetMetadata_; + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Metadata for a dataset used for image object detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata, + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadataOrBuilder> + getImageObjectDetectionDatasetMetadataFieldBuilder() { + if (imageObjectDetectionDatasetMetadataBuilder_ == null) { + if (!(datasetMetadataCase_ == 26)) { + datasetMetadata_ = + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata + .getDefaultInstance(); + } + imageObjectDetectionDatasetMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata, + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) + datasetMetadata_, + getParentForChildren(), + isClean()); + datasetMetadata_ = null; + } + datasetMetadataCase_ = 26; + onChanged(); + ; + return imageObjectDetectionDatasetMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata, + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadataOrBuilder> + videoClassificationDatasetMetadataBuilder_; + /** + * + * + *
+     * Metadata for a dataset used for video classification.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + */ + public boolean hasVideoClassificationDatasetMetadata() { + return datasetMetadataCase_ == 31; + } + /** + * + * + *
+     * Metadata for a dataset used for video classification.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + */ + public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata + getVideoClassificationDatasetMetadata() { + if (videoClassificationDatasetMetadataBuilder_ == null) { + if (datasetMetadataCase_ == 31) { + return (com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) + datasetMetadata_; + } + return com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata + .getDefaultInstance(); + } else { + if (datasetMetadataCase_ == 31) { + return videoClassificationDatasetMetadataBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Metadata for a dataset used for video classification.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + */ + public Builder setVideoClassificationDatasetMetadata( + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata value) { + if (videoClassificationDatasetMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasetMetadata_ = value; + onChanged(); + } else { + videoClassificationDatasetMetadataBuilder_.setMessage(value); + } + datasetMetadataCase_ = 31; + return this; + } + /** + * + * + *
+     * Metadata for a dataset used for video classification.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + */ + public Builder setVideoClassificationDatasetMetadata( + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.Builder + builderForValue) { + if (videoClassificationDatasetMetadataBuilder_ == null) { + datasetMetadata_ = builderForValue.build(); + onChanged(); + } else { + videoClassificationDatasetMetadataBuilder_.setMessage(builderForValue.build()); + } + datasetMetadataCase_ = 31; + return this; + } + /** + * + * + *
+     * Metadata for a dataset used for video classification.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + */ + public Builder mergeVideoClassificationDatasetMetadata( + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata value) { + if (videoClassificationDatasetMetadataBuilder_ == null) { + if (datasetMetadataCase_ == 31 + && datasetMetadata_ + != com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata + .getDefaultInstance()) { + datasetMetadata_ = + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) + datasetMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + datasetMetadata_ = value; + } + onChanged(); + } else { + if (datasetMetadataCase_ == 31) { + videoClassificationDatasetMetadataBuilder_.mergeFrom(value); + } + videoClassificationDatasetMetadataBuilder_.setMessage(value); + } + datasetMetadataCase_ = 31; + return this; + } + /** + * + * + *
+     * Metadata for a dataset used for video classification.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + */ + public Builder clearVideoClassificationDatasetMetadata() { + if (videoClassificationDatasetMetadataBuilder_ == null) { + if (datasetMetadataCase_ == 31) { + datasetMetadataCase_ = 0; + datasetMetadata_ = null; + onChanged(); + } + } else { + if (datasetMetadataCase_ == 31) { + datasetMetadataCase_ = 0; + datasetMetadata_ = null; + } + videoClassificationDatasetMetadataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Metadata for a dataset used for video classification.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + */ + public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.Builder + getVideoClassificationDatasetMetadataBuilder() { + return getVideoClassificationDatasetMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Metadata for a dataset used for video classification.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + */ + public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadataOrBuilder + getVideoClassificationDatasetMetadataOrBuilder() { + if ((datasetMetadataCase_ == 31) && (videoClassificationDatasetMetadataBuilder_ != null)) { + return videoClassificationDatasetMetadataBuilder_.getMessageOrBuilder(); + } else { + if (datasetMetadataCase_ == 31) { + return (com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) + datasetMetadata_; + } + return com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Metadata for a dataset used for video classification.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata, + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadataOrBuilder> + getVideoClassificationDatasetMetadataFieldBuilder() { + if (videoClassificationDatasetMetadataBuilder_ == null) { + if (!(datasetMetadataCase_ == 31)) { + datasetMetadata_ = + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata + .getDefaultInstance(); + } + videoClassificationDatasetMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata, + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) + datasetMetadata_, + getParentForChildren(), + isClean()); + datasetMetadata_ = null; + } + datasetMetadataCase_ = 31; + onChanged(); + ; + return videoClassificationDatasetMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata, + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadataOrBuilder> + textExtractionDatasetMetadataBuilder_; + /** + * + * + *
+     * Metadata for a dataset used for text extraction.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + */ + public boolean hasTextExtractionDatasetMetadata() { + return datasetMetadataCase_ == 28; + } + /** + * + * + *
+     * Metadata for a dataset used for text extraction.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + */ + public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata + getTextExtractionDatasetMetadata() { + if (textExtractionDatasetMetadataBuilder_ == null) { + if (datasetMetadataCase_ == 28) { + return (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) datasetMetadata_; + } + return com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.getDefaultInstance(); + } else { + if (datasetMetadataCase_ == 28) { + return textExtractionDatasetMetadataBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.getDefaultInstance(); + } + } + /** + * + * + *
+     * Metadata for a dataset used for text extraction.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + */ + public Builder setTextExtractionDatasetMetadata( + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata value) { + if (textExtractionDatasetMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasetMetadata_ = value; + onChanged(); + } else { + textExtractionDatasetMetadataBuilder_.setMessage(value); + } + datasetMetadataCase_ = 28; + return this; + } + /** + * + * + *
+     * Metadata for a dataset used for text extraction.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + */ + public Builder setTextExtractionDatasetMetadata( + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.Builder builderForValue) { + if (textExtractionDatasetMetadataBuilder_ == null) { + datasetMetadata_ = builderForValue.build(); + onChanged(); + } else { + textExtractionDatasetMetadataBuilder_.setMessage(builderForValue.build()); + } + datasetMetadataCase_ = 28; + return this; + } + /** + * + * + *
+     * Metadata for a dataset used for text extraction.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + */ + public Builder mergeTextExtractionDatasetMetadata( + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata value) { + if (textExtractionDatasetMetadataBuilder_ == null) { + if (datasetMetadataCase_ == 28 + && datasetMetadata_ + != com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata + .getDefaultInstance()) { + datasetMetadata_ = + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) + datasetMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + datasetMetadata_ = value; + } + onChanged(); + } else { + if (datasetMetadataCase_ == 28) { + textExtractionDatasetMetadataBuilder_.mergeFrom(value); + } + textExtractionDatasetMetadataBuilder_.setMessage(value); + } + datasetMetadataCase_ = 28; + return this; + } + /** + * + * + *
+     * Metadata for a dataset used for text extraction.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + */ + public Builder clearTextExtractionDatasetMetadata() { + if (textExtractionDatasetMetadataBuilder_ == null) { + if (datasetMetadataCase_ == 28) { + datasetMetadataCase_ = 0; + datasetMetadata_ = null; + onChanged(); + } + } else { + if (datasetMetadataCase_ == 28) { + datasetMetadataCase_ = 0; + datasetMetadata_ = null; + } + textExtractionDatasetMetadataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Metadata for a dataset used for text extraction.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + */ + public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.Builder + getTextExtractionDatasetMetadataBuilder() { + return getTextExtractionDatasetMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Metadata for a dataset used for text extraction.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + */ + public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadataOrBuilder + getTextExtractionDatasetMetadataOrBuilder() { + if ((datasetMetadataCase_ == 28) && (textExtractionDatasetMetadataBuilder_ != null)) { + return textExtractionDatasetMetadataBuilder_.getMessageOrBuilder(); + } else { + if (datasetMetadataCase_ == 28) { + return (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) datasetMetadata_; + } + return com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.getDefaultInstance(); + } + } + /** + * + * + *
+     * Metadata for a dataset used for text extraction.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata, + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadataOrBuilder> + getTextExtractionDatasetMetadataFieldBuilder() { + if (textExtractionDatasetMetadataBuilder_ == null) { + if (!(datasetMetadataCase_ == 28)) { + datasetMetadata_ = + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.getDefaultInstance(); + } + textExtractionDatasetMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata, + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) datasetMetadata_, + getParentForChildren(), + isClean()); + datasetMetadata_ = null; + } + datasetMetadataCase_ = 28; + onChanged(); + ; + return textExtractionDatasetMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata, + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadataOrBuilder> + textSentimentDatasetMetadataBuilder_; + /** + * + * + *
+     * Metadata for a dataset used for text sentiment.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + */ + public boolean hasTextSentimentDatasetMetadata() { + return datasetMetadataCase_ == 30; + } + /** + * + * + *
+     * Metadata for a dataset used for text sentiment.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + */ + public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata + getTextSentimentDatasetMetadata() { + if (textSentimentDatasetMetadataBuilder_ == null) { + if (datasetMetadataCase_ == 30) { + return (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) datasetMetadata_; + } + return com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.getDefaultInstance(); + } else { + if (datasetMetadataCase_ == 30) { + return textSentimentDatasetMetadataBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.getDefaultInstance(); + } + } + /** + * + * + *
+     * Metadata for a dataset used for text sentiment.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + */ + public Builder setTextSentimentDatasetMetadata( + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata value) { + if (textSentimentDatasetMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasetMetadata_ = value; + onChanged(); + } else { + textSentimentDatasetMetadataBuilder_.setMessage(value); + } + datasetMetadataCase_ = 30; + return this; + } + /** + * + * + *
+     * Metadata for a dataset used for text sentiment.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + */ + public Builder setTextSentimentDatasetMetadata( + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.Builder builderForValue) { + if (textSentimentDatasetMetadataBuilder_ == null) { + datasetMetadata_ = builderForValue.build(); + onChanged(); + } else { + textSentimentDatasetMetadataBuilder_.setMessage(builderForValue.build()); + } + datasetMetadataCase_ = 30; + return this; + } + /** + * + * + *
+     * Metadata for a dataset used for text sentiment.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + */ + public Builder mergeTextSentimentDatasetMetadata( + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata value) { + if (textSentimentDatasetMetadataBuilder_ == null) { + if (datasetMetadataCase_ == 30 + && datasetMetadata_ + != com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata + .getDefaultInstance()) { + datasetMetadata_ = + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) + datasetMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + datasetMetadata_ = value; + } + onChanged(); + } else { + if (datasetMetadataCase_ == 30) { + textSentimentDatasetMetadataBuilder_.mergeFrom(value); + } + textSentimentDatasetMetadataBuilder_.setMessage(value); + } + datasetMetadataCase_ = 30; + return this; + } + /** + * + * + *
+     * Metadata for a dataset used for text sentiment.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + */ + public Builder clearTextSentimentDatasetMetadata() { + if (textSentimentDatasetMetadataBuilder_ == null) { + if (datasetMetadataCase_ == 30) { + datasetMetadataCase_ = 0; + datasetMetadata_ = null; + onChanged(); + } + } else { + if (datasetMetadataCase_ == 30) { + datasetMetadataCase_ = 0; + datasetMetadata_ = null; + } + textSentimentDatasetMetadataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Metadata for a dataset used for text sentiment.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + */ + public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.Builder + getTextSentimentDatasetMetadataBuilder() { + return getTextSentimentDatasetMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Metadata for a dataset used for text sentiment.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + */ + public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadataOrBuilder + getTextSentimentDatasetMetadataOrBuilder() { + if ((datasetMetadataCase_ == 30) && (textSentimentDatasetMetadataBuilder_ != null)) { + return textSentimentDatasetMetadataBuilder_.getMessageOrBuilder(); + } else { + if (datasetMetadataCase_ == 30) { + return (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) datasetMetadata_; + } + return com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.getDefaultInstance(); + } + } + /** + * + * + *
+     * Metadata for a dataset used for text sentiment.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata, + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadataOrBuilder> + getTextSentimentDatasetMetadataFieldBuilder() { + if (textSentimentDatasetMetadataBuilder_ == null) { + if (!(datasetMetadataCase_ == 30)) { + datasetMetadata_ = + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.getDefaultInstance(); + } + textSentimentDatasetMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata, + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) datasetMetadata_, + getParentForChildren(), + isClean()); + datasetMetadata_ = null; + } + datasetMetadataCase_ = 30; onChanged(); ; - return imageClassificationDatasetMetadataBuilder_; + return textSentimentDatasetMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata, - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder, - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadataOrBuilder> - textClassificationDatasetMetadataBuilder_; + com.google.cloud.automl.v1beta1.TablesDatasetMetadata, + com.google.cloud.automl.v1beta1.TablesDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.TablesDatasetMetadataOrBuilder> + tablesDatasetMetadataBuilder_; /** * * *
-     * Metadata for a dataset used for text classification.
+     * Metadata for a dataset used for Tables.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; */ - public boolean hasTextClassificationDatasetMetadata() { - return datasetMetadataCase_ == 25; + public boolean hasTablesDatasetMetadata() { + return datasetMetadataCase_ == 33; } /** * * *
-     * Metadata for a dataset used for text classification.
+     * Metadata for a dataset used for Tables.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; */ - public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata - getTextClassificationDatasetMetadata() { - if (textClassificationDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 25) { - return (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) - datasetMetadata_; + public com.google.cloud.automl.v1beta1.TablesDatasetMetadata getTablesDatasetMetadata() { + if (tablesDatasetMetadataBuilder_ == null) { + if (datasetMetadataCase_ == 33) { + return (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) datasetMetadata_; } - return com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance(); } else { - if (datasetMetadataCase_ == 25) { - return textClassificationDatasetMetadataBuilder_.getMessage(); + if (datasetMetadataCase_ == 33) { + return tablesDatasetMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance(); } } /** * * *
-     * Metadata for a dataset used for text classification.
+     * Metadata for a dataset used for Tables.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; */ - public Builder setTextClassificationDatasetMetadata( - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata value) { - if (textClassificationDatasetMetadataBuilder_ == null) { + public Builder setTablesDatasetMetadata( + com.google.cloud.automl.v1beta1.TablesDatasetMetadata value) { + if (tablesDatasetMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } datasetMetadata_ = value; onChanged(); } else { - textClassificationDatasetMetadataBuilder_.setMessage(value); + tablesDatasetMetadataBuilder_.setMessage(value); } - datasetMetadataCase_ = 25; + datasetMetadataCase_ = 33; return this; } /** * * *
-     * Metadata for a dataset used for text classification.
+     * Metadata for a dataset used for Tables.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; */ - public Builder setTextClassificationDatasetMetadata( - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder builderForValue) { - if (textClassificationDatasetMetadataBuilder_ == null) { + public Builder setTablesDatasetMetadata( + com.google.cloud.automl.v1beta1.TablesDatasetMetadata.Builder builderForValue) { + if (tablesDatasetMetadataBuilder_ == null) { datasetMetadata_ = builderForValue.build(); onChanged(); } else { - textClassificationDatasetMetadataBuilder_.setMessage(builderForValue.build()); + tablesDatasetMetadataBuilder_.setMessage(builderForValue.build()); } - datasetMetadataCase_ = 25; + datasetMetadataCase_ = 33; return this; } /** * * *
-     * Metadata for a dataset used for text classification.
+     * Metadata for a dataset used for Tables.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; */ - public Builder mergeTextClassificationDatasetMetadata( - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata value) { - if (textClassificationDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 25 + public Builder mergeTablesDatasetMetadata( + com.google.cloud.automl.v1beta1.TablesDatasetMetadata value) { + if (tablesDatasetMetadataBuilder_ == null) { + if (datasetMetadataCase_ == 33 && datasetMetadata_ - != com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata - .getDefaultInstance()) { + != com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance()) { datasetMetadata_ = - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.newBuilder( - (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) - datasetMetadata_) + com.google.cloud.automl.v1beta1.TablesDatasetMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) datasetMetadata_) .mergeFrom(value) .buildPartial(); } else { @@ -1619,38 +3440,36 @@ public Builder mergeTextClassificationDatasetMetadata( } onChanged(); } else { - if (datasetMetadataCase_ == 25) { - textClassificationDatasetMetadataBuilder_.mergeFrom(value); + if (datasetMetadataCase_ == 33) { + tablesDatasetMetadataBuilder_.mergeFrom(value); } - textClassificationDatasetMetadataBuilder_.setMessage(value); + tablesDatasetMetadataBuilder_.setMessage(value); } - datasetMetadataCase_ = 25; + datasetMetadataCase_ = 33; return this; } /** * * *
-     * Metadata for a dataset used for text classification.
+     * Metadata for a dataset used for Tables.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; */ - public Builder clearTextClassificationDatasetMetadata() { - if (textClassificationDatasetMetadataBuilder_ == null) { - if (datasetMetadataCase_ == 25) { + public Builder clearTablesDatasetMetadata() { + if (tablesDatasetMetadataBuilder_ == null) { + if (datasetMetadataCase_ == 33) { datasetMetadataCase_ = 0; datasetMetadata_ = null; onChanged(); } } else { - if (datasetMetadataCase_ == 25) { + if (datasetMetadataCase_ == 33) { datasetMetadataCase_ = 0; datasetMetadata_ = null; } - textClassificationDatasetMetadataBuilder_.clear(); + tablesDatasetMetadataBuilder_.clear(); } return this; } @@ -1658,78 +3477,68 @@ public Builder clearTextClassificationDatasetMetadata() { * * *
-     * Metadata for a dataset used for text classification.
+     * Metadata for a dataset used for Tables.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; */ - public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder - getTextClassificationDatasetMetadataBuilder() { - return getTextClassificationDatasetMetadataFieldBuilder().getBuilder(); + public com.google.cloud.automl.v1beta1.TablesDatasetMetadata.Builder + getTablesDatasetMetadataBuilder() { + return getTablesDatasetMetadataFieldBuilder().getBuilder(); } /** * * *
-     * Metadata for a dataset used for text classification.
+     * Metadata for a dataset used for Tables.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; */ - public com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadataOrBuilder - getTextClassificationDatasetMetadataOrBuilder() { - if ((datasetMetadataCase_ == 25) && (textClassificationDatasetMetadataBuilder_ != null)) { - return textClassificationDatasetMetadataBuilder_.getMessageOrBuilder(); + public com.google.cloud.automl.v1beta1.TablesDatasetMetadataOrBuilder + getTablesDatasetMetadataOrBuilder() { + if ((datasetMetadataCase_ == 33) && (tablesDatasetMetadataBuilder_ != null)) { + return tablesDatasetMetadataBuilder_.getMessageOrBuilder(); } else { - if (datasetMetadataCase_ == 25) { - return (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) - datasetMetadata_; + if (datasetMetadataCase_ == 33) { + return (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) datasetMetadata_; } - return com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance(); } } /** * * *
-     * Metadata for a dataset used for text classification.
+     * Metadata for a dataset used for Tables.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; - * + * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata, - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder, - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadataOrBuilder> - getTextClassificationDatasetMetadataFieldBuilder() { - if (textClassificationDatasetMetadataBuilder_ == null) { - if (!(datasetMetadataCase_ == 25)) { + com.google.cloud.automl.v1beta1.TablesDatasetMetadata, + com.google.cloud.automl.v1beta1.TablesDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.TablesDatasetMetadataOrBuilder> + getTablesDatasetMetadataFieldBuilder() { + if (tablesDatasetMetadataBuilder_ == null) { + if (!(datasetMetadataCase_ == 33)) { datasetMetadata_ = - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata - .getDefaultInstance(); + com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance(); } - textClassificationDatasetMetadataBuilder_ = + tablesDatasetMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata, - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata.Builder, - com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadataOrBuilder>( - (com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadata) - datasetMetadata_, + com.google.cloud.automl.v1beta1.TablesDatasetMetadata, + com.google.cloud.automl.v1beta1.TablesDatasetMetadata.Builder, + com.google.cloud.automl.v1beta1.TablesDatasetMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) datasetMetadata_, getParentForChildren(), isClean()); datasetMetadata_ = null; } - datasetMetadataCase_ = 25; + datasetMetadataCase_ = 33; onChanged(); ; - return textClassificationDatasetMetadataBuilder_; + return tablesDatasetMetadataBuilder_; } private java.lang.Object name_ = ""; @@ -1837,8 +3646,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Required. The name of the dataset to show in the interface. The name can be
-     * up to 32 characters
-     * long and can consist only of ASCII Latin letters A-Z and a-z, underscores
+     * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+     * and a-z, underscores
      * (_), and ASCII digits 0-9.
      * 
* @@ -1860,8 +3669,8 @@ public java.lang.String getDisplayName() { * *
      * Required. The name of the dataset to show in the interface. The name can be
-     * up to 32 characters
-     * long and can consist only of ASCII Latin letters A-Z and a-z, underscores
+     * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+     * and a-z, underscores
      * (_), and ASCII digits 0-9.
      * 
* @@ -1883,8 +3692,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. The name of the dataset to show in the interface. The name can be
-     * up to 32 characters
-     * long and can consist only of ASCII Latin letters A-Z and a-z, underscores
+     * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+     * and a-z, underscores
      * (_), and ASCII digits 0-9.
      * 
* @@ -1904,8 +3713,8 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. The name of the dataset to show in the interface. The name can be
-     * up to 32 characters
-     * long and can consist only of ASCII Latin letters A-Z and a-z, underscores
+     * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+     * and a-z, underscores
      * (_), and ASCII digits 0-9.
      * 
* @@ -1922,8 +3731,8 @@ public Builder clearDisplayName() { * *
      * Required. The name of the dataset to show in the interface. The name can be
-     * up to 32 characters
-     * long and can consist only of ASCII Latin letters A-Z and a-z, underscores
+     * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+     * and a-z, underscores
      * (_), and ASCII digits 0-9.
      * 
* @@ -1940,6 +3749,105 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object description_ = ""; + /** + * + * + *
+     * User-provided description of the dataset. The description can be up to
+     * 25000 characters long.
+     * 
+ * + * string description = 3; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * User-provided description of the dataset. The description can be up to
+     * 25000 characters long.
+     * 
+ * + * string description = 3; + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * User-provided description of the dataset. The description can be up to
+     * 25000 characters long.
+     * 
+ * + * string description = 3; + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * User-provided description of the dataset. The description can be up to
+     * 25000 characters long.
+     * 
+ * + * string description = 3; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * User-provided description of the dataset. The description can be up to
+     * 25000 characters long.
+     * 
+ * + * string description = 3; + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + private int exampleCount_; /** * @@ -2163,6 +4071,105 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTimeBuilder_; } + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 17; + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 17; + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 17; + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + etag_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 17; + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 17; + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOrBuilder.java index 7edc235e55f9..a2936022b880 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOrBuilder.java @@ -124,6 +124,192 @@ public interface DatasetOrBuilder com.google.cloud.automl.v1beta1.TextClassificationDatasetMetadataOrBuilder getTextClassificationDatasetMetadataOrBuilder(); + /** + * + * + *
+   * Metadata for a dataset used for image object detection.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + */ + boolean hasImageObjectDetectionDatasetMetadata(); + /** + * + * + *
+   * Metadata for a dataset used for image object detection.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + */ + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata + getImageObjectDetectionDatasetMetadata(); + /** + * + * + *
+   * Metadata for a dataset used for image object detection.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + * + */ + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadataOrBuilder + getImageObjectDetectionDatasetMetadataOrBuilder(); + + /** + * + * + *
+   * Metadata for a dataset used for video classification.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + */ + boolean hasVideoClassificationDatasetMetadata(); + /** + * + * + *
+   * Metadata for a dataset used for video classification.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + */ + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata + getVideoClassificationDatasetMetadata(); + /** + * + * + *
+   * Metadata for a dataset used for video classification.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + * + */ + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadataOrBuilder + getVideoClassificationDatasetMetadataOrBuilder(); + + /** + * + * + *
+   * Metadata for a dataset used for text extraction.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + */ + boolean hasTextExtractionDatasetMetadata(); + /** + * + * + *
+   * Metadata for a dataset used for text extraction.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + */ + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata getTextExtractionDatasetMetadata(); + /** + * + * + *
+   * Metadata for a dataset used for text extraction.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + * + */ + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadataOrBuilder + getTextExtractionDatasetMetadataOrBuilder(); + + /** + * + * + *
+   * Metadata for a dataset used for text sentiment.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + */ + boolean hasTextSentimentDatasetMetadata(); + /** + * + * + *
+   * Metadata for a dataset used for text sentiment.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + */ + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata getTextSentimentDatasetMetadata(); + /** + * + * + *
+   * Metadata for a dataset used for text sentiment.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + * + */ + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadataOrBuilder + getTextSentimentDatasetMetadataOrBuilder(); + + /** + * + * + *
+   * Metadata for a dataset used for Tables.
+   * 
+ * + * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; + */ + boolean hasTablesDatasetMetadata(); + /** + * + * + *
+   * Metadata for a dataset used for Tables.
+   * 
+ * + * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; + */ + com.google.cloud.automl.v1beta1.TablesDatasetMetadata getTablesDatasetMetadata(); + /** + * + * + *
+   * Metadata for a dataset used for Tables.
+   * 
+ * + * .google.cloud.automl.v1beta1.TablesDatasetMetadata tables_dataset_metadata = 33; + */ + com.google.cloud.automl.v1beta1.TablesDatasetMetadataOrBuilder + getTablesDatasetMetadataOrBuilder(); + /** * * @@ -152,8 +338,8 @@ public interface DatasetOrBuilder * *
    * Required. The name of the dataset to show in the interface. The name can be
-   * up to 32 characters
-   * long and can consist only of ASCII Latin letters A-Z and a-z, underscores
+   * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+   * and a-z, underscores
    * (_), and ASCII digits 0-9.
    * 
* @@ -165,8 +351,8 @@ public interface DatasetOrBuilder * *
    * Required. The name of the dataset to show in the interface. The name can be
-   * up to 32 characters
-   * long and can consist only of ASCII Latin letters A-Z and a-z, underscores
+   * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+   * and a-z, underscores
    * (_), and ASCII digits 0-9.
    * 
* @@ -174,6 +360,29 @@ public interface DatasetOrBuilder */ com.google.protobuf.ByteString getDisplayNameBytes(); + /** + * + * + *
+   * User-provided description of the dataset. The description can be up to
+   * 25000 characters long.
+   * 
+ * + * string description = 3; + */ + java.lang.String getDescription(); + /** + * + * + *
+   * User-provided description of the dataset. The description can be up to
+   * 25000 characters long.
+   * 
+ * + * string description = 3; + */ + com.google.protobuf.ByteString getDescriptionBytes(); + /** * * @@ -216,5 +425,28 @@ public interface DatasetOrBuilder */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 17; + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 17; + */ + com.google.protobuf.ByteString getEtagBytes(); + public com.google.cloud.automl.v1beta1.Dataset.DatasetMetadataCase getDatasetMetadataCase(); } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java index 1160836b607e..71a252af64f2 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DatasetOuterClass.java @@ -16,6 +16,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_automl_v1beta1_Dataset_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_Dataset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_AnnotationSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_AnnotationSpec_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -31,25 +35,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oml/v1beta1/annotation_payload.proto\032,go" + "ogle/cloud/automl/v1beta1/data_items.pro" + "to\032\'google/cloud/automl/v1beta1/image.pr" - + "oto\032&google/cloud/automl/v1beta1/text.pr" - + "oto\032-google/cloud/automl/v1beta1/transla" - + "tion.proto\032\037google/protobuf/timestamp.pr" - + "oto\"\314\003\n\007Dataset\022_\n\034translation_dataset_m" - + "etadata\030\027 \001(\01327.google.cloud.automl.v1be" - + "ta1.TranslationDatasetMetadataH\000\022p\n%imag" - + "e_classification_dataset_metadata\030\030 \001(\0132" - + "?.google.cloud.automl.v1beta1.ImageClass" - + "ificationDatasetMetadataH\000\022n\n$text_class" - + "ification_dataset_metadata\030\031 \001(\0132>.googl" - + "e.cloud.automl.v1beta1.TextClassificatio" - + "nDatasetMetadataH\000\022\014\n\004name\030\001 \001(\t\022\024\n\014disp" - + "lay_name\030\002 \001(\t\022\025\n\rexample_count\030\025 \001(\005\022/\n" - + "\013create_time\030\016 \001(\0132\032.google.protobuf.Tim" - + "estampB\022\n\020dataset_metadataB\204\001\n\037com.googl" - + "e.cloud.automl.v1beta1P\001ZAgoogle.golang." - + "org/genproto/googleapis/cloud/automl/v1b" - + "eta1;automl\312\002\033Google\\Cloud\\AutoMl\\V1beta" - + "1b\006proto3" + + "oto\032(google/cloud/automl/v1beta1/tables." + + "proto\032&google/cloud/automl/v1beta1/text." + + "proto\032-google/cloud/automl/v1beta1/trans" + + "lation.proto\032\'google/cloud/automl/v1beta" + + "1/video.proto\032\037google/protobuf/timestamp" + + ".proto\"\373\007\n\007Dataset\022_\n\034translation_datase" + + "t_metadata\030\027 \001(\01327.google.cloud.automl.v" + + "1beta1.TranslationDatasetMetadataH\000\022p\n%i" + + "mage_classification_dataset_metadata\030\030 \001" + + "(\0132?.google.cloud.automl.v1beta1.ImageCl" + + "assificationDatasetMetadataH\000\022n\n$text_cl" + + "assification_dataset_metadata\030\031 \001(\0132>.go" + + "ogle.cloud.automl.v1beta1.TextClassifica" + + "tionDatasetMetadataH\000\022s\n\'image_object_de" + + "tection_dataset_metadata\030\032 \001(\0132@.google." + + "cloud.automl.v1beta1.ImageObjectDetectio" + + "nDatasetMetadataH\000\022p\n%video_classificati" + + "on_dataset_metadata\030\037 \001(\0132?.google.cloud" + + ".automl.v1beta1.VideoClassificationDatas" + + "etMetadataH\000\022f\n text_extraction_dataset_" + + "metadata\030\034 \001(\0132:.google.cloud.automl.v1b" + + "eta1.TextExtractionDatasetMetadataH\000\022d\n\037" + + "text_sentiment_dataset_metadata\030\036 \001(\01329." + + "google.cloud.automl.v1beta1.TextSentimen" + + "tDatasetMetadataH\000\022U\n\027tables_dataset_met" + + "adata\030! \001(\01322.google.cloud.automl.v1beta" + + "1.TablesDatasetMetadataH\000\022\014\n\004name\030\001 \001(\t\022" + + "\024\n\014display_name\030\002 \001(\t\022\023\n\013description\030\003 \001" + + "(\t\022\025\n\rexample_count\030\025 \001(\005\022/\n\013create_time" + + "\030\016 \001(\0132\032.google.protobuf.Timestamp\022\014\n\004et" + + "ag\030\021 \001(\tB\022\n\020dataset_metadata\"K\n\016Annotati" + + "onSpec\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001" + + "(\t\022\025\n\rexample_count\030\t \001(\005B\204\001\n\037com.google" + + ".cloud.automl.v1beta1P\001ZAgoogle.golang.o" + + "rg/genproto/googleapis/cloud/automl/v1be" + + "ta1;automl\312\002\033Google\\Cloud\\AutoMl\\V1beta1" + + "b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -66,8 +88,10 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.getDescriptor(), com.google.cloud.automl.v1beta1.DataItems.getDescriptor(), com.google.cloud.automl.v1beta1.ImageProto.getDescriptor(), + com.google.cloud.automl.v1beta1.Tables.getDescriptor(), com.google.cloud.automl.v1beta1.TextProto.getDescriptor(), com.google.cloud.automl.v1beta1.TranslationProto.getDescriptor(), + com.google.cloud.automl.v1beta1.VideoProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }, assigner); @@ -80,18 +104,35 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "TranslationDatasetMetadata", "ImageClassificationDatasetMetadata", "TextClassificationDatasetMetadata", + "ImageObjectDetectionDatasetMetadata", + "VideoClassificationDatasetMetadata", + "TextExtractionDatasetMetadata", + "TextSentimentDatasetMetadata", + "TablesDatasetMetadata", "Name", "DisplayName", + "Description", "ExampleCount", "CreateTime", + "Etag", "DatasetMetadata", }); + internal_static_google_cloud_automl_v1beta1_AnnotationSpec_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_AnnotationSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_AnnotationSpec_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "ExampleCount", + }); com.google.api.AnnotationsProto.getDescriptor(); com.google.cloud.automl.v1beta1.AnnotationPayloadOuterClass.getDescriptor(); com.google.cloud.automl.v1beta1.DataItems.getDescriptor(); com.google.cloud.automl.v1beta1.ImageProto.getDescriptor(); + com.google.cloud.automl.v1beta1.Tables.getDescriptor(); com.google.cloud.automl.v1beta1.TextProto.getDescriptor(); com.google.cloud.automl.v1beta1.TranslationProto.getDescriptor(); + com.google.cloud.automl.v1beta1.VideoProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequest.java index 87227dde7788..e2af9e1e1a85 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteDatasetRequest.java @@ -7,8 +7,7 @@ * * *
- * Request message for
- * [AutoMl.DeleteDataset][google.cloud.automl.v1beta1.AutoMl.DeleteDataset].
+ * Request message for [AutoMl.DeleteDataset][google.cloud.automl.v1beta1.AutoMl.DeleteDataset].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.DeleteDatasetRequest} @@ -298,8 +297,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for
-   * [AutoMl.DeleteDataset][google.cloud.automl.v1beta1.AutoMl.DeleteDataset].
+   * Request message for [AutoMl.DeleteDataset][google.cloud.automl.v1beta1.AutoMl.DeleteDataset].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.DeleteDatasetRequest} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequest.java index 662dd089c07f..98338a47b24d 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteModelRequest.java @@ -7,8 +7,7 @@ * * *
- * Request message for
- * [AutoMl.DeleteModel][google.cloud.automl.v1beta1.AutoMl.DeleteModel].
+ * Request message for [AutoMl.DeleteModel][google.cloud.automl.v1beta1.AutoMl.DeleteModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.DeleteModelRequest} @@ -298,8 +297,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for
-   * [AutoMl.DeleteModel][google.cloud.automl.v1beta1.AutoMl.DeleteModel].
+   * Request message for [AutoMl.DeleteModel][google.cloud.automl.v1beta1.AutoMl.DeleteModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.DeleteModelRequest} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadata.java new file mode 100644 index 000000000000..7680c468ee55 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadata.java @@ -0,0 +1,436 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/operations.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Details of operations that perform deletes of any entities.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.DeleteOperationMetadata} + */ +public final class DeleteOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.DeleteOperationMetadata) + DeleteOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteOperationMetadata.newBuilder() to construct. + private DeleteOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteOperationMetadata() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteOperationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_DeleteOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_DeleteOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.DeleteOperationMetadata.class, + com.google.cloud.automl.v1beta1.DeleteOperationMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.DeleteOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.DeleteOperationMetadata other = + (com.google.cloud.automl.v1beta1.DeleteOperationMetadata) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.DeleteOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.DeleteOperationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DeleteOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.DeleteOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DeleteOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.DeleteOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DeleteOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.DeleteOperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DeleteOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.DeleteOperationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DeleteOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.DeleteOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.DeleteOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details of operations that perform deletes of any entities.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.DeleteOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.DeleteOperationMetadata) + com.google.cloud.automl.v1beta1.DeleteOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_DeleteOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_DeleteOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.DeleteOperationMetadata.class, + com.google.cloud.automl.v1beta1.DeleteOperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.DeleteOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_DeleteOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DeleteOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.DeleteOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DeleteOperationMetadata build() { + com.google.cloud.automl.v1beta1.DeleteOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DeleteOperationMetadata buildPartial() { + com.google.cloud.automl.v1beta1.DeleteOperationMetadata result = + new com.google.cloud.automl.v1beta1.DeleteOperationMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.DeleteOperationMetadata) { + return mergeFrom((com.google.cloud.automl.v1beta1.DeleteOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.DeleteOperationMetadata other) { + if (other == com.google.cloud.automl.v1beta1.DeleteOperationMetadata.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.DeleteOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.DeleteOperationMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.DeleteOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.DeleteOperationMetadata) + private static final com.google.cloud.automl.v1beta1.DeleteOperationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.DeleteOperationMetadata(); + } + + public static com.google.cloud.automl.v1beta1.DeleteOperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteOperationMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DeleteOperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..71d57d82c564 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeleteOperationMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/operations.proto + +package com.google.cloud.automl.v1beta1; + +public interface DeleteOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.DeleteOperationMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadata.java new file mode 100644 index 000000000000..0dec74e3bb6e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadata.java @@ -0,0 +1,439 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/operations.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Details of DeployModel operation.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.DeployModelOperationMetadata} + */ +public final class DeployModelOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.DeployModelOperationMetadata) + DeployModelOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeployModelOperationMetadata.newBuilder() to construct. + private DeployModelOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeployModelOperationMetadata() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeployModelOperationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_DeployModelOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_DeployModelOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.class, + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.DeployModelOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata other = + (com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.DeployModelOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.DeployModelOperationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DeployModelOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.DeployModelOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DeployModelOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.DeployModelOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DeployModelOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.DeployModelOperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DeployModelOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.DeployModelOperationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DeployModelOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.DeployModelOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details of DeployModel operation.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.DeployModelOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.DeployModelOperationMetadata) + com.google.cloud.automl.v1beta1.DeployModelOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_DeployModelOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_DeployModelOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.class, + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_DeployModelOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DeployModelOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DeployModelOperationMetadata build() { + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DeployModelOperationMetadata buildPartial() { + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata result = + new com.google.cloud.automl.v1beta1.DeployModelOperationMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) { + return mergeFrom((com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.DeployModelOperationMetadata other) { + if (other + == com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.DeployModelOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.DeployModelOperationMetadata) + private static final com.google.cloud.automl.v1beta1.DeployModelOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.DeployModelOperationMetadata(); + } + + public static com.google.cloud.automl.v1beta1.DeployModelOperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployModelOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployModelOperationMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DeployModelOperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..72c02e2c3edb --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelOperationMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/operations.proto + +package com.google.cloud.automl.v1beta1; + +public interface DeployModelOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.DeployModelOperationMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequest.java index 945633f53c31..84cf059a21e8 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequest.java @@ -7,8 +7,7 @@ * * *
- * Request message for
- * [AutoMl.DeployModel][google.cloud.automl.v1beta1.AutoMl.DeployModel].
+ * Request message for [AutoMl.DeployModel][google.cloud.automl.v1beta1.AutoMl.DeployModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.DeployModelRequest} @@ -58,6 +57,30 @@ private DeployModelRequest( name_ = s; break; } + case 18: + { + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.Builder + subBuilder = null; + if (modelDeploymentMetadataCase_ == 2) { + subBuilder = + ((com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) + modelDeploymentMetadata_) + .toBuilder(); + } + modelDeploymentMetadata_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) + modelDeploymentMetadata_); + modelDeploymentMetadata_ = subBuilder.buildPartial(); + } + modelDeploymentMetadataCase_ = 2; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -92,6 +115,99 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.automl.v1beta1.DeployModelRequest.Builder.class); } + private int modelDeploymentMetadataCase_ = 0; + private java.lang.Object modelDeploymentMetadata_; + + public enum ModelDeploymentMetadataCase implements com.google.protobuf.Internal.EnumLite { + IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA(2), + MODELDEPLOYMENTMETADATA_NOT_SET(0); + private final int value; + + private ModelDeploymentMetadataCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ModelDeploymentMetadataCase valueOf(int value) { + return forNumber(value); + } + + public static ModelDeploymentMetadataCase forNumber(int value) { + switch (value) { + case 2: + return IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA; + case 0: + return MODELDEPLOYMENTMETADATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ModelDeploymentMetadataCase getModelDeploymentMetadataCase() { + return ModelDeploymentMetadataCase.forNumber(modelDeploymentMetadataCase_); + } + + public static final int IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA_FIELD_NUMBER = 2; + /** + * + * + *
+   * Model deployment metadata specific to Image Object Detection.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + */ + public boolean hasImageObjectDetectionModelDeploymentMetadata() { + return modelDeploymentMetadataCase_ == 2; + } + /** + * + * + *
+   * Model deployment metadata specific to Image Object Detection.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + getImageObjectDetectionModelDeploymentMetadata() { + if (modelDeploymentMetadataCase_ == 2) { + return (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) + modelDeploymentMetadata_; + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + .getDefaultInstance(); + } + /** + * + * + *
+   * Model deployment metadata specific to Image Object Detection.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadataOrBuilder + getImageObjectDetectionModelDeploymentMetadataOrBuilder() { + if (modelDeploymentMetadataCase_ == 2) { + return (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) + modelDeploymentMetadata_; + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + .getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -152,6 +268,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } + if (modelDeploymentMetadataCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) + modelDeploymentMetadata_); + } unknownFields.writeTo(output); } @@ -164,6 +286,13 @@ public int getSerializedSize() { if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } + if (modelDeploymentMetadataCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) + modelDeploymentMetadata_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -181,6 +310,16 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.automl.v1beta1.DeployModelRequest) obj; if (!getName().equals(other.getName())) return false; + if (!getModelDeploymentMetadataCase().equals(other.getModelDeploymentMetadataCase())) + return false; + switch (modelDeploymentMetadataCase_) { + case 2: + if (!getImageObjectDetectionModelDeploymentMetadata() + .equals(other.getImageObjectDetectionModelDeploymentMetadata())) return false; + break; + case 0: + default: + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -194,6 +333,14 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + switch (modelDeploymentMetadataCase_) { + case 2: + hash = (37 * hash) + IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getImageObjectDetectionModelDeploymentMetadata().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -298,8 +445,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for
-   * [AutoMl.DeployModel][google.cloud.automl.v1beta1.AutoMl.DeployModel].
+   * Request message for [AutoMl.DeployModel][google.cloud.automl.v1beta1.AutoMl.DeployModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.DeployModelRequest} @@ -342,6 +488,8 @@ public Builder clear() { super.clear(); name_ = ""; + modelDeploymentMetadataCase_ = 0; + modelDeploymentMetadata_ = null; return this; } @@ -369,7 +517,16 @@ public com.google.cloud.automl.v1beta1.DeployModelRequest build() { public com.google.cloud.automl.v1beta1.DeployModelRequest buildPartial() { com.google.cloud.automl.v1beta1.DeployModelRequest result = new com.google.cloud.automl.v1beta1.DeployModelRequest(this); + if (modelDeploymentMetadataCase_ == 2) { + if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { + result.modelDeploymentMetadata_ = modelDeploymentMetadata_; + } else { + result.modelDeploymentMetadata_ = + imageObjectDetectionModelDeploymentMetadataBuilder_.build(); + } + } result.name_ = name_; + result.modelDeploymentMetadataCase_ = modelDeploymentMetadataCase_; onBuilt(); return result; } @@ -424,6 +581,18 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.DeployModelRequest othe name_ = other.name_; onChanged(); } + switch (other.getModelDeploymentMetadataCase()) { + case IMAGE_OBJECT_DETECTION_MODEL_DEPLOYMENT_METADATA: + { + mergeImageObjectDetectionModelDeploymentMetadata( + other.getImageObjectDetectionModelDeploymentMetadata()); + break; + } + case MODELDEPLOYMENTMETADATA_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -454,6 +623,260 @@ public Builder mergeFrom( return this; } + private int modelDeploymentMetadataCase_ = 0; + private java.lang.Object modelDeploymentMetadata_; + + public ModelDeploymentMetadataCase getModelDeploymentMetadataCase() { + return ModelDeploymentMetadataCase.forNumber(modelDeploymentMetadataCase_); + } + + public Builder clearModelDeploymentMetadata() { + modelDeploymentMetadataCase_ = 0; + modelDeploymentMetadata_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata, + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.Builder, + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadataOrBuilder> + imageObjectDetectionModelDeploymentMetadataBuilder_; + /** + * + * + *
+     * Model deployment metadata specific to Image Object Detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + */ + public boolean hasImageObjectDetectionModelDeploymentMetadata() { + return modelDeploymentMetadataCase_ == 2; + } + /** + * + * + *
+     * Model deployment metadata specific to Image Object Detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + getImageObjectDetectionModelDeploymentMetadata() { + if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { + if (modelDeploymentMetadataCase_ == 2) { + return (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) + modelDeploymentMetadata_; + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + .getDefaultInstance(); + } else { + if (modelDeploymentMetadataCase_ == 2) { + return imageObjectDetectionModelDeploymentMetadataBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Model deployment metadata specific to Image Object Detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + */ + public Builder setImageObjectDetectionModelDeploymentMetadata( + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata value) { + if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelDeploymentMetadata_ = value; + onChanged(); + } else { + imageObjectDetectionModelDeploymentMetadataBuilder_.setMessage(value); + } + modelDeploymentMetadataCase_ = 2; + return this; + } + /** + * + * + *
+     * Model deployment metadata specific to Image Object Detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + */ + public Builder setImageObjectDetectionModelDeploymentMetadata( + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.Builder + builderForValue) { + if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { + modelDeploymentMetadata_ = builderForValue.build(); + onChanged(); + } else { + imageObjectDetectionModelDeploymentMetadataBuilder_.setMessage(builderForValue.build()); + } + modelDeploymentMetadataCase_ = 2; + return this; + } + /** + * + * + *
+     * Model deployment metadata specific to Image Object Detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + */ + public Builder mergeImageObjectDetectionModelDeploymentMetadata( + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata value) { + if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { + if (modelDeploymentMetadataCase_ == 2 + && modelDeploymentMetadata_ + != com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + .getDefaultInstance()) { + modelDeploymentMetadata_ = + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + .newBuilder( + (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) + modelDeploymentMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + modelDeploymentMetadata_ = value; + } + onChanged(); + } else { + if (modelDeploymentMetadataCase_ == 2) { + imageObjectDetectionModelDeploymentMetadataBuilder_.mergeFrom(value); + } + imageObjectDetectionModelDeploymentMetadataBuilder_.setMessage(value); + } + modelDeploymentMetadataCase_ = 2; + return this; + } + /** + * + * + *
+     * Model deployment metadata specific to Image Object Detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + */ + public Builder clearImageObjectDetectionModelDeploymentMetadata() { + if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { + if (modelDeploymentMetadataCase_ == 2) { + modelDeploymentMetadataCase_ = 0; + modelDeploymentMetadata_ = null; + onChanged(); + } + } else { + if (modelDeploymentMetadataCase_ == 2) { + modelDeploymentMetadataCase_ = 0; + modelDeploymentMetadata_ = null; + } + imageObjectDetectionModelDeploymentMetadataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Model deployment metadata specific to Image Object Detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.Builder + getImageObjectDetectionModelDeploymentMetadataBuilder() { + return getImageObjectDetectionModelDeploymentMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Model deployment metadata specific to Image Object Detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadataOrBuilder + getImageObjectDetectionModelDeploymentMetadataOrBuilder() { + if ((modelDeploymentMetadataCase_ == 2) + && (imageObjectDetectionModelDeploymentMetadataBuilder_ != null)) { + return imageObjectDetectionModelDeploymentMetadataBuilder_.getMessageOrBuilder(); + } else { + if (modelDeploymentMetadataCase_ == 2) { + return (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) + modelDeploymentMetadata_; + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Model deployment metadata specific to Image Object Detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata, + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.Builder, + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadataOrBuilder> + getImageObjectDetectionModelDeploymentMetadataFieldBuilder() { + if (imageObjectDetectionModelDeploymentMetadataBuilder_ == null) { + if (!(modelDeploymentMetadataCase_ == 2)) { + modelDeploymentMetadata_ = + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + .getDefaultInstance(); + } + imageObjectDetectionModelDeploymentMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata, + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.Builder, + com.google.cloud.automl.v1beta1 + .ImageObjectDetectionModelDeploymentMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) + modelDeploymentMetadata_, + getParentForChildren(), + isClean()); + modelDeploymentMetadata_ = null; + } + modelDeploymentMetadataCase_ = 2; + onChanged(); + ; + return imageObjectDetectionModelDeploymentMetadataBuilder_; + } + private java.lang.Object name_ = ""; /** * diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequestOrBuilder.java index fc56ee45ea79..86ded9933e24 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DeployModelRequestOrBuilder.java @@ -8,6 +8,45 @@ public interface DeployModelRequestOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.DeployModelRequest) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Model deployment metadata specific to Image Object Detection.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + */ + boolean hasImageObjectDetectionModelDeploymentMetadata(); + /** + * + * + *
+   * Model deployment metadata specific to Image Object Detection.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + */ + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + getImageObjectDetectionModelDeploymentMetadata(); + /** + * + * + *
+   * Model deployment metadata specific to Image Object Detection.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + * + */ + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadataOrBuilder + getImageObjectDetectionModelDeploymentMetadataOrBuilder(); + /** * * @@ -28,4 +67,7 @@ public interface DeployModelRequestOrBuilder * string name = 1; */ com.google.protobuf.ByteString getNameBytes(); + + public com.google.cloud.automl.v1beta1.DeployModelRequest.ModelDeploymentMetadataCase + getModelDeploymentMetadataCase(); } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Detection.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Detection.java new file mode 100644 index 000000000000..a46738294215 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Detection.java @@ -0,0 +1,123 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/detection.proto + +package com.google.cloud.automl.v1beta1; + +public final class Detection { + private Detection() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionEvaluationMetrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionEvaluationMetrics_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/automl/v1beta1/detection." + + "proto\022\033google.cloud.automl.v1beta1\032\034goog" + + "le/api/annotations.proto\032*google/cloud/a" + + "utoml/v1beta1/geometry.proto\032\036google/pro" + + "tobuf/duration.proto\"p\n\036ImageObjectDetec" + + "tionAnnotation\022?\n\014bounding_box\030\001 \001(\0132).g" + + "oogle.cloud.automl.v1beta1.BoundingPoly\022" + + "\r\n\005score\030\002 \001(\002\"\256\002\n\027BoundingBoxMetricsEnt" + + "ry\022\025\n\riou_threshold\030\001 \001(\002\022\036\n\026mean_averag" + + "e_precision\030\002 \001(\002\022o\n\032confidence_metrics_" + + "entries\030\003 \003(\0132K.google.cloud.automl.v1be" + + "ta1.BoundingBoxMetricsEntry.ConfidenceMe" + + "tricsEntry\032k\n\026ConfidenceMetricsEntry\022\034\n\024" + + "confidence_threshold\030\001 \001(\002\022\016\n\006recall\030\002 \001" + + "(\002\022\021\n\tprecision\030\003 \001(\002\022\020\n\010f1_score\030\004 \001(\002\"" + + "\326\001\n%ImageObjectDetectionEvaluationMetric" + + "s\022$\n\034evaluated_bounding_box_count\030\001 \001(\005\022" + + "Z\n\034bounding_box_metrics_entries\030\002 \003(\01324." + + "google.cloud.automl.v1beta1.BoundingBoxM" + + "etricsEntry\022+\n#bounding_box_mean_average" + + "_precision\030\003 \001(\002B\204\001\n\037com.google.cloud.au" + + "toml.v1beta1P\001ZAgoogle.golang.org/genpro" + + "to/googleapis/cloud/automl/v1beta1;autom" + + "l\312\002\033Google\\Cloud\\AutoMl\\V1beta1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.automl.v1beta1.Geometry.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionAnnotation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionAnnotation_descriptor, + new java.lang.String[] { + "BoundingBox", "Score", + }); + internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_descriptor, + new java.lang.String[] { + "IouThreshold", "MeanAveragePrecision", "ConfidenceMetricsEntries", + }); + internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor = + internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_BoundingBoxMetricsEntry_ConfidenceMetricsEntry_descriptor, + new java.lang.String[] { + "ConfidenceThreshold", "Recall", "Precision", "F1Score", + }); + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionEvaluationMetrics_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionEvaluationMetrics_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionEvaluationMetrics_descriptor, + new java.lang.String[] { + "EvaluatedBoundingBoxCount", + "BoundingBoxMetricsEntries", + "BoundingBoxMeanAveragePrecision", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.automl.v1beta1.Geometry.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Document.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Document.java new file mode 100644 index 000000000000..18f3be1c62a6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Document.java @@ -0,0 +1,701 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_items.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * A structured text document e.g. a PDF.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.Document} + */ +public final class Document extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.Document) + DocumentOrBuilder { + private static final long serialVersionUID = 0L; + // Use Document.newBuilder() to construct. + private Document(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Document() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Document( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.automl.v1beta1.DocumentInputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.automl.v1beta1.DocumentInputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_Document_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_Document_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.Document.class, + com.google.cloud.automl.v1beta1.Document.Builder.class); + } + + public static final int INPUT_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.automl.v1beta1.DocumentInputConfig inputConfig_; + /** + * + * + *
+   * An input config specifying the content of the document.
+   * 
+ * + * .google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1; + */ + public boolean hasInputConfig() { + return inputConfig_ != null; + } + /** + * + * + *
+   * An input config specifying the content of the document.
+   * 
+ * + * .google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1; + */ + public com.google.cloud.automl.v1beta1.DocumentInputConfig getInputConfig() { + return inputConfig_ == null + ? com.google.cloud.automl.v1beta1.DocumentInputConfig.getDefaultInstance() + : inputConfig_; + } + /** + * + * + *
+   * An input config specifying the content of the document.
+   * 
+ * + * .google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1; + */ + public com.google.cloud.automl.v1beta1.DocumentInputConfigOrBuilder getInputConfigOrBuilder() { + return getInputConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (inputConfig_ != null) { + output.writeMessage(1, getInputConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getInputConfig()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.Document)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.Document other = (com.google.cloud.automl.v1beta1.Document) obj; + + if (hasInputConfig() != other.hasInputConfig()) return false; + if (hasInputConfig()) { + if (!getInputConfig().equals(other.getInputConfig())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInputConfig()) { + hash = (37 * hash) + INPUT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getInputConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.Document parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.Document parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.Document parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.Document parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.Document parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.Document parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.Document parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.Document parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.Document parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.Document parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.Document parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.Document parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.Document prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A structured text document e.g. a PDF.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.Document} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.Document) + com.google.cloud.automl.v1beta1.DocumentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_Document_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_Document_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.Document.class, + com.google.cloud.automl.v1beta1.Document.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.Document.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (inputConfigBuilder_ == null) { + inputConfig_ = null; + } else { + inputConfig_ = null; + inputConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_Document_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.Document getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.Document.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.Document build() { + com.google.cloud.automl.v1beta1.Document result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.Document buildPartial() { + com.google.cloud.automl.v1beta1.Document result = + new com.google.cloud.automl.v1beta1.Document(this); + if (inputConfigBuilder_ == null) { + result.inputConfig_ = inputConfig_; + } else { + result.inputConfig_ = inputConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.Document) { + return mergeFrom((com.google.cloud.automl.v1beta1.Document) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.Document other) { + if (other == com.google.cloud.automl.v1beta1.Document.getDefaultInstance()) return this; + if (other.hasInputConfig()) { + mergeInputConfig(other.getInputConfig()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.Document parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.Document) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.automl.v1beta1.DocumentInputConfig inputConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DocumentInputConfig, + com.google.cloud.automl.v1beta1.DocumentInputConfig.Builder, + com.google.cloud.automl.v1beta1.DocumentInputConfigOrBuilder> + inputConfigBuilder_; + /** + * + * + *
+     * An input config specifying the content of the document.
+     * 
+ * + * .google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1; + */ + public boolean hasInputConfig() { + return inputConfigBuilder_ != null || inputConfig_ != null; + } + /** + * + * + *
+     * An input config specifying the content of the document.
+     * 
+ * + * .google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1; + */ + public com.google.cloud.automl.v1beta1.DocumentInputConfig getInputConfig() { + if (inputConfigBuilder_ == null) { + return inputConfig_ == null + ? com.google.cloud.automl.v1beta1.DocumentInputConfig.getDefaultInstance() + : inputConfig_; + } else { + return inputConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * An input config specifying the content of the document.
+     * 
+ * + * .google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1; + */ + public Builder setInputConfig(com.google.cloud.automl.v1beta1.DocumentInputConfig value) { + if (inputConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputConfig_ = value; + onChanged(); + } else { + inputConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * An input config specifying the content of the document.
+     * 
+ * + * .google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1; + */ + public Builder setInputConfig( + com.google.cloud.automl.v1beta1.DocumentInputConfig.Builder builderForValue) { + if (inputConfigBuilder_ == null) { + inputConfig_ = builderForValue.build(); + onChanged(); + } else { + inputConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * An input config specifying the content of the document.
+     * 
+ * + * .google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1; + */ + public Builder mergeInputConfig(com.google.cloud.automl.v1beta1.DocumentInputConfig value) { + if (inputConfigBuilder_ == null) { + if (inputConfig_ != null) { + inputConfig_ = + com.google.cloud.automl.v1beta1.DocumentInputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + inputConfig_ = value; + } + onChanged(); + } else { + inputConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * An input config specifying the content of the document.
+     * 
+ * + * .google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1; + */ + public Builder clearInputConfig() { + if (inputConfigBuilder_ == null) { + inputConfig_ = null; + onChanged(); + } else { + inputConfig_ = null; + inputConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * An input config specifying the content of the document.
+     * 
+ * + * .google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1; + */ + public com.google.cloud.automl.v1beta1.DocumentInputConfig.Builder getInputConfigBuilder() { + + onChanged(); + return getInputConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * An input config specifying the content of the document.
+     * 
+ * + * .google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1; + */ + public com.google.cloud.automl.v1beta1.DocumentInputConfigOrBuilder getInputConfigOrBuilder() { + if (inputConfigBuilder_ != null) { + return inputConfigBuilder_.getMessageOrBuilder(); + } else { + return inputConfig_ == null + ? com.google.cloud.automl.v1beta1.DocumentInputConfig.getDefaultInstance() + : inputConfig_; + } + } + /** + * + * + *
+     * An input config specifying the content of the document.
+     * 
+ * + * .google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DocumentInputConfig, + com.google.cloud.automl.v1beta1.DocumentInputConfig.Builder, + com.google.cloud.automl.v1beta1.DocumentInputConfigOrBuilder> + getInputConfigFieldBuilder() { + if (inputConfigBuilder_ == null) { + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DocumentInputConfig, + com.google.cloud.automl.v1beta1.DocumentInputConfig.Builder, + com.google.cloud.automl.v1beta1.DocumentInputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); + inputConfig_ = null; + } + return inputConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.Document) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.Document) + private static final com.google.cloud.automl.v1beta1.Document DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.Document(); + } + + public static com.google.cloud.automl.v1beta1.Document getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Document parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Document(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.Document getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfig.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfig.java new file mode 100644 index 000000000000..ed5b65481ad2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfig.java @@ -0,0 +1,738 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/io.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Input configuration of a [Document][google.cloud.automl.v1beta1.Document].
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.DocumentInputConfig} + */ +public final class DocumentInputConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.DocumentInputConfig) + DocumentInputConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use DocumentInputConfig.newBuilder() to construct. + private DocumentInputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DocumentInputConfig() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DocumentInputConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.automl.v1beta1.GcsSource.Builder subBuilder = null; + if (gcsSource_ != null) { + subBuilder = gcsSource_.toBuilder(); + } + gcsSource_ = + input.readMessage( + com.google.cloud.automl.v1beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gcsSource_); + gcsSource_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_DocumentInputConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_DocumentInputConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.DocumentInputConfig.class, + com.google.cloud.automl.v1beta1.DocumentInputConfig.Builder.class); + } + + public static final int GCS_SOURCE_FIELD_NUMBER = 1; + private com.google.cloud.automl.v1beta1.GcsSource gcsSource_; + /** + * + * + *
+   * The Google Cloud Storage location of the document file. Only a single path
+   * should be given.
+   * Max supported size: 512MB.
+   * Supported extensions: .PDF.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + public boolean hasGcsSource() { + return gcsSource_ != null; + } + /** + * + * + *
+   * The Google Cloud Storage location of the document file. Only a single path
+   * should be given.
+   * Max supported size: 512MB.
+   * Supported extensions: .PDF.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + public com.google.cloud.automl.v1beta1.GcsSource getGcsSource() { + return gcsSource_ == null + ? com.google.cloud.automl.v1beta1.GcsSource.getDefaultInstance() + : gcsSource_; + } + /** + * + * + *
+   * The Google Cloud Storage location of the document file. Only a single path
+   * should be given.
+   * Max supported size: 512MB.
+   * Supported extensions: .PDF.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + public com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { + return getGcsSource(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (gcsSource_ != null) { + output.writeMessage(1, getGcsSource()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (gcsSource_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGcsSource()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.DocumentInputConfig)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.DocumentInputConfig other = + (com.google.cloud.automl.v1beta1.DocumentInputConfig) obj; + + if (hasGcsSource() != other.hasGcsSource()) return false; + if (hasGcsSource()) { + if (!getGcsSource().equals(other.getGcsSource())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGcsSource()) { + hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGcsSource().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.DocumentInputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.DocumentInputConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DocumentInputConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.DocumentInputConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DocumentInputConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.DocumentInputConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DocumentInputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.DocumentInputConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DocumentInputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.DocumentInputConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DocumentInputConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.DocumentInputConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.DocumentInputConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Input configuration of a [Document][google.cloud.automl.v1beta1.Document].
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.DocumentInputConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.DocumentInputConfig) + com.google.cloud.automl.v1beta1.DocumentInputConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_DocumentInputConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_DocumentInputConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.DocumentInputConfig.class, + com.google.cloud.automl.v1beta1.DocumentInputConfig.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.DocumentInputConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (gcsSourceBuilder_ == null) { + gcsSource_ = null; + } else { + gcsSource_ = null; + gcsSourceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_DocumentInputConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DocumentInputConfig getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.DocumentInputConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DocumentInputConfig build() { + com.google.cloud.automl.v1beta1.DocumentInputConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DocumentInputConfig buildPartial() { + com.google.cloud.automl.v1beta1.DocumentInputConfig result = + new com.google.cloud.automl.v1beta1.DocumentInputConfig(this); + if (gcsSourceBuilder_ == null) { + result.gcsSource_ = gcsSource_; + } else { + result.gcsSource_ = gcsSourceBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.DocumentInputConfig) { + return mergeFrom((com.google.cloud.automl.v1beta1.DocumentInputConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.DocumentInputConfig other) { + if (other == com.google.cloud.automl.v1beta1.DocumentInputConfig.getDefaultInstance()) + return this; + if (other.hasGcsSource()) { + mergeGcsSource(other.getGcsSource()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.DocumentInputConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.DocumentInputConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.automl.v1beta1.GcsSource gcsSource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.GcsSource, + com.google.cloud.automl.v1beta1.GcsSource.Builder, + com.google.cloud.automl.v1beta1.GcsSourceOrBuilder> + gcsSourceBuilder_; + /** + * + * + *
+     * The Google Cloud Storage location of the document file. Only a single path
+     * should be given.
+     * Max supported size: 512MB.
+     * Supported extensions: .PDF.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + public boolean hasGcsSource() { + return gcsSourceBuilder_ != null || gcsSource_ != null; + } + /** + * + * + *
+     * The Google Cloud Storage location of the document file. Only a single path
+     * should be given.
+     * Max supported size: 512MB.
+     * Supported extensions: .PDF.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + public com.google.cloud.automl.v1beta1.GcsSource getGcsSource() { + if (gcsSourceBuilder_ == null) { + return gcsSource_ == null + ? com.google.cloud.automl.v1beta1.GcsSource.getDefaultInstance() + : gcsSource_; + } else { + return gcsSourceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The Google Cloud Storage location of the document file. Only a single path
+     * should be given.
+     * Max supported size: 512MB.
+     * Supported extensions: .PDF.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gcsSource_ = value; + onChanged(); + } else { + gcsSourceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The Google Cloud Storage location of the document file. Only a single path
+     * should be given.
+     * Max supported size: 512MB.
+     * Supported extensions: .PDF.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource.Builder builderForValue) { + if (gcsSourceBuilder_ == null) { + gcsSource_ = builderForValue.build(); + onChanged(); + } else { + gcsSourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The Google Cloud Storage location of the document file. Only a single path
+     * should be given.
+     * Max supported size: 512MB.
+     * Supported extensions: .PDF.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + public Builder mergeGcsSource(com.google.cloud.automl.v1beta1.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (gcsSource_ != null) { + gcsSource_ = + com.google.cloud.automl.v1beta1.GcsSource.newBuilder(gcsSource_) + .mergeFrom(value) + .buildPartial(); + } else { + gcsSource_ = value; + } + onChanged(); + } else { + gcsSourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The Google Cloud Storage location of the document file. Only a single path
+     * should be given.
+     * Max supported size: 512MB.
+     * Supported extensions: .PDF.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + public Builder clearGcsSource() { + if (gcsSourceBuilder_ == null) { + gcsSource_ = null; + onChanged(); + } else { + gcsSource_ = null; + gcsSourceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The Google Cloud Storage location of the document file. Only a single path
+     * should be given.
+     * Max supported size: 512MB.
+     * Supported extensions: .PDF.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + public com.google.cloud.automl.v1beta1.GcsSource.Builder getGcsSourceBuilder() { + + onChanged(); + return getGcsSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The Google Cloud Storage location of the document file. Only a single path
+     * should be given.
+     * Max supported size: 512MB.
+     * Supported extensions: .PDF.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + public com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if (gcsSourceBuilder_ != null) { + return gcsSourceBuilder_.getMessageOrBuilder(); + } else { + return gcsSource_ == null + ? com.google.cloud.automl.v1beta1.GcsSource.getDefaultInstance() + : gcsSource_; + } + } + /** + * + * + *
+     * The Google Cloud Storage location of the document file. Only a single path
+     * should be given.
+     * Max supported size: 512MB.
+     * Supported extensions: .PDF.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.GcsSource, + com.google.cloud.automl.v1beta1.GcsSource.Builder, + com.google.cloud.automl.v1beta1.GcsSourceOrBuilder> + getGcsSourceFieldBuilder() { + if (gcsSourceBuilder_ == null) { + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.GcsSource, + com.google.cloud.automl.v1beta1.GcsSource.Builder, + com.google.cloud.automl.v1beta1.GcsSourceOrBuilder>( + getGcsSource(), getParentForChildren(), isClean()); + gcsSource_ = null; + } + return gcsSourceBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.DocumentInputConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.DocumentInputConfig) + private static final com.google.cloud.automl.v1beta1.DocumentInputConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.DocumentInputConfig(); + } + + public static com.google.cloud.automl.v1beta1.DocumentInputConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentInputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DocumentInputConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DocumentInputConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfigOrBuilder.java new file mode 100644 index 000000000000..f76aa9eb7729 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentInputConfigOrBuilder.java @@ -0,0 +1,50 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/io.proto + +package com.google.cloud.automl.v1beta1; + +public interface DocumentInputConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.DocumentInputConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Google Cloud Storage location of the document file. Only a single path
+   * should be given.
+   * Max supported size: 512MB.
+   * Supported extensions: .PDF.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + boolean hasGcsSource(); + /** + * + * + *
+   * The Google Cloud Storage location of the document file. Only a single path
+   * should be given.
+   * Max supported size: 512MB.
+   * Supported extensions: .PDF.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + com.google.cloud.automl.v1beta1.GcsSource getGcsSource(); + /** + * + * + *
+   * The Google Cloud Storage location of the document file. Only a single path
+   * should be given.
+   * Max supported size: 512MB.
+   * Supported extensions: .PDF.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; + */ + com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentOrBuilder.java new file mode 100644 index 000000000000..59e37ecbd277 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DocumentOrBuilder.java @@ -0,0 +1,41 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_items.proto + +package com.google.cloud.automl.v1beta1; + +public interface DocumentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.Document) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * An input config specifying the content of the document.
+   * 
+ * + * .google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1; + */ + boolean hasInputConfig(); + /** + * + * + *
+   * An input config specifying the content of the document.
+   * 
+ * + * .google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1; + */ + com.google.cloud.automl.v1beta1.DocumentInputConfig getInputConfig(); + /** + * + * + *
+   * An input config specifying the content of the document.
+   * 
+ * + * .google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1; + */ + com.google.cloud.automl.v1beta1.DocumentInputConfigOrBuilder getInputConfigOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRange.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRange.java new file mode 100644 index 000000000000..a9986dcee9e2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRange.java @@ -0,0 +1,598 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/ranges.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * A range between two double numbers.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.DoubleRange} + */ +public final class DoubleRange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.DoubleRange) + DoubleRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use DoubleRange.newBuilder() to construct. + private DoubleRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DoubleRange() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DoubleRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + start_ = input.readDouble(); + break; + } + case 17: + { + end_ = input.readDouble(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.RangesProto + .internal_static_google_cloud_automl_v1beta1_DoubleRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.RangesProto + .internal_static_google_cloud_automl_v1beta1_DoubleRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.DoubleRange.class, + com.google.cloud.automl.v1beta1.DoubleRange.Builder.class); + } + + public static final int START_FIELD_NUMBER = 1; + private double start_; + /** + * + * + *
+   * Start of the range, inclusive.
+   * 
+ * + * double start = 1; + */ + public double getStart() { + return start_; + } + + public static final int END_FIELD_NUMBER = 2; + private double end_; + /** + * + * + *
+   * End of the range, exclusive.
+   * 
+ * + * double end = 2; + */ + public double getEnd() { + return end_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (start_ != 0D) { + output.writeDouble(1, start_); + } + if (end_ != 0D) { + output.writeDouble(2, end_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (start_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, start_); + } + if (end_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, end_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.DoubleRange)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.DoubleRange other = + (com.google.cloud.automl.v1beta1.DoubleRange) obj; + + if (java.lang.Double.doubleToLongBits(getStart()) + != java.lang.Double.doubleToLongBits(other.getStart())) return false; + if (java.lang.Double.doubleToLongBits(getEnd()) + != java.lang.Double.doubleToLongBits(other.getEnd())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + START_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getStart())); + hash = (37 * hash) + END_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getEnd())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.DoubleRange parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.DoubleRange parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DoubleRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.DoubleRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DoubleRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.DoubleRange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DoubleRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.DoubleRange parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DoubleRange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.DoubleRange parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.DoubleRange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.DoubleRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.DoubleRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A range between two double numbers.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.DoubleRange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.DoubleRange) + com.google.cloud.automl.v1beta1.DoubleRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.RangesProto + .internal_static_google_cloud_automl_v1beta1_DoubleRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.RangesProto + .internal_static_google_cloud_automl_v1beta1_DoubleRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.DoubleRange.class, + com.google.cloud.automl.v1beta1.DoubleRange.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.DoubleRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + start_ = 0D; + + end_ = 0D; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.RangesProto + .internal_static_google_cloud_automl_v1beta1_DoubleRange_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DoubleRange getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.DoubleRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DoubleRange build() { + com.google.cloud.automl.v1beta1.DoubleRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DoubleRange buildPartial() { + com.google.cloud.automl.v1beta1.DoubleRange result = + new com.google.cloud.automl.v1beta1.DoubleRange(this); + result.start_ = start_; + result.end_ = end_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.DoubleRange) { + return mergeFrom((com.google.cloud.automl.v1beta1.DoubleRange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.DoubleRange other) { + if (other == com.google.cloud.automl.v1beta1.DoubleRange.getDefaultInstance()) return this; + if (other.getStart() != 0D) { + setStart(other.getStart()); + } + if (other.getEnd() != 0D) { + setEnd(other.getEnd()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.DoubleRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.DoubleRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double start_; + /** + * + * + *
+     * Start of the range, inclusive.
+     * 
+ * + * double start = 1; + */ + public double getStart() { + return start_; + } + /** + * + * + *
+     * Start of the range, inclusive.
+     * 
+ * + * double start = 1; + */ + public Builder setStart(double value) { + + start_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Start of the range, inclusive.
+     * 
+ * + * double start = 1; + */ + public Builder clearStart() { + + start_ = 0D; + onChanged(); + return this; + } + + private double end_; + /** + * + * + *
+     * End of the range, exclusive.
+     * 
+ * + * double end = 2; + */ + public double getEnd() { + return end_; + } + /** + * + * + *
+     * End of the range, exclusive.
+     * 
+ * + * double end = 2; + */ + public Builder setEnd(double value) { + + end_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * End of the range, exclusive.
+     * 
+ * + * double end = 2; + */ + public Builder clearEnd() { + + end_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.DoubleRange) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.DoubleRange) + private static final com.google.cloud.automl.v1beta1.DoubleRange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.DoubleRange(); + } + + public static com.google.cloud.automl.v1beta1.DoubleRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DoubleRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DoubleRange(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.DoubleRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRangeOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRangeOrBuilder.java new file mode 100644 index 000000000000..8ab2e5c02ef6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/DoubleRangeOrBuilder.java @@ -0,0 +1,32 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/ranges.proto + +package com.google.cloud.automl.v1beta1; + +public interface DoubleRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.DoubleRange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Start of the range, inclusive.
+   * 
+ * + * double start = 1; + */ + double getStart(); + + /** + * + * + *
+   * End of the range, exclusive.
+   * 
+ * + * double end = 2; + */ + double getEnd(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayload.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayload.java index 59d97f7359d3..f396d6aa8db0 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayload.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayload.java @@ -80,6 +80,38 @@ private ExamplePayload( payloadCase_ = 2; break; } + case 26: + { + com.google.cloud.automl.v1beta1.Row.Builder subBuilder = null; + if (payloadCase_ == 3) { + subBuilder = ((com.google.cloud.automl.v1beta1.Row) payload_).toBuilder(); + } + payload_ = + input.readMessage( + com.google.cloud.automl.v1beta1.Row.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.Row) payload_); + payload_ = subBuilder.buildPartial(); + } + payloadCase_ = 3; + break; + } + case 34: + { + com.google.cloud.automl.v1beta1.Document.Builder subBuilder = null; + if (payloadCase_ == 4) { + subBuilder = ((com.google.cloud.automl.v1beta1.Document) payload_).toBuilder(); + } + payload_ = + input.readMessage( + com.google.cloud.automl.v1beta1.Document.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.Document) payload_); + payload_ = subBuilder.buildPartial(); + } + payloadCase_ = 4; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -120,6 +152,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public enum PayloadCase implements com.google.protobuf.Internal.EnumLite { IMAGE(1), TEXT_SNIPPET(2), + DOCUMENT(4), + ROW(3), PAYLOAD_NOT_SET(0); private final int value; @@ -138,6 +172,10 @@ public static PayloadCase forNumber(int value) { return IMAGE; case 2: return TEXT_SNIPPET; + case 4: + return DOCUMENT; + case 3: + return ROW; case 0: return PAYLOAD_NOT_SET; default: @@ -159,7 +197,7 @@ public PayloadCase getPayloadCase() { * * *
-   * An example image.
+   * Example image.
    * 
* * .google.cloud.automl.v1beta1.Image image = 1; @@ -171,7 +209,7 @@ public boolean hasImage() { * * *
-   * An example image.
+   * Example image.
    * 
* * .google.cloud.automl.v1beta1.Image image = 1; @@ -186,7 +224,7 @@ public com.google.cloud.automl.v1beta1.Image getImage() { * * *
-   * An example image.
+   * Example image.
    * 
* * .google.cloud.automl.v1beta1.Image image = 1; @@ -242,6 +280,94 @@ public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getTextSnippetOrBuil return com.google.cloud.automl.v1beta1.TextSnippet.getDefaultInstance(); } + public static final int DOCUMENT_FIELD_NUMBER = 4; + /** + * + * + *
+   * Example document.
+   * 
+ * + * .google.cloud.automl.v1beta1.Document document = 4; + */ + public boolean hasDocument() { + return payloadCase_ == 4; + } + /** + * + * + *
+   * Example document.
+   * 
+ * + * .google.cloud.automl.v1beta1.Document document = 4; + */ + public com.google.cloud.automl.v1beta1.Document getDocument() { + if (payloadCase_ == 4) { + return (com.google.cloud.automl.v1beta1.Document) payload_; + } + return com.google.cloud.automl.v1beta1.Document.getDefaultInstance(); + } + /** + * + * + *
+   * Example document.
+   * 
+ * + * .google.cloud.automl.v1beta1.Document document = 4; + */ + public com.google.cloud.automl.v1beta1.DocumentOrBuilder getDocumentOrBuilder() { + if (payloadCase_ == 4) { + return (com.google.cloud.automl.v1beta1.Document) payload_; + } + return com.google.cloud.automl.v1beta1.Document.getDefaultInstance(); + } + + public static final int ROW_FIELD_NUMBER = 3; + /** + * + * + *
+   * Example relational table row.
+   * 
+ * + * .google.cloud.automl.v1beta1.Row row = 3; + */ + public boolean hasRow() { + return payloadCase_ == 3; + } + /** + * + * + *
+   * Example relational table row.
+   * 
+ * + * .google.cloud.automl.v1beta1.Row row = 3; + */ + public com.google.cloud.automl.v1beta1.Row getRow() { + if (payloadCase_ == 3) { + return (com.google.cloud.automl.v1beta1.Row) payload_; + } + return com.google.cloud.automl.v1beta1.Row.getDefaultInstance(); + } + /** + * + * + *
+   * Example relational table row.
+   * 
+ * + * .google.cloud.automl.v1beta1.Row row = 3; + */ + public com.google.cloud.automl.v1beta1.RowOrBuilder getRowOrBuilder() { + if (payloadCase_ == 3) { + return (com.google.cloud.automl.v1beta1.Row) payload_; + } + return com.google.cloud.automl.v1beta1.Row.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -262,6 +388,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (payloadCase_ == 2) { output.writeMessage(2, (com.google.cloud.automl.v1beta1.TextSnippet) payload_); } + if (payloadCase_ == 3) { + output.writeMessage(3, (com.google.cloud.automl.v1beta1.Row) payload_); + } + if (payloadCase_ == 4) { + output.writeMessage(4, (com.google.cloud.automl.v1beta1.Document) payload_); + } unknownFields.writeTo(output); } @@ -281,6 +413,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.cloud.automl.v1beta1.TextSnippet) payload_); } + if (payloadCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.automl.v1beta1.Row) payload_); + } + if (payloadCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.automl.v1beta1.Document) payload_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -305,6 +447,12 @@ public boolean equals(final java.lang.Object obj) { case 2: if (!getTextSnippet().equals(other.getTextSnippet())) return false; break; + case 4: + if (!getDocument().equals(other.getDocument())) return false; + break; + case 3: + if (!getRow().equals(other.getRow())) return false; + break; case 0: default: } @@ -328,6 +476,14 @@ public int hashCode() { hash = (37 * hash) + TEXT_SNIPPET_FIELD_NUMBER; hash = (53 * hash) + getTextSnippet().hashCode(); break; + case 4: + hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getDocument().hashCode(); + break; + case 3: + hash = (37 * hash) + ROW_FIELD_NUMBER; + hash = (53 * hash) + getRow().hashCode(); + break; case 0: default: } @@ -519,6 +675,20 @@ public com.google.cloud.automl.v1beta1.ExamplePayload buildPartial() { result.payload_ = textSnippetBuilder_.build(); } } + if (payloadCase_ == 4) { + if (documentBuilder_ == null) { + result.payload_ = payload_; + } else { + result.payload_ = documentBuilder_.build(); + } + } + if (payloadCase_ == 3) { + if (rowBuilder_ == null) { + result.payload_ = payload_; + } else { + result.payload_ = rowBuilder_.build(); + } + } result.payloadCase_ = payloadCase_; onBuilt(); return result; @@ -580,6 +750,16 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ExamplePayload other) { mergeTextSnippet(other.getTextSnippet()); break; } + case DOCUMENT: + { + mergeDocument(other.getDocument()); + break; + } + case ROW: + { + mergeRow(other.getRow()); + break; + } case PAYLOAD_NOT_SET: { break; @@ -637,7 +817,7 @@ public Builder clearPayload() { * * *
-     * An example image.
+     * Example image.
      * 
* * .google.cloud.automl.v1beta1.Image image = 1; @@ -649,7 +829,7 @@ public boolean hasImage() { * * *
-     * An example image.
+     * Example image.
      * 
* * .google.cloud.automl.v1beta1.Image image = 1; @@ -671,7 +851,7 @@ public com.google.cloud.automl.v1beta1.Image getImage() { * * *
-     * An example image.
+     * Example image.
      * 
* * .google.cloud.automl.v1beta1.Image image = 1; @@ -693,7 +873,7 @@ public Builder setImage(com.google.cloud.automl.v1beta1.Image value) { * * *
-     * An example image.
+     * Example image.
      * 
* * .google.cloud.automl.v1beta1.Image image = 1; @@ -712,7 +892,7 @@ public Builder setImage(com.google.cloud.automl.v1beta1.Image.Builder builderFor * * *
-     * An example image.
+     * Example image.
      * 
* * .google.cloud.automl.v1beta1.Image image = 1; @@ -743,7 +923,7 @@ public Builder mergeImage(com.google.cloud.automl.v1beta1.Image value) { * * *
-     * An example image.
+     * Example image.
      * 
* * .google.cloud.automl.v1beta1.Image image = 1; @@ -768,7 +948,7 @@ public Builder clearImage() { * * *
-     * An example image.
+     * Example image.
      * 
* * .google.cloud.automl.v1beta1.Image image = 1; @@ -780,7 +960,7 @@ public com.google.cloud.automl.v1beta1.Image.Builder getImageBuilder() { * * *
-     * An example image.
+     * Example image.
      * 
* * .google.cloud.automl.v1beta1.Image image = 1; @@ -799,7 +979,7 @@ public com.google.cloud.automl.v1beta1.ImageOrBuilder getImageOrBuilder() { * * *
-     * An example image.
+     * Example image.
      * 
* * .google.cloud.automl.v1beta1.Image image = 1; @@ -1031,6 +1211,406 @@ public com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getTextSnippetOrBuil return textSnippetBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.Document, + com.google.cloud.automl.v1beta1.Document.Builder, + com.google.cloud.automl.v1beta1.DocumentOrBuilder> + documentBuilder_; + /** + * + * + *
+     * Example document.
+     * 
+ * + * .google.cloud.automl.v1beta1.Document document = 4; + */ + public boolean hasDocument() { + return payloadCase_ == 4; + } + /** + * + * + *
+     * Example document.
+     * 
+ * + * .google.cloud.automl.v1beta1.Document document = 4; + */ + public com.google.cloud.automl.v1beta1.Document getDocument() { + if (documentBuilder_ == null) { + if (payloadCase_ == 4) { + return (com.google.cloud.automl.v1beta1.Document) payload_; + } + return com.google.cloud.automl.v1beta1.Document.getDefaultInstance(); + } else { + if (payloadCase_ == 4) { + return documentBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.Document.getDefaultInstance(); + } + } + /** + * + * + *
+     * Example document.
+     * 
+ * + * .google.cloud.automl.v1beta1.Document document = 4; + */ + public Builder setDocument(com.google.cloud.automl.v1beta1.Document value) { + if (documentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + documentBuilder_.setMessage(value); + } + payloadCase_ = 4; + return this; + } + /** + * + * + *
+     * Example document.
+     * 
+ * + * .google.cloud.automl.v1beta1.Document document = 4; + */ + public Builder setDocument(com.google.cloud.automl.v1beta1.Document.Builder builderForValue) { + if (documentBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + documentBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 4; + return this; + } + /** + * + * + *
+     * Example document.
+     * 
+ * + * .google.cloud.automl.v1beta1.Document document = 4; + */ + public Builder mergeDocument(com.google.cloud.automl.v1beta1.Document value) { + if (documentBuilder_ == null) { + if (payloadCase_ == 4 + && payload_ != com.google.cloud.automl.v1beta1.Document.getDefaultInstance()) { + payload_ = + com.google.cloud.automl.v1beta1.Document.newBuilder( + (com.google.cloud.automl.v1beta1.Document) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 4) { + documentBuilder_.mergeFrom(value); + } + documentBuilder_.setMessage(value); + } + payloadCase_ = 4; + return this; + } + /** + * + * + *
+     * Example document.
+     * 
+ * + * .google.cloud.automl.v1beta1.Document document = 4; + */ + public Builder clearDocument() { + if (documentBuilder_ == null) { + if (payloadCase_ == 4) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 4) { + payloadCase_ = 0; + payload_ = null; + } + documentBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Example document.
+     * 
+ * + * .google.cloud.automl.v1beta1.Document document = 4; + */ + public com.google.cloud.automl.v1beta1.Document.Builder getDocumentBuilder() { + return getDocumentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Example document.
+     * 
+ * + * .google.cloud.automl.v1beta1.Document document = 4; + */ + public com.google.cloud.automl.v1beta1.DocumentOrBuilder getDocumentOrBuilder() { + if ((payloadCase_ == 4) && (documentBuilder_ != null)) { + return documentBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 4) { + return (com.google.cloud.automl.v1beta1.Document) payload_; + } + return com.google.cloud.automl.v1beta1.Document.getDefaultInstance(); + } + } + /** + * + * + *
+     * Example document.
+     * 
+ * + * .google.cloud.automl.v1beta1.Document document = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.Document, + com.google.cloud.automl.v1beta1.Document.Builder, + com.google.cloud.automl.v1beta1.DocumentOrBuilder> + getDocumentFieldBuilder() { + if (documentBuilder_ == null) { + if (!(payloadCase_ == 4)) { + payload_ = com.google.cloud.automl.v1beta1.Document.getDefaultInstance(); + } + documentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.Document, + com.google.cloud.automl.v1beta1.Document.Builder, + com.google.cloud.automl.v1beta1.DocumentOrBuilder>( + (com.google.cloud.automl.v1beta1.Document) payload_, + getParentForChildren(), + isClean()); + payload_ = null; + } + payloadCase_ = 4; + onChanged(); + ; + return documentBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.Row, + com.google.cloud.automl.v1beta1.Row.Builder, + com.google.cloud.automl.v1beta1.RowOrBuilder> + rowBuilder_; + /** + * + * + *
+     * Example relational table row.
+     * 
+ * + * .google.cloud.automl.v1beta1.Row row = 3; + */ + public boolean hasRow() { + return payloadCase_ == 3; + } + /** + * + * + *
+     * Example relational table row.
+     * 
+ * + * .google.cloud.automl.v1beta1.Row row = 3; + */ + public com.google.cloud.automl.v1beta1.Row getRow() { + if (rowBuilder_ == null) { + if (payloadCase_ == 3) { + return (com.google.cloud.automl.v1beta1.Row) payload_; + } + return com.google.cloud.automl.v1beta1.Row.getDefaultInstance(); + } else { + if (payloadCase_ == 3) { + return rowBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.Row.getDefaultInstance(); + } + } + /** + * + * + *
+     * Example relational table row.
+     * 
+ * + * .google.cloud.automl.v1beta1.Row row = 3; + */ + public Builder setRow(com.google.cloud.automl.v1beta1.Row value) { + if (rowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + payload_ = value; + onChanged(); + } else { + rowBuilder_.setMessage(value); + } + payloadCase_ = 3; + return this; + } + /** + * + * + *
+     * Example relational table row.
+     * 
+ * + * .google.cloud.automl.v1beta1.Row row = 3; + */ + public Builder setRow(com.google.cloud.automl.v1beta1.Row.Builder builderForValue) { + if (rowBuilder_ == null) { + payload_ = builderForValue.build(); + onChanged(); + } else { + rowBuilder_.setMessage(builderForValue.build()); + } + payloadCase_ = 3; + return this; + } + /** + * + * + *
+     * Example relational table row.
+     * 
+ * + * .google.cloud.automl.v1beta1.Row row = 3; + */ + public Builder mergeRow(com.google.cloud.automl.v1beta1.Row value) { + if (rowBuilder_ == null) { + if (payloadCase_ == 3 + && payload_ != com.google.cloud.automl.v1beta1.Row.getDefaultInstance()) { + payload_ = + com.google.cloud.automl.v1beta1.Row.newBuilder( + (com.google.cloud.automl.v1beta1.Row) payload_) + .mergeFrom(value) + .buildPartial(); + } else { + payload_ = value; + } + onChanged(); + } else { + if (payloadCase_ == 3) { + rowBuilder_.mergeFrom(value); + } + rowBuilder_.setMessage(value); + } + payloadCase_ = 3; + return this; + } + /** + * + * + *
+     * Example relational table row.
+     * 
+ * + * .google.cloud.automl.v1beta1.Row row = 3; + */ + public Builder clearRow() { + if (rowBuilder_ == null) { + if (payloadCase_ == 3) { + payloadCase_ = 0; + payload_ = null; + onChanged(); + } + } else { + if (payloadCase_ == 3) { + payloadCase_ = 0; + payload_ = null; + } + rowBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Example relational table row.
+     * 
+ * + * .google.cloud.automl.v1beta1.Row row = 3; + */ + public com.google.cloud.automl.v1beta1.Row.Builder getRowBuilder() { + return getRowFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Example relational table row.
+     * 
+ * + * .google.cloud.automl.v1beta1.Row row = 3; + */ + public com.google.cloud.automl.v1beta1.RowOrBuilder getRowOrBuilder() { + if ((payloadCase_ == 3) && (rowBuilder_ != null)) { + return rowBuilder_.getMessageOrBuilder(); + } else { + if (payloadCase_ == 3) { + return (com.google.cloud.automl.v1beta1.Row) payload_; + } + return com.google.cloud.automl.v1beta1.Row.getDefaultInstance(); + } + } + /** + * + * + *
+     * Example relational table row.
+     * 
+ * + * .google.cloud.automl.v1beta1.Row row = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.Row, + com.google.cloud.automl.v1beta1.Row.Builder, + com.google.cloud.automl.v1beta1.RowOrBuilder> + getRowFieldBuilder() { + if (rowBuilder_ == null) { + if (!(payloadCase_ == 3)) { + payload_ = com.google.cloud.automl.v1beta1.Row.getDefaultInstance(); + } + rowBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.Row, + com.google.cloud.automl.v1beta1.Row.Builder, + com.google.cloud.automl.v1beta1.RowOrBuilder>( + (com.google.cloud.automl.v1beta1.Row) payload_, getParentForChildren(), isClean()); + payload_ = null; + } + payloadCase_ = 3; + onChanged(); + ; + return rowBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayloadOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayloadOrBuilder.java index 6c026c99ba58..708edeb317cf 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayloadOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExamplePayloadOrBuilder.java @@ -12,7 +12,7 @@ public interface ExamplePayloadOrBuilder * * *
-   * An example image.
+   * Example image.
    * 
* * .google.cloud.automl.v1beta1.Image image = 1; @@ -22,7 +22,7 @@ public interface ExamplePayloadOrBuilder * * *
-   * An example image.
+   * Example image.
    * 
* * .google.cloud.automl.v1beta1.Image image = 1; @@ -32,7 +32,7 @@ public interface ExamplePayloadOrBuilder * * *
-   * An example image.
+   * Example image.
    * 
* * .google.cloud.automl.v1beta1.Image image = 1; @@ -70,5 +70,67 @@ public interface ExamplePayloadOrBuilder */ com.google.cloud.automl.v1beta1.TextSnippetOrBuilder getTextSnippetOrBuilder(); + /** + * + * + *
+   * Example document.
+   * 
+ * + * .google.cloud.automl.v1beta1.Document document = 4; + */ + boolean hasDocument(); + /** + * + * + *
+   * Example document.
+   * 
+ * + * .google.cloud.automl.v1beta1.Document document = 4; + */ + com.google.cloud.automl.v1beta1.Document getDocument(); + /** + * + * + *
+   * Example document.
+   * 
+ * + * .google.cloud.automl.v1beta1.Document document = 4; + */ + com.google.cloud.automl.v1beta1.DocumentOrBuilder getDocumentOrBuilder(); + + /** + * + * + *
+   * Example relational table row.
+   * 
+ * + * .google.cloud.automl.v1beta1.Row row = 3; + */ + boolean hasRow(); + /** + * + * + *
+   * Example relational table row.
+   * 
+ * + * .google.cloud.automl.v1beta1.Row row = 3; + */ + com.google.cloud.automl.v1beta1.Row getRow(); + /** + * + * + *
+   * Example relational table row.
+   * 
+ * + * .google.cloud.automl.v1beta1.Row row = 3; + */ + com.google.cloud.automl.v1beta1.RowOrBuilder getRowOrBuilder(); + public com.google.cloud.automl.v1beta1.ExamplePayload.PayloadCase getPayloadCase(); } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadata.java new file mode 100644 index 000000000000..8839cb990a1b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadata.java @@ -0,0 +1,1744 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/operations.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Details of ExportData operation.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ExportDataOperationMetadata} + */ +public final class ExportDataOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ExportDataOperationMetadata) + ExportDataOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportDataOperationMetadata.newBuilder() to construct. + private ExportDataOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportDataOperationMetadata() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExportDataOperationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + .Builder + subBuilder = null; + if (outputInfo_ != null) { + subBuilder = outputInfo_.toBuilder(); + } + outputInfo_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata + .ExportDataOutputInfo.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputInfo_); + outputInfo_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportDataOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportDataOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.class, + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.Builder.class); + } + + public interface ExportDataOutputInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The full path of the Google Cloud Storage directory created, into which
+     * the exported data is written.
+     * 
+ * + * string gcs_output_directory = 1; + */ + java.lang.String getGcsOutputDirectory(); + /** + * + * + *
+     * The full path of the Google Cloud Storage directory created, into which
+     * the exported data is written.
+     * 
+ * + * string gcs_output_directory = 1; + */ + com.google.protobuf.ByteString getGcsOutputDirectoryBytes(); + + /** + * + * + *
+     * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+     * format, into which the exported data is written.
+     * 
+ * + * string bigquery_output_dataset = 2; + */ + java.lang.String getBigqueryOutputDataset(); + /** + * + * + *
+     * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+     * format, into which the exported data is written.
+     * 
+ * + * string bigquery_output_dataset = 2; + */ + com.google.protobuf.ByteString getBigqueryOutputDatasetBytes(); + + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + .OutputLocationCase + getOutputLocationCase(); + } + /** + * + * + *
+   * Further describes this export data's output.
+   * Supplements
+   * [OutputConfig][google.cloud.automl.v1beta1.OutputConfig].
+   * 
+ * + * Protobuf type {@code + * google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo} + */ + public static final class ExportDataOutputInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo) + ExportDataOutputInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportDataOutputInfo.newBuilder() to construct. + private ExportDataOutputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportDataOutputInfo() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExportDataOutputInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + outputLocationCase_ = 1; + outputLocation_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + outputLocationCase_ = 2; + outputLocation_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportDataOperationMetadata_ExportDataOutputInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportDataOperationMetadata_ExportDataOutputInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + .class, + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + .Builder.class); + } + + private int outputLocationCase_ = 0; + private java.lang.Object outputLocation_; + + public enum OutputLocationCase implements com.google.protobuf.Internal.EnumLite { + GCS_OUTPUT_DIRECTORY(1), + BIGQUERY_OUTPUT_DATASET(2), + OUTPUTLOCATION_NOT_SET(0); + private final int value; + + private OutputLocationCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static OutputLocationCase valueOf(int value) { + return forNumber(value); + } + + public static OutputLocationCase forNumber(int value) { + switch (value) { + case 1: + return GCS_OUTPUT_DIRECTORY; + case 2: + return BIGQUERY_OUTPUT_DATASET; + case 0: + return OUTPUTLOCATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OutputLocationCase getOutputLocationCase() { + return OutputLocationCase.forNumber(outputLocationCase_); + } + + public static final int GCS_OUTPUT_DIRECTORY_FIELD_NUMBER = 1; + /** + * + * + *
+     * The full path of the Google Cloud Storage directory created, into which
+     * the exported data is written.
+     * 
+ * + * string gcs_output_directory = 1; + */ + public java.lang.String getGcsOutputDirectory() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 1) { + ref = outputLocation_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputLocationCase_ == 1) { + outputLocation_ = s; + } + return s; + } + } + /** + * + * + *
+     * The full path of the Google Cloud Storage directory created, into which
+     * the exported data is written.
+     * 
+ * + * string gcs_output_directory = 1; + */ + public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 1) { + ref = outputLocation_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (outputLocationCase_ == 1) { + outputLocation_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BIGQUERY_OUTPUT_DATASET_FIELD_NUMBER = 2; + /** + * + * + *
+     * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+     * format, into which the exported data is written.
+     * 
+ * + * string bigquery_output_dataset = 2; + */ + public java.lang.String getBigqueryOutputDataset() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 2) { + ref = outputLocation_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputLocationCase_ == 2) { + outputLocation_ = s; + } + return s; + } + } + /** + * + * + *
+     * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+     * format, into which the exported data is written.
+     * 
+ * + * string bigquery_output_dataset = 2; + */ + public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 2) { + ref = outputLocation_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (outputLocationCase_ == 2) { + outputLocation_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (outputLocationCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputLocation_); + } + if (outputLocationCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, outputLocation_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputLocationCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputLocation_); + } + if (outputLocationCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, outputLocation_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo other = + (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo) obj; + + if (!getOutputLocationCase().equals(other.getOutputLocationCase())) return false; + switch (outputLocationCase_) { + case 1: + if (!getGcsOutputDirectory().equals(other.getGcsOutputDirectory())) return false; + break; + case 2: + if (!getBigqueryOutputDataset().equals(other.getBigqueryOutputDataset())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (outputLocationCase_) { + case 1: + hash = (37 * hash) + GCS_OUTPUT_DIRECTORY_FIELD_NUMBER; + hash = (53 * hash) + getGcsOutputDirectory().hashCode(); + break; + case 2: + hash = (37 * hash) + BIGQUERY_OUTPUT_DATASET_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryOutputDataset().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Further describes this export data's output.
+     * Supplements
+     * [OutputConfig][google.cloud.automl.v1beta1.OutputConfig].
+     * 
+ * + * Protobuf type {@code + * google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo) + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportDataOperationMetadata_ExportDataOutputInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportDataOperationMetadata_ExportDataOutputInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + .class, + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + .Builder.class); + } + + // Construct using + // com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + outputLocationCase_ = 0; + outputLocation_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportDataOperationMetadata_ExportDataOutputInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + build() { + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + buildPartial() { + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo result = + new com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo( + this); + if (outputLocationCase_ == 1) { + result.outputLocation_ = outputLocation_; + } + if (outputLocationCase_ == 2) { + result.outputLocation_ = outputLocation_; + } + result.outputLocationCase_ = outputLocationCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo) { + return mergeFrom( + (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo other) { + if (other + == com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + .getDefaultInstance()) return this; + switch (other.getOutputLocationCase()) { + case GCS_OUTPUT_DIRECTORY: + { + outputLocationCase_ = 1; + outputLocation_ = other.outputLocation_; + onChanged(); + break; + } + case BIGQUERY_OUTPUT_DATASET: + { + outputLocationCase_ = 2; + outputLocation_ = other.outputLocation_; + onChanged(); + break; + } + case OUTPUTLOCATION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int outputLocationCase_ = 0; + private java.lang.Object outputLocation_; + + public OutputLocationCase getOutputLocationCase() { + return OutputLocationCase.forNumber(outputLocationCase_); + } + + public Builder clearOutputLocation() { + outputLocationCase_ = 0; + outputLocation_ = null; + onChanged(); + return this; + } + + /** + * + * + *
+       * The full path of the Google Cloud Storage directory created, into which
+       * the exported data is written.
+       * 
+ * + * string gcs_output_directory = 1; + */ + public java.lang.String getGcsOutputDirectory() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 1) { + ref = outputLocation_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputLocationCase_ == 1) { + outputLocation_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The full path of the Google Cloud Storage directory created, into which
+       * the exported data is written.
+       * 
+ * + * string gcs_output_directory = 1; + */ + public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 1) { + ref = outputLocation_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (outputLocationCase_ == 1) { + outputLocation_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The full path of the Google Cloud Storage directory created, into which
+       * the exported data is written.
+       * 
+ * + * string gcs_output_directory = 1; + */ + public Builder setGcsOutputDirectory(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputLocationCase_ = 1; + outputLocation_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The full path of the Google Cloud Storage directory created, into which
+       * the exported data is written.
+       * 
+ * + * string gcs_output_directory = 1; + */ + public Builder clearGcsOutputDirectory() { + if (outputLocationCase_ == 1) { + outputLocationCase_ = 0; + outputLocation_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The full path of the Google Cloud Storage directory created, into which
+       * the exported data is written.
+       * 
+ * + * string gcs_output_directory = 1; + */ + public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputLocationCase_ = 1; + outputLocation_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+       * format, into which the exported data is written.
+       * 
+ * + * string bigquery_output_dataset = 2; + */ + public java.lang.String getBigqueryOutputDataset() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 2) { + ref = outputLocation_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputLocationCase_ == 2) { + outputLocation_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+       * format, into which the exported data is written.
+       * 
+ * + * string bigquery_output_dataset = 2; + */ + public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { + java.lang.Object ref = ""; + if (outputLocationCase_ == 2) { + ref = outputLocation_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (outputLocationCase_ == 2) { + outputLocation_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+       * format, into which the exported data is written.
+       * 
+ * + * string bigquery_output_dataset = 2; + */ + public Builder setBigqueryOutputDataset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputLocationCase_ = 2; + outputLocation_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+       * format, into which the exported data is written.
+       * 
+ * + * string bigquery_output_dataset = 2; + */ + public Builder clearBigqueryOutputDataset() { + if (outputLocationCase_ == 2) { + outputLocationCase_ = 0; + outputLocation_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+       * format, into which the exported data is written.
+       * 
+ * + * string bigquery_output_dataset = 2; + */ + public Builder setBigqueryOutputDatasetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputLocationCase_ = 2; + outputLocation_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo) + private static final com.google.cloud.automl.v1beta1.ExportDataOperationMetadata + .ExportDataOutputInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo(); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportDataOutputInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportDataOutputInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int OUTPUT_INFO_FIELD_NUMBER = 1; + private com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + outputInfo_; + /** + * + * + *
+   * Output only. Information further describing this export data's output.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + */ + public boolean hasOutputInfo() { + return outputInfo_ != null; + } + /** + * + * + *
+   * Output only. Information further describing this export data's output.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + */ + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + getOutputInfo() { + return outputInfo_ == null + ? com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + .getDefaultInstance() + : outputInfo_; + } + /** + * + * + *
+   * Output only. Information further describing this export data's output.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + */ + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder + getOutputInfoOrBuilder() { + return getOutputInfo(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (outputInfo_ != null) { + output.writeMessage(1, getOutputInfo()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOutputInfo()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.ExportDataOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata other = + (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) obj; + + if (hasOutputInfo() != other.hasOutputInfo()) return false; + if (hasOutputInfo()) { + if (!getOutputInfo().equals(other.getOutputInfo())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOutputInfo()) { + hash = (37 * hash) + OUTPUT_INFO_FIELD_NUMBER; + hash = (53 * hash) + getOutputInfo().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details of ExportData operation.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ExportDataOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ExportDataOperationMetadata) + com.google.cloud.automl.v1beta1.ExportDataOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportDataOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportDataOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.class, + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (outputInfoBuilder_ == null) { + outputInfo_ = null; + } else { + outputInfo_ = null; + outputInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportDataOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata build() { + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata buildPartial() { + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata result = + new com.google.cloud.automl.v1beta1.ExportDataOperationMetadata(this); + if (outputInfoBuilder_ == null) { + result.outputInfo_ = outputInfo_; + } else { + result.outputInfo_ = outputInfoBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) { + return mergeFrom((com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.ExportDataOperationMetadata other) { + if (other == com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.getDefaultInstance()) + return this; + if (other.hasOutputInfo()) { + mergeOutputInfo(other.getOutputInfo()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + outputInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo, + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + .Builder, + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata + .ExportDataOutputInfoOrBuilder> + outputInfoBuilder_; + /** + * + * + *
+     * Output only. Information further describing this export data's output.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + */ + public boolean hasOutputInfo() { + return outputInfoBuilder_ != null || outputInfo_ != null; + } + /** + * + * + *
+     * Output only. Information further describing this export data's output.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + */ + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + getOutputInfo() { + if (outputInfoBuilder_ == null) { + return outputInfo_ == null + ? com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + .getDefaultInstance() + : outputInfo_; + } else { + return outputInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Information further describing this export data's output.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + */ + public Builder setOutputInfo( + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo value) { + if (outputInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputInfo_ = value; + onChanged(); + } else { + outputInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Information further describing this export data's output.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + */ + public Builder setOutputInfo( + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder + builderForValue) { + if (outputInfoBuilder_ == null) { + outputInfo_ = builderForValue.build(); + onChanged(); + } else { + outputInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Information further describing this export data's output.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + */ + public Builder mergeOutputInfo( + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo value) { + if (outputInfoBuilder_ == null) { + if (outputInfo_ != null) { + outputInfo_ = + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + .newBuilder(outputInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + outputInfo_ = value; + } + onChanged(); + } else { + outputInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Information further describing this export data's output.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + */ + public Builder clearOutputInfo() { + if (outputInfoBuilder_ == null) { + outputInfo_ = null; + onChanged(); + } else { + outputInfo_ = null; + outputInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Information further describing this export data's output.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + */ + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo.Builder + getOutputInfoBuilder() { + + onChanged(); + return getOutputInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Information further describing this export data's output.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + */ + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder + getOutputInfoOrBuilder() { + if (outputInfoBuilder_ != null) { + return outputInfoBuilder_.getMessageOrBuilder(); + } else { + return outputInfo_ == null + ? com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + .getDefaultInstance() + : outputInfo_; + } + } + /** + * + * + *
+     * Output only. Information further describing this export data's output.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo, + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + .Builder, + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata + .ExportDataOutputInfoOrBuilder> + getOutputInfoFieldBuilder() { + if (outputInfoBuilder_ == null) { + outputInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo, + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo + .Builder, + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata + .ExportDataOutputInfoOrBuilder>( + getOutputInfo(), getParentForChildren(), isClean()); + outputInfo_ = null; + } + return outputInfoBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ExportDataOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ExportDataOperationMetadata) + private static final com.google.cloud.automl.v1beta1.ExportDataOperationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ExportDataOperationMetadata(); + } + + public static com.google.cloud.automl.v1beta1.ExportDataOperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportDataOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportDataOperationMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..837b6462097b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataOperationMetadataOrBuilder.java @@ -0,0 +1,48 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/operations.proto + +package com.google.cloud.automl.v1beta1; + +public interface ExportDataOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ExportDataOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Information further describing this export data's output.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + */ + boolean hasOutputInfo(); + /** + * + * + *
+   * Output only. Information further describing this export data's output.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + */ + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo getOutputInfo(); + /** + * + * + *
+   * Output only. Information further describing this export data's output.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfo output_info = 1; + * + */ + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.ExportDataOutputInfoOrBuilder + getOutputInfoOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequest.java index de4f16751684..f247a4ba5ce8 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportDataRequest.java @@ -7,8 +7,7 @@ * * *
- * Request message for
- * [AutoMl.ExportData][google.cloud.automl.v1beta1.AutoMl.ExportData].
+ * Request message for [AutoMl.ExportData][google.cloud.automl.v1beta1.AutoMl.ExportData].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ExportDataRequest} @@ -369,8 +368,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for
-   * [AutoMl.ExportData][google.cloud.automl.v1beta1.AutoMl.ExportData].
+   * Request message for [AutoMl.ExportData][google.cloud.automl.v1beta1.AutoMl.ExportData].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ExportDataRequest} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadata.java new file mode 100644 index 000000000000..1d1d6f28663a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadata.java @@ -0,0 +1,1507 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/operations.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Details of EvaluatedExamples operation.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata} + */ +public final class ExportEvaluatedExamplesOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) + ExportEvaluatedExamplesOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportEvaluatedExamplesOperationMetadata.newBuilder() to construct. + private ExportEvaluatedExamplesOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportEvaluatedExamplesOperationMetadata() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExportEvaluatedExamplesOperationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo.Builder + subBuilder = null; + if (outputInfo_ != null) { + subBuilder = outputInfo_.toBuilder(); + } + outputInfo_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputInfo_); + outputInfo_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.class, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder.class); + } + + public interface ExportEvaluatedExamplesOutputInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+     * format, into which the output of export evaluated examples is written.
+     * 
+ * + * string bigquery_output_dataset = 2; + */ + java.lang.String getBigqueryOutputDataset(); + /** + * + * + *
+     * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+     * format, into which the output of export evaluated examples is written.
+     * 
+ * + * string bigquery_output_dataset = 2; + */ + com.google.protobuf.ByteString getBigqueryOutputDatasetBytes(); + } + /** + * + * + *
+   * Further describes the output of the evaluated examples export.
+   * Supplements
+   * [ExportEvaluatedExamplesOutputConfig][google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig].
+   * 
+ * + * Protobuf type {@code + * google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo} + */ + public static final class ExportEvaluatedExamplesOutputInfo + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo) + ExportEvaluatedExamplesOutputInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportEvaluatedExamplesOutputInfo.newBuilder() to construct. + private ExportEvaluatedExamplesOutputInfo( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportEvaluatedExamplesOutputInfo() { + bigqueryOutputDataset_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExportEvaluatedExamplesOutputInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + bigqueryOutputDataset_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOperationMetadata_ExportEvaluatedExamplesOutputInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOperationMetadata_ExportEvaluatedExamplesOutputInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo.class, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo.Builder.class); + } + + public static final int BIGQUERY_OUTPUT_DATASET_FIELD_NUMBER = 2; + private volatile java.lang.Object bigqueryOutputDataset_; + /** + * + * + *
+     * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+     * format, into which the output of export evaluated examples is written.
+     * 
+ * + * string bigquery_output_dataset = 2; + */ + public java.lang.String getBigqueryOutputDataset() { + java.lang.Object ref = bigqueryOutputDataset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bigqueryOutputDataset_ = s; + return s; + } + } + /** + * + * + *
+     * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+     * format, into which the output of export evaluated examples is written.
+     * 
+ * + * string bigquery_output_dataset = 2; + */ + public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { + java.lang.Object ref = bigqueryOutputDataset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bigqueryOutputDataset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getBigqueryOutputDatasetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bigqueryOutputDataset_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getBigqueryOutputDatasetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bigqueryOutputDataset_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + other = + (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo) + obj; + + if (!getBigqueryOutputDataset().equals(other.getBigqueryOutputDataset())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BIGQUERY_OUTPUT_DATASET_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryOutputDataset().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Further describes the output of the evaluated examples export.
+     * Supplements
+     * [ExportEvaluatedExamplesOutputConfig][google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig].
+     * 
+ * + * Protobuf type {@code + * google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo) + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOperationMetadata_ExportEvaluatedExamplesOutputInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOperationMetadata_ExportEvaluatedExamplesOutputInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo.class, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo.Builder.class); + } + + // Construct using + // com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bigqueryOutputDataset_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOperationMetadata_ExportEvaluatedExamplesOutputInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + build() { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + buildPartial() { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + result = + new com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo(this); + result.bigqueryOutputDataset_ = bigqueryOutputDataset_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo) { + return mergeFrom( + (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + other) { + if (other + == com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo.getDefaultInstance()) return this; + if (!other.getBigqueryOutputDataset().isEmpty()) { + bigqueryOutputDataset_ = other.bigqueryOutputDataset_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object bigqueryOutputDataset_ = ""; + /** + * + * + *
+       * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+       * format, into which the output of export evaluated examples is written.
+       * 
+ * + * string bigquery_output_dataset = 2; + */ + public java.lang.String getBigqueryOutputDataset() { + java.lang.Object ref = bigqueryOutputDataset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bigqueryOutputDataset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+       * format, into which the output of export evaluated examples is written.
+       * 
+ * + * string bigquery_output_dataset = 2; + */ + public com.google.protobuf.ByteString getBigqueryOutputDatasetBytes() { + java.lang.Object ref = bigqueryOutputDataset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bigqueryOutputDataset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+       * format, into which the output of export evaluated examples is written.
+       * 
+ * + * string bigquery_output_dataset = 2; + */ + public Builder setBigqueryOutputDataset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bigqueryOutputDataset_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+       * format, into which the output of export evaluated examples is written.
+       * 
+ * + * string bigquery_output_dataset = 2; + */ + public Builder clearBigqueryOutputDataset() { + + bigqueryOutputDataset_ = getDefaultInstance().getBigqueryOutputDataset(); + onChanged(); + return this; + } + /** + * + * + *
+       * The path of the BigQuery dataset created, in bq://projectId.bqDatasetId
+       * format, into which the output of export evaluated examples is written.
+       * 
+ * + * string bigquery_output_dataset = 2; + */ + public Builder setBigqueryOutputDatasetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bigqueryOutputDataset_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo) + private static final com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo(); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportEvaluatedExamplesOutputInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportEvaluatedExamplesOutputInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int OUTPUT_INFO_FIELD_NUMBER = 2; + private com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + outputInfo_; + /** + * + * + *
+   * Output only. Information further describing the output of this evaluated
+   * examples export.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + */ + public boolean hasOutputInfo() { + return outputInfo_ != null; + } + /** + * + * + *
+   * Output only. Information further describing the output of this evaluated
+   * examples export.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + */ + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + getOutputInfo() { + return outputInfo_ == null + ? com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo.getDefaultInstance() + : outputInfo_; + } + /** + * + * + *
+   * Output only. Information further describing the output of this evaluated
+   * examples export.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + */ + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfoOrBuilder + getOutputInfoOrBuilder() { + return getOutputInfo(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (outputInfo_ != null) { + output.writeMessage(2, getOutputInfo()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputInfo()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata other = + (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) obj; + + if (hasOutputInfo() != other.hasOutputInfo()) return false; + if (hasOutputInfo()) { + if (!getOutputInfo().equals(other.getOutputInfo())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOutputInfo()) { + hash = (37 * hash) + OUTPUT_INFO_FIELD_NUMBER; + hash = (53 * hash) + getOutputInfo().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details of EvaluatedExamples operation.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.class, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (outputInfoBuilder_ == null) { + outputInfo_ = null; + } else { + outputInfo_ = null; + outputInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata build() { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata buildPartial() { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata result = + new com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata(this); + if (outputInfoBuilder_ == null) { + result.outputInfo_ = outputInfo_; + } else { + result.outputInfo_ = outputInfoBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) { + return mergeFrom( + (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata other) { + if (other + == com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .getDefaultInstance()) return this; + if (other.hasOutputInfo()) { + mergeOutputInfo(other.getOutputInfo()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + outputInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo.Builder, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfoOrBuilder> + outputInfoBuilder_; + /** + * + * + *
+     * Output only. Information further describing the output of this evaluated
+     * examples export.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + */ + public boolean hasOutputInfo() { + return outputInfoBuilder_ != null || outputInfo_ != null; + } + /** + * + * + *
+     * Output only. Information further describing the output of this evaluated
+     * examples export.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + */ + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + getOutputInfo() { + if (outputInfoBuilder_ == null) { + return outputInfo_ == null + ? com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo.getDefaultInstance() + : outputInfo_; + } else { + return outputInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Information further describing the output of this evaluated
+     * examples export.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + */ + public Builder setOutputInfo( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + value) { + if (outputInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputInfo_ = value; + onChanged(); + } else { + outputInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Information further describing the output of this evaluated
+     * examples export.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + */ + public Builder setOutputInfo( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo.Builder + builderForValue) { + if (outputInfoBuilder_ == null) { + outputInfo_ = builderForValue.build(); + onChanged(); + } else { + outputInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Information further describing the output of this evaluated
+     * examples export.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + */ + public Builder mergeOutputInfo( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + value) { + if (outputInfoBuilder_ == null) { + if (outputInfo_ != null) { + outputInfo_ = + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo.newBuilder(outputInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + outputInfo_ = value; + } + onChanged(); + } else { + outputInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Information further describing the output of this evaluated
+     * examples export.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + */ + public Builder clearOutputInfo() { + if (outputInfoBuilder_ == null) { + outputInfo_ = null; + onChanged(); + } else { + outputInfo_ = null; + outputInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Information further describing the output of this evaluated
+     * examples export.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + */ + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo.Builder + getOutputInfoBuilder() { + + onChanged(); + return getOutputInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Information further describing the output of this evaluated
+     * examples export.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + */ + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfoOrBuilder + getOutputInfoOrBuilder() { + if (outputInfoBuilder_ != null) { + return outputInfoBuilder_.getMessageOrBuilder(); + } else { + return outputInfo_ == null + ? com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo.getDefaultInstance() + : outputInfo_; + } + } + /** + * + * + *
+     * Output only. Information further describing the output of this evaluated
+     * examples export.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo.Builder, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfoOrBuilder> + getOutputInfoFieldBuilder() { + if (outputInfoBuilder_ == null) { + outputInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo.Builder, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfoOrBuilder>( + getOutputInfo(), getParentForChildren(), isClean()); + outputInfo_ = null; + } + return outputInfoBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) + private static final com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata(); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportEvaluatedExamplesOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportEvaluatedExamplesOperationMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..f243496c8521 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOperationMetadataOrBuilder.java @@ -0,0 +1,54 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/operations.proto + +package com.google.cloud.automl.v1beta1; + +public interface ExportEvaluatedExamplesOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Information further describing the output of this evaluated
+   * examples export.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + */ + boolean hasOutputInfo(); + /** + * + * + *
+   * Output only. Information further describing the output of this evaluated
+   * examples export.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + */ + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfo + getOutputInfo(); + /** + * + * + *
+   * Output only. Information further describing the output of this evaluated
+   * examples export.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.ExportEvaluatedExamplesOutputInfo output_info = 2; + * + */ + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .ExportEvaluatedExamplesOutputInfoOrBuilder + getOutputInfoOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfig.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfig.java new file mode 100644 index 000000000000..578f6f5b2158 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfig.java @@ -0,0 +1,868 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/io.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Output configuration for ExportEvaluatedExamples Action. Note that this call
+ * is available only for 30 days since the moment the model was evaluated.
+ * The output depends on the domain, as follows (note that only examples from
+ * the TEST set are exported):
+ *  *  For Tables:
+ * [bigquery_destination][google.cloud.automl.v1beta1.OutputConfig.bigquery_destination]
+ *       pointing to a BigQuery project must be set. In the given project a
+ *       new dataset will be created with name
+ * `export_evaluated_examples_<model-display-name>_<timestamp-of-export-call>`
+ *       where <model-display-name> will be made BigQuery-dataset-name
+ *       compatible (e.g. most special characters will become underscores),
+ *       and timestamp will be in YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601"
+ *       format. In the dataset an `evaluated_examples` table will be
+ *       created. It will have all the same columns as the
+ *       [primary
+ * table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id]
+ *       of the
+ *       [dataset][google.cloud.automl.v1beta1.Model.dataset_id] from which
+ *       the model was created, as they were at the moment of model's
+ *       evaluation (this includes the target column with its ground
+ *       truth), followed by a column called "predicted_<target_column>". That
+ *       last column will contain the model's prediction result for each
+ *       respective row, given as ARRAY of
+ *       [AnnotationPayloads][google.cloud.automl.v1beta1.AnnotationPayload],
+ *       represented as STRUCT-s, containing
+ *       [TablesAnnotation][google.cloud.automl.v1beta1.TablesAnnotation].
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig} + */ +public final class ExportEvaluatedExamplesOutputConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig) + ExportEvaluatedExamplesOutputConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportEvaluatedExamplesOutputConfig.newBuilder() to construct. + private ExportEvaluatedExamplesOutputConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportEvaluatedExamplesOutputConfig() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExportEvaluatedExamplesOutputConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + com.google.cloud.automl.v1beta1.BigQueryDestination.Builder subBuilder = null; + if (destinationCase_ == 2) { + subBuilder = + ((com.google.cloud.automl.v1beta1.BigQueryDestination) destination_) + .toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.automl.v1beta1.BigQueryDestination.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 2; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOutputConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOutputConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.class, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.Builder.class); + } + + private int destinationCase_ = 0; + private java.lang.Object destination_; + + public enum DestinationCase implements com.google.protobuf.Internal.EnumLite { + BIGQUERY_DESTINATION(2), + DESTINATION_NOT_SET(0); + private final int value; + + private DestinationCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static DestinationCase valueOf(int value) { + return forNumber(value); + } + + public static DestinationCase forNumber(int value) { + switch (value) { + case 2: + return BIGQUERY_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 2; + /** + * + * + *
+   * The BigQuery location where the output is to be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public boolean hasBigqueryDestination() { + return destinationCase_ == 2; + } + /** + * + * + *
+   * The BigQuery location where the output is to be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestination() { + if (destinationCase_ == 2) { + return (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_; + } + return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); + } + /** + * + * + *
+   * The BigQuery location where the output is to be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { + if (destinationCase_ == 2) { + return (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_; + } + return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (destinationCase_ == 2) { + output.writeMessage(2, (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (destinationCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig other = + (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig) obj; + + if (!getDestinationCase().equals(other.getDestinationCase())) return false; + switch (destinationCase_) { + case 2: + if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (destinationCase_) { + case 2: + hash = (37 * hash) + BIGQUERY_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryDestination().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output configuration for ExportEvaluatedExamples Action. Note that this call
+   * is available only for 30 days since the moment the model was evaluated.
+   * The output depends on the domain, as follows (note that only examples from
+   * the TEST set are exported):
+   *  *  For Tables:
+   * [bigquery_destination][google.cloud.automl.v1beta1.OutputConfig.bigquery_destination]
+   *       pointing to a BigQuery project must be set. In the given project a
+   *       new dataset will be created with name
+   * `export_evaluated_examples_<model-display-name>_<timestamp-of-export-call>`
+   *       where <model-display-name> will be made BigQuery-dataset-name
+   *       compatible (e.g. most special characters will become underscores),
+   *       and timestamp will be in YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601"
+   *       format. In the dataset an `evaluated_examples` table will be
+   *       created. It will have all the same columns as the
+   *       [primary
+   * table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id]
+   *       of the
+   *       [dataset][google.cloud.automl.v1beta1.Model.dataset_id] from which
+   *       the model was created, as they were at the moment of model's
+   *       evaluation (this includes the target column with its ground
+   *       truth), followed by a column called "predicted_<target_column>". That
+   *       last column will contain the model's prediction result for each
+   *       respective row, given as ARRAY of
+   *       [AnnotationPayloads][google.cloud.automl.v1beta1.AnnotationPayload],
+   *       represented as STRUCT-s, containing
+   *       [TablesAnnotation][google.cloud.automl.v1beta1.TablesAnnotation].
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig) + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOutputConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOutputConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.class, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.Builder.class); + } + + // Construct using + // com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + destinationCase_ = 0; + destination_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOutputConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig build() { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig buildPartial() { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig result = + new com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig(this); + if (destinationCase_ == 2) { + if (bigqueryDestinationBuilder_ == null) { + result.destination_ = destination_; + } else { + result.destination_ = bigqueryDestinationBuilder_.build(); + } + } + result.destinationCase_ = destinationCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig) { + return mergeFrom( + (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig other) { + if (other + == com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig + .getDefaultInstance()) return this; + switch (other.getDestinationCase()) { + case BIGQUERY_DESTINATION: + { + mergeBigqueryDestination(other.getBigqueryDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int destinationCase_ = 0; + private java.lang.Object destination_; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public Builder clearDestination() { + destinationCase_ = 0; + destination_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BigQueryDestination, + com.google.cloud.automl.v1beta1.BigQueryDestination.Builder, + com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder> + bigqueryDestinationBuilder_; + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public boolean hasBigqueryDestination() { + return destinationCase_ == 2; + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestination() { + if (bigqueryDestinationBuilder_ == null) { + if (destinationCase_ == 2) { + return (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_; + } + return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); + } else { + if (destinationCase_ == 2) { + return bigqueryDestinationBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public Builder setBigqueryDestination( + com.google.cloud.automl.v1beta1.BigQueryDestination value) { + if (bigqueryDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + bigqueryDestinationBuilder_.setMessage(value); + } + destinationCase_ = 2; + return this; + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public Builder setBigqueryDestination( + com.google.cloud.automl.v1beta1.BigQueryDestination.Builder builderForValue) { + if (bigqueryDestinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + bigqueryDestinationBuilder_.setMessage(builderForValue.build()); + } + destinationCase_ = 2; + return this; + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public Builder mergeBigqueryDestination( + com.google.cloud.automl.v1beta1.BigQueryDestination value) { + if (bigqueryDestinationBuilder_ == null) { + if (destinationCase_ == 2 + && destination_ + != com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.automl.v1beta1.BigQueryDestination.newBuilder( + (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_) + .mergeFrom(value) + .buildPartial(); + } else { + destination_ = value; + } + onChanged(); + } else { + if (destinationCase_ == 2) { + bigqueryDestinationBuilder_.mergeFrom(value); + } + bigqueryDestinationBuilder_.setMessage(value); + } + destinationCase_ = 2; + return this; + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public Builder clearBigqueryDestination() { + if (bigqueryDestinationBuilder_ == null) { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + } else { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + } + bigqueryDestinationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public com.google.cloud.automl.v1beta1.BigQueryDestination.Builder + getBigqueryDestinationBuilder() { + return getBigqueryDestinationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { + if ((destinationCase_ == 2) && (bigqueryDestinationBuilder_ != null)) { + return bigqueryDestinationBuilder_.getMessageOrBuilder(); + } else { + if (destinationCase_ == 2) { + return (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_; + } + return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BigQueryDestination, + com.google.cloud.automl.v1beta1.BigQueryDestination.Builder, + com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder> + getBigqueryDestinationFieldBuilder() { + if (bigqueryDestinationBuilder_ == null) { + if (!(destinationCase_ == 2)) { + destination_ = com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); + } + bigqueryDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BigQueryDestination, + com.google.cloud.automl.v1beta1.BigQueryDestination.Builder, + com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder>( + (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_, + getParentForChildren(), + isClean()); + destination_ = null; + } + destinationCase_ = 2; + onChanged(); + ; + return bigqueryDestinationBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig) + private static final com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig(); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportEvaluatedExamplesOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportEvaluatedExamplesOutputConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfigOrBuilder.java new file mode 100644 index 000000000000..eb1fbe5f9fa2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesOutputConfigOrBuilder.java @@ -0,0 +1,44 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/io.proto + +package com.google.cloud.automl.v1beta1; + +public interface ExportEvaluatedExamplesOutputConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The BigQuery location where the output is to be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + boolean hasBigqueryDestination(); + /** + * + * + *
+   * The BigQuery location where the output is to be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestination(); + /** + * + * + *
+   * The BigQuery location where the output is to be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder(); + + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.DestinationCase + getDestinationCase(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequest.java new file mode 100644 index 000000000000..8326c44a30fe --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequest.java @@ -0,0 +1,903 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Request message for [AutoMl.ExportEvaluatedExamples][google.cloud.automl.v1beta1.AutoMl.ExportEvaluatedExamples].
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest} + */ +public final class ExportEvaluatedExamplesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest) + ExportEvaluatedExamplesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportEvaluatedExamplesRequest.newBuilder() to construct. + private ExportEvaluatedExamplesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportEvaluatedExamplesRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExportEvaluatedExamplesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: + { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.Builder + subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.class, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the model whose evaluated examples are to
+   * be exported.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the model whose evaluated examples are to
+   * be exported.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig outputConfig_; + /** + * + * + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3; + * + */ + public boolean hasOutputConfig() { + return outputConfig_ != null; + } + /** + * + * + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3; + * + */ + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig getOutputConfig() { + return outputConfig_ == null + ? com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.getDefaultInstance() + : outputConfig_; + } + /** + * + * + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3; + * + */ + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfigOrBuilder + getOutputConfigOrBuilder() { + return getOutputConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (outputConfig_ != null) { + output.writeMessage(3, getOutputConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (outputConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest other = + (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasOutputConfig() != other.hasOutputConfig()) return false; + if (hasOutputConfig()) { + if (!getOutputConfig().equals(other.getOutputConfig())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasOutputConfig()) { + hash = (37 * hash) + OUTPUT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOutputConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [AutoMl.ExportEvaluatedExamples][google.cloud.automl.v1beta1.AutoMl.ExportEvaluatedExamples].
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest) + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.class, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (outputConfigBuilder_ == null) { + outputConfig_ = null; + } else { + outputConfig_ = null; + outputConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest build() { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest buildPartial() { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest result = + new com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest(this); + result.name_ = name_; + if (outputConfigBuilder_ == null) { + result.outputConfig_ = outputConfig_; + } else { + result.outputConfig_ = outputConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest) { + return mergeFrom((com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest other) { + if (other + == com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasOutputConfig()) { + mergeOutputConfig(other.getOutputConfig()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the model whose evaluated examples are to
+     * be exported.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the model whose evaluated examples are to
+     * be exported.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the model whose evaluated examples are to
+     * be exported.
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the model whose evaluated examples are to
+     * be exported.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the model whose evaluated examples are to
+     * be exported.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig outputConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.Builder, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfigOrBuilder> + outputConfigBuilder_; + /** + * + * + *
+     * Required. The desired output location and configuration.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3; + * + */ + public boolean hasOutputConfig() { + return outputConfigBuilder_ != null || outputConfig_ != null; + } + /** + * + * + *
+     * Required. The desired output location and configuration.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3; + * + */ + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig getOutputConfig() { + if (outputConfigBuilder_ == null) { + return outputConfig_ == null + ? com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig + .getDefaultInstance() + : outputConfig_; + } else { + return outputConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The desired output location and configuration.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3; + * + */ + public Builder setOutputConfig( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig value) { + if (outputConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputConfig_ = value; + onChanged(); + } else { + outputConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The desired output location and configuration.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3; + * + */ + public Builder setOutputConfig( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.Builder + builderForValue) { + if (outputConfigBuilder_ == null) { + outputConfig_ = builderForValue.build(); + onChanged(); + } else { + outputConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The desired output location and configuration.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3; + * + */ + public Builder mergeOutputConfig( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig value) { + if (outputConfigBuilder_ == null) { + if (outputConfig_ != null) { + outputConfig_ = + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.newBuilder( + outputConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + outputConfig_ = value; + } + onChanged(); + } else { + outputConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The desired output location and configuration.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3; + * + */ + public Builder clearOutputConfig() { + if (outputConfigBuilder_ == null) { + outputConfig_ = null; + onChanged(); + } else { + outputConfig_ = null; + outputConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The desired output location and configuration.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3; + * + */ + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.Builder + getOutputConfigBuilder() { + + onChanged(); + return getOutputConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The desired output location and configuration.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3; + * + */ + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfigOrBuilder + getOutputConfigOrBuilder() { + if (outputConfigBuilder_ != null) { + return outputConfigBuilder_.getMessageOrBuilder(); + } else { + return outputConfig_ == null + ? com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig + .getDefaultInstance() + : outputConfig_; + } + } + /** + * + * + *
+     * Required. The desired output location and configuration.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.Builder, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfigOrBuilder> + getOutputConfigFieldBuilder() { + if (outputConfigBuilder_ == null) { + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig.Builder, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); + outputConfig_ = null; + } + return outputConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest) + private static final com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest(); + } + + public static com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportEvaluatedExamplesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportEvaluatedExamplesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequestOrBuilder.java new file mode 100644 index 000000000000..4b37fb7a128d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportEvaluatedExamplesRequestOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface ExportEvaluatedExamplesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the model whose evaluated examples are to
+   * be exported.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the model whose evaluated examples are to
+   * be exported.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3; + * + */ + boolean hasOutputConfig(); + /** + * + * + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3; + * + */ + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig getOutputConfig(); + /** + * + * + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig output_config = 3; + * + */ + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfigOrBuilder + getOutputConfigOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadata.java new file mode 100644 index 000000000000..3b5cd4001665 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadata.java @@ -0,0 +1,1445 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/operations.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Details of ExportModel operation.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ExportModelOperationMetadata} + */ +public final class ExportModelOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ExportModelOperationMetadata) + ExportModelOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportModelOperationMetadata.newBuilder() to construct. + private ExportModelOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportModelOperationMetadata() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExportModelOperationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + .Builder + subBuilder = null; + if (outputInfo_ != null) { + subBuilder = outputInfo_.toBuilder(); + } + outputInfo_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata + .ExportModelOutputInfo.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputInfo_); + outputInfo_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportModelOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportModelOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.class, + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.Builder.class); + } + + public interface ExportModelOutputInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The full path of the Google Cloud Storage directory created, into which
+     * the model will be exported.
+     * 
+ * + * string gcs_output_directory = 1; + */ + java.lang.String getGcsOutputDirectory(); + /** + * + * + *
+     * The full path of the Google Cloud Storage directory created, into which
+     * the model will be exported.
+     * 
+ * + * string gcs_output_directory = 1; + */ + com.google.protobuf.ByteString getGcsOutputDirectoryBytes(); + } + /** + * + * + *
+   * Further describes the output of model export.
+   * Supplements
+   * [ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig].
+   * 
+ * + * Protobuf type {@code + * google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo} + */ + public static final class ExportModelOutputInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo) + ExportModelOutputInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportModelOutputInfo.newBuilder() to construct. + private ExportModelOutputInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportModelOutputInfo() { + gcsOutputDirectory_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExportModelOutputInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + gcsOutputDirectory_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportModelOperationMetadata_ExportModelOutputInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportModelOperationMetadata_ExportModelOutputInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + .class, + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + .Builder.class); + } + + public static final int GCS_OUTPUT_DIRECTORY_FIELD_NUMBER = 1; + private volatile java.lang.Object gcsOutputDirectory_; + /** + * + * + *
+     * The full path of the Google Cloud Storage directory created, into which
+     * the model will be exported.
+     * 
+ * + * string gcs_output_directory = 1; + */ + public java.lang.String getGcsOutputDirectory() { + java.lang.Object ref = gcsOutputDirectory_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsOutputDirectory_ = s; + return s; + } + } + /** + * + * + *
+     * The full path of the Google Cloud Storage directory created, into which
+     * the model will be exported.
+     * 
+ * + * string gcs_output_directory = 1; + */ + public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { + java.lang.Object ref = gcsOutputDirectory_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsOutputDirectory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getGcsOutputDirectoryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsOutputDirectory_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getGcsOutputDirectoryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gcsOutputDirectory_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo other = + (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo) obj; + + if (!getGcsOutputDirectory().equals(other.getGcsOutputDirectory())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + GCS_OUTPUT_DIRECTORY_FIELD_NUMBER; + hash = (53 * hash) + getGcsOutputDirectory().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Further describes the output of model export.
+     * Supplements
+     * [ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig].
+     * 
+ * + * Protobuf type {@code + * google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo) + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata + .ExportModelOutputInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportModelOperationMetadata_ExportModelOutputInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportModelOperationMetadata_ExportModelOutputInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + .class, + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + .Builder.class); + } + + // Construct using + // com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + gcsOutputDirectory_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportModelOperationMetadata_ExportModelOutputInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + build() { + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + buildPartial() { + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo result = + new com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo( + this); + result.gcsOutputDirectory_ = gcsOutputDirectory_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo) { + return mergeFrom( + (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + other) { + if (other + == com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + .getDefaultInstance()) return this; + if (!other.getGcsOutputDirectory().isEmpty()) { + gcsOutputDirectory_ = other.gcsOutputDirectory_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object gcsOutputDirectory_ = ""; + /** + * + * + *
+       * The full path of the Google Cloud Storage directory created, into which
+       * the model will be exported.
+       * 
+ * + * string gcs_output_directory = 1; + */ + public java.lang.String getGcsOutputDirectory() { + java.lang.Object ref = gcsOutputDirectory_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsOutputDirectory_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The full path of the Google Cloud Storage directory created, into which
+       * the model will be exported.
+       * 
+ * + * string gcs_output_directory = 1; + */ + public com.google.protobuf.ByteString getGcsOutputDirectoryBytes() { + java.lang.Object ref = gcsOutputDirectory_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsOutputDirectory_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The full path of the Google Cloud Storage directory created, into which
+       * the model will be exported.
+       * 
+ * + * string gcs_output_directory = 1; + */ + public Builder setGcsOutputDirectory(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + gcsOutputDirectory_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The full path of the Google Cloud Storage directory created, into which
+       * the model will be exported.
+       * 
+ * + * string gcs_output_directory = 1; + */ + public Builder clearGcsOutputDirectory() { + + gcsOutputDirectory_ = getDefaultInstance().getGcsOutputDirectory(); + onChanged(); + return this; + } + /** + * + * + *
+       * The full path of the Google Cloud Storage directory created, into which
+       * the model will be exported.
+       * 
+ * + * string gcs_output_directory = 1; + */ + public Builder setGcsOutputDirectoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + gcsOutputDirectory_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo) + private static final com.google.cloud.automl.v1beta1.ExportModelOperationMetadata + .ExportModelOutputInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo(); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportModelOutputInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportModelOutputInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int OUTPUT_INFO_FIELD_NUMBER = 2; + private com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + outputInfo_; + /** + * + * + *
+   * Output only. Information further describing the output of this model
+   * export.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + */ + public boolean hasOutputInfo() { + return outputInfo_ != null; + } + /** + * + * + *
+   * Output only. Information further describing the output of this model
+   * export.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + */ + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + getOutputInfo() { + return outputInfo_ == null + ? com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + .getDefaultInstance() + : outputInfo_; + } + /** + * + * + *
+   * Output only. Information further describing the output of this model
+   * export.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + */ + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder + getOutputInfoOrBuilder() { + return getOutputInfo(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (outputInfo_ != null) { + output.writeMessage(2, getOutputInfo()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOutputInfo()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.ExportModelOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata other = + (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) obj; + + if (hasOutputInfo() != other.hasOutputInfo()) return false; + if (hasOutputInfo()) { + if (!getOutputInfo().equals(other.getOutputInfo())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOutputInfo()) { + hash = (37 * hash) + OUTPUT_INFO_FIELD_NUMBER; + hash = (53 * hash) + getOutputInfo().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details of ExportModel operation.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ExportModelOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ExportModelOperationMetadata) + com.google.cloud.automl.v1beta1.ExportModelOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportModelOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportModelOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.class, + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (outputInfoBuilder_ == null) { + outputInfo_ = null; + } else { + outputInfo_ = null; + outputInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ExportModelOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata build() { + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata buildPartial() { + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata result = + new com.google.cloud.automl.v1beta1.ExportModelOperationMetadata(this); + if (outputInfoBuilder_ == null) { + result.outputInfo_ = outputInfo_; + } else { + result.outputInfo_ = outputInfoBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) { + return mergeFrom((com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.ExportModelOperationMetadata other) { + if (other + == com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.getDefaultInstance()) + return this; + if (other.hasOutputInfo()) { + mergeOutputInfo(other.getOutputInfo()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + outputInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo, + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + .Builder, + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata + .ExportModelOutputInfoOrBuilder> + outputInfoBuilder_; + /** + * + * + *
+     * Output only. Information further describing the output of this model
+     * export.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + */ + public boolean hasOutputInfo() { + return outputInfoBuilder_ != null || outputInfo_ != null; + } + /** + * + * + *
+     * Output only. Information further describing the output of this model
+     * export.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + */ + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + getOutputInfo() { + if (outputInfoBuilder_ == null) { + return outputInfo_ == null + ? com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + .getDefaultInstance() + : outputInfo_; + } else { + return outputInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Information further describing the output of this model
+     * export.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + */ + public Builder setOutputInfo( + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo value) { + if (outputInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputInfo_ = value; + onChanged(); + } else { + outputInfoBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Information further describing the output of this model
+     * export.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + */ + public Builder setOutputInfo( + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo.Builder + builderForValue) { + if (outputInfoBuilder_ == null) { + outputInfo_ = builderForValue.build(); + onChanged(); + } else { + outputInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Information further describing the output of this model
+     * export.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + */ + public Builder mergeOutputInfo( + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo value) { + if (outputInfoBuilder_ == null) { + if (outputInfo_ != null) { + outputInfo_ = + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + .newBuilder(outputInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + outputInfo_ = value; + } + onChanged(); + } else { + outputInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Information further describing the output of this model
+     * export.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + */ + public Builder clearOutputInfo() { + if (outputInfoBuilder_ == null) { + outputInfo_ = null; + onChanged(); + } else { + outputInfo_ = null; + outputInfoBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Information further describing the output of this model
+     * export.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + */ + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + .Builder + getOutputInfoBuilder() { + + onChanged(); + return getOutputInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Information further describing the output of this model
+     * export.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + */ + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata + .ExportModelOutputInfoOrBuilder + getOutputInfoOrBuilder() { + if (outputInfoBuilder_ != null) { + return outputInfoBuilder_.getMessageOrBuilder(); + } else { + return outputInfo_ == null + ? com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + .getDefaultInstance() + : outputInfo_; + } + } + /** + * + * + *
+     * Output only. Information further describing the output of this model
+     * export.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo, + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + .Builder, + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata + .ExportModelOutputInfoOrBuilder> + getOutputInfoFieldBuilder() { + if (outputInfoBuilder_ == null) { + outputInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo, + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + .Builder, + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata + .ExportModelOutputInfoOrBuilder>( + getOutputInfo(), getParentForChildren(), isClean()); + outputInfo_ = null; + } + return outputInfoBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ExportModelOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ExportModelOperationMetadata) + private static final com.google.cloud.automl.v1beta1.ExportModelOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ExportModelOperationMetadata(); + } + + public static com.google.cloud.automl.v1beta1.ExportModelOperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportModelOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportModelOperationMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..b3328ef9f218 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelOperationMetadataOrBuilder.java @@ -0,0 +1,52 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/operations.proto + +package com.google.cloud.automl.v1beta1; + +public interface ExportModelOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ExportModelOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Information further describing the output of this model
+   * export.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + */ + boolean hasOutputInfo(); + /** + * + * + *
+   * Output only. Information further describing the output of this model
+   * export.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + */ + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo + getOutputInfo(); + /** + * + * + *
+   * Output only. Information further describing the output of this model
+   * export.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfo output_info = 2; + * + */ + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.ExportModelOutputInfoOrBuilder + getOutputInfoOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequest.java new file mode 100644 index 000000000000..8602c62f520f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequest.java @@ -0,0 +1,874 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Request message for [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel].
+ * Models need to be enabled for exporting, otherwise an error code will be
+ * returned.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ExportModelRequest} + */ +public final class ExportModelRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ExportModelRequest) + ExportModelRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExportModelRequest.newBuilder() to construct. + private ExportModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportModelRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ExportModelRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: + { + com.google.cloud.automl.v1beta1.ModelExportOutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ModelExportOutputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ExportModelRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ExportModelRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ExportModelRequest.class, + com.google.cloud.automl.v1beta1.ExportModelRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the model to export.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the model to export.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.automl.v1beta1.ModelExportOutputConfig outputConfig_; + /** + * + * + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3; + */ + public boolean hasOutputConfig() { + return outputConfig_ != null; + } + /** + * + * + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3; + */ + public com.google.cloud.automl.v1beta1.ModelExportOutputConfig getOutputConfig() { + return outputConfig_ == null + ? com.google.cloud.automl.v1beta1.ModelExportOutputConfig.getDefaultInstance() + : outputConfig_; + } + /** + * + * + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3; + */ + public com.google.cloud.automl.v1beta1.ModelExportOutputConfigOrBuilder + getOutputConfigOrBuilder() { + return getOutputConfig(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (outputConfig_ != null) { + output.writeMessage(3, getOutputConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (outputConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOutputConfig()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.ExportModelRequest)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ExportModelRequest other = + (com.google.cloud.automl.v1beta1.ExportModelRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasOutputConfig() != other.hasOutputConfig()) return false; + if (hasOutputConfig()) { + if (!getOutputConfig().equals(other.getOutputConfig())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasOutputConfig()) { + hash = (37 * hash) + OUTPUT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOutputConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ExportModelRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportModelRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportModelRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportModelRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportModelRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ExportModelRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportModelRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportModelRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportModelRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportModelRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ExportModelRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ExportModelRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.ExportModelRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel].
+   * Models need to be enabled for exporting, otherwise an error code will be
+   * returned.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ExportModelRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ExportModelRequest) + com.google.cloud.automl.v1beta1.ExportModelRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ExportModelRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ExportModelRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ExportModelRequest.class, + com.google.cloud.automl.v1beta1.ExportModelRequest.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.ExportModelRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (outputConfigBuilder_ == null) { + outputConfig_ = null; + } else { + outputConfig_ = null; + outputConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ExportModelRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportModelRequest getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ExportModelRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportModelRequest build() { + com.google.cloud.automl.v1beta1.ExportModelRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportModelRequest buildPartial() { + com.google.cloud.automl.v1beta1.ExportModelRequest result = + new com.google.cloud.automl.v1beta1.ExportModelRequest(this); + result.name_ = name_; + if (outputConfigBuilder_ == null) { + result.outputConfig_ = outputConfig_; + } else { + result.outputConfig_ = outputConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.ExportModelRequest) { + return mergeFrom((com.google.cloud.automl.v1beta1.ExportModelRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.ExportModelRequest other) { + if (other == com.google.cloud.automl.v1beta1.ExportModelRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasOutputConfig()) { + mergeOutputConfig(other.getOutputConfig()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ExportModelRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ExportModelRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the model to export.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the model to export.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the model to export.
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the model to export.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the model to export.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.cloud.automl.v1beta1.ModelExportOutputConfig outputConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ModelExportOutputConfig, + com.google.cloud.automl.v1beta1.ModelExportOutputConfig.Builder, + com.google.cloud.automl.v1beta1.ModelExportOutputConfigOrBuilder> + outputConfigBuilder_; + /** + * + * + *
+     * Required. The desired output location and configuration.
+     * 
+ * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3; + */ + public boolean hasOutputConfig() { + return outputConfigBuilder_ != null || outputConfig_ != null; + } + /** + * + * + *
+     * Required. The desired output location and configuration.
+     * 
+ * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3; + */ + public com.google.cloud.automl.v1beta1.ModelExportOutputConfig getOutputConfig() { + if (outputConfigBuilder_ == null) { + return outputConfig_ == null + ? com.google.cloud.automl.v1beta1.ModelExportOutputConfig.getDefaultInstance() + : outputConfig_; + } else { + return outputConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The desired output location and configuration.
+     * 
+ * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3; + */ + public Builder setOutputConfig(com.google.cloud.automl.v1beta1.ModelExportOutputConfig value) { + if (outputConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputConfig_ = value; + onChanged(); + } else { + outputConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The desired output location and configuration.
+     * 
+ * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3; + */ + public Builder setOutputConfig( + com.google.cloud.automl.v1beta1.ModelExportOutputConfig.Builder builderForValue) { + if (outputConfigBuilder_ == null) { + outputConfig_ = builderForValue.build(); + onChanged(); + } else { + outputConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The desired output location and configuration.
+     * 
+ * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3; + */ + public Builder mergeOutputConfig( + com.google.cloud.automl.v1beta1.ModelExportOutputConfig value) { + if (outputConfigBuilder_ == null) { + if (outputConfig_ != null) { + outputConfig_ = + com.google.cloud.automl.v1beta1.ModelExportOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + outputConfig_ = value; + } + onChanged(); + } else { + outputConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The desired output location and configuration.
+     * 
+ * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3; + */ + public Builder clearOutputConfig() { + if (outputConfigBuilder_ == null) { + outputConfig_ = null; + onChanged(); + } else { + outputConfig_ = null; + outputConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The desired output location and configuration.
+     * 
+ * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3; + */ + public com.google.cloud.automl.v1beta1.ModelExportOutputConfig.Builder + getOutputConfigBuilder() { + + onChanged(); + return getOutputConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The desired output location and configuration.
+     * 
+ * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3; + */ + public com.google.cloud.automl.v1beta1.ModelExportOutputConfigOrBuilder + getOutputConfigOrBuilder() { + if (outputConfigBuilder_ != null) { + return outputConfigBuilder_.getMessageOrBuilder(); + } else { + return outputConfig_ == null + ? com.google.cloud.automl.v1beta1.ModelExportOutputConfig.getDefaultInstance() + : outputConfig_; + } + } + /** + * + * + *
+     * Required. The desired output location and configuration.
+     * 
+ * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ModelExportOutputConfig, + com.google.cloud.automl.v1beta1.ModelExportOutputConfig.Builder, + com.google.cloud.automl.v1beta1.ModelExportOutputConfigOrBuilder> + getOutputConfigFieldBuilder() { + if (outputConfigBuilder_ == null) { + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ModelExportOutputConfig, + com.google.cloud.automl.v1beta1.ModelExportOutputConfig.Builder, + com.google.cloud.automl.v1beta1.ModelExportOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); + outputConfig_ = null; + } + return outputConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ExportModelRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ExportModelRequest) + private static final com.google.cloud.automl.v1beta1.ExportModelRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ExportModelRequest(); + } + + public static com.google.cloud.automl.v1beta1.ExportModelRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportModelRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportModelRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ExportModelRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequestOrBuilder.java new file mode 100644 index 000000000000..bf7bb3c77890 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ExportModelRequestOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface ExportModelRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ExportModelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the model to export.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the model to export.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3; + */ + boolean hasOutputConfig(); + /** + * + * + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3; + */ + com.google.cloud.automl.v1beta1.ModelExportOutputConfig getOutputConfig(); + /** + * + * + *
+   * Required. The desired output location and configuration.
+   * 
+ * + * .google.cloud.automl.v1beta1.ModelExportOutputConfig output_config = 3; + */ + com.google.cloud.automl.v1beta1.ModelExportOutputConfigOrBuilder getOutputConfigOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64Stats.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64Stats.java new file mode 100644 index 000000000000..53a7f2dde5dc --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64Stats.java @@ -0,0 +1,2232 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_stats.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * The data statistics of a series of FLOAT64 values.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.Float64Stats} + */ +public final class Float64Stats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.Float64Stats) + Float64StatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Float64Stats.newBuilder() to construct. + private Float64Stats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Float64Stats() { + quantiles_ = emptyDoubleList(); + histogramBuckets_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Float64Stats( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + mean_ = input.readDouble(); + break; + } + case 17: + { + standardDeviation_ = input.readDouble(); + break; + } + case 25: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + quantiles_ = newDoubleList(); + mutable_bitField0_ |= 0x00000004; + } + quantiles_.addDouble(input.readDouble()); + break; + } + case 26: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { + quantiles_ = newDoubleList(); + mutable_bitField0_ |= 0x00000004; + } + while (input.getBytesUntilLimit() > 0) { + quantiles_.addDouble(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + histogramBuckets_ = + new java.util.ArrayList< + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket>(); + mutable_bitField0_ |= 0x00000008; + } + histogramBuckets_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) != 0)) { + quantiles_.makeImmutable(); // C + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + histogramBuckets_ = java.util.Collections.unmodifiableList(histogramBuckets_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_Float64Stats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_Float64Stats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.Float64Stats.class, + com.google.cloud.automl.v1beta1.Float64Stats.Builder.class); + } + + public interface HistogramBucketOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.Float64Stats.HistogramBucket) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The minimum value of the bucket, inclusive.
+     * 
+ * + * double min = 1; + */ + double getMin(); + + /** + * + * + *
+     * The maximum value of the bucket, exclusive unless max = `"Infinity"`, in
+     * which case it's inclusive.
+     * 
+ * + * double max = 2; + */ + double getMax(); + + /** + * + * + *
+     * The number of data values that are in the bucket, i.e. are between
+     * min and max values.
+     * 
+ * + * int64 count = 3; + */ + long getCount(); + } + /** + * + * + *
+   * A bucket of a histogram.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.Float64Stats.HistogramBucket} + */ + public static final class HistogramBucket extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.Float64Stats.HistogramBucket) + HistogramBucketOrBuilder { + private static final long serialVersionUID = 0L; + // Use HistogramBucket.newBuilder() to construct. + private HistogramBucket(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HistogramBucket() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private HistogramBucket( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + min_ = input.readDouble(); + break; + } + case 17: + { + max_ = input.readDouble(); + break; + } + case 24: + { + count_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_Float64Stats_HistogramBucket_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_Float64Stats_HistogramBucket_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.class, + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder.class); + } + + public static final int MIN_FIELD_NUMBER = 1; + private double min_; + /** + * + * + *
+     * The minimum value of the bucket, inclusive.
+     * 
+ * + * double min = 1; + */ + public double getMin() { + return min_; + } + + public static final int MAX_FIELD_NUMBER = 2; + private double max_; + /** + * + * + *
+     * The maximum value of the bucket, exclusive unless max = `"Infinity"`, in
+     * which case it's inclusive.
+     * 
+ * + * double max = 2; + */ + public double getMax() { + return max_; + } + + public static final int COUNT_FIELD_NUMBER = 3; + private long count_; + /** + * + * + *
+     * The number of data values that are in the bucket, i.e. are between
+     * min and max values.
+     * 
+ * + * int64 count = 3; + */ + public long getCount() { + return count_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (min_ != 0D) { + output.writeDouble(1, min_); + } + if (max_ != 0D) { + output.writeDouble(2, max_); + } + if (count_ != 0L) { + output.writeInt64(3, count_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (min_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, min_); + } + if (max_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, max_); + } + if (count_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, count_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket other = + (com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket) obj; + + if (java.lang.Double.doubleToLongBits(getMin()) + != java.lang.Double.doubleToLongBits(other.getMin())) return false; + if (java.lang.Double.doubleToLongBits(getMax()) + != java.lang.Double.doubleToLongBits(other.getMax())) return false; + if (getCount() != other.getCount()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MIN_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getMin())); + hash = (37 * hash) + MAX_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getMax())); + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A bucket of a histogram.
+     * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.Float64Stats.HistogramBucket} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.Float64Stats.HistogramBucket) + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_Float64Stats_HistogramBucket_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_Float64Stats_HistogramBucket_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.class, + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + min_ = 0D; + + max_ = 0D; + + count_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_Float64Stats_HistogramBucket_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket build() { + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket buildPartial() { + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket result = + new com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket(this); + result.min_ = min_; + result.max_ = max_; + result.count_ = count_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket) { + return mergeFrom((com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket other) { + if (other + == com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.getDefaultInstance()) + return this; + if (other.getMin() != 0D) { + setMin(other.getMin()); + } + if (other.getMax() != 0D) { + setMax(other.getMax()); + } + if (other.getCount() != 0L) { + setCount(other.getCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double min_; + /** + * + * + *
+       * The minimum value of the bucket, inclusive.
+       * 
+ * + * double min = 1; + */ + public double getMin() { + return min_; + } + /** + * + * + *
+       * The minimum value of the bucket, inclusive.
+       * 
+ * + * double min = 1; + */ + public Builder setMin(double value) { + + min_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The minimum value of the bucket, inclusive.
+       * 
+ * + * double min = 1; + */ + public Builder clearMin() { + + min_ = 0D; + onChanged(); + return this; + } + + private double max_; + /** + * + * + *
+       * The maximum value of the bucket, exclusive unless max = `"Infinity"`, in
+       * which case it's inclusive.
+       * 
+ * + * double max = 2; + */ + public double getMax() { + return max_; + } + /** + * + * + *
+       * The maximum value of the bucket, exclusive unless max = `"Infinity"`, in
+       * which case it's inclusive.
+       * 
+ * + * double max = 2; + */ + public Builder setMax(double value) { + + max_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The maximum value of the bucket, exclusive unless max = `"Infinity"`, in
+       * which case it's inclusive.
+       * 
+ * + * double max = 2; + */ + public Builder clearMax() { + + max_ = 0D; + onChanged(); + return this; + } + + private long count_; + /** + * + * + *
+       * The number of data values that are in the bucket, i.e. are between
+       * min and max values.
+       * 
+ * + * int64 count = 3; + */ + public long getCount() { + return count_; + } + /** + * + * + *
+       * The number of data values that are in the bucket, i.e. are between
+       * min and max values.
+       * 
+ * + * int64 count = 3; + */ + public Builder setCount(long value) { + + count_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The number of data values that are in the bucket, i.e. are between
+       * min and max values.
+       * 
+ * + * int64 count = 3; + */ + public Builder clearCount() { + + count_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.Float64Stats.HistogramBucket) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.Float64Stats.HistogramBucket) + private static final com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket(); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HistogramBucket parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HistogramBucket(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int MEAN_FIELD_NUMBER = 1; + private double mean_; + /** + * + * + *
+   * The mean of the series.
+   * 
+ * + * double mean = 1; + */ + public double getMean() { + return mean_; + } + + public static final int STANDARD_DEVIATION_FIELD_NUMBER = 2; + private double standardDeviation_; + /** + * + * + *
+   * The standard deviation of the series.
+   * 
+ * + * double standard_deviation = 2; + */ + public double getStandardDeviation() { + return standardDeviation_; + } + + public static final int QUANTILES_FIELD_NUMBER = 3; + private com.google.protobuf.Internal.DoubleList quantiles_; + /** + * + * + *
+   * Ordered from 0 to k k-quantile values of the data series of n values.
+   * The value at index i is, approximately, the i*n/k-th smallest value in the
+   * series; for i = 0 and i = k these are, respectively, the min and max
+   * values.
+   * 
+ * + * repeated double quantiles = 3; + */ + public java.util.List getQuantilesList() { + return quantiles_; + } + /** + * + * + *
+   * Ordered from 0 to k k-quantile values of the data series of n values.
+   * The value at index i is, approximately, the i*n/k-th smallest value in the
+   * series; for i = 0 and i = k these are, respectively, the min and max
+   * values.
+   * 
+ * + * repeated double quantiles = 3; + */ + public int getQuantilesCount() { + return quantiles_.size(); + } + /** + * + * + *
+   * Ordered from 0 to k k-quantile values of the data series of n values.
+   * The value at index i is, approximately, the i*n/k-th smallest value in the
+   * series; for i = 0 and i = k these are, respectively, the min and max
+   * values.
+   * 
+ * + * repeated double quantiles = 3; + */ + public double getQuantiles(int index) { + return quantiles_.getDouble(index); + } + + private int quantilesMemoizedSerializedSize = -1; + + public static final int HISTOGRAM_BUCKETS_FIELD_NUMBER = 4; + private java.util.List + histogramBuckets_; + /** + * + * + *
+   * Histogram buckets of the data series. Sorted by the min value of the
+   * bucket, ascendingly, and the number of the buckets is dynamically
+   * generated. The buckets are non-overlapping and completely cover whole
+   * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+   * the last one being `"Infinity"`.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public java.util.List + getHistogramBucketsList() { + return histogramBuckets_; + } + /** + * + * + *
+   * Histogram buckets of the data series. Sorted by the min value of the
+   * bucket, ascendingly, and the number of the buckets is dynamically
+   * generated. The buckets are non-overlapping and completely cover whole
+   * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+   * the last one being `"Infinity"`.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public java.util.List< + ? extends com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder> + getHistogramBucketsOrBuilderList() { + return histogramBuckets_; + } + /** + * + * + *
+   * Histogram buckets of the data series. Sorted by the min value of the
+   * bucket, ascendingly, and the number of the buckets is dynamically
+   * generated. The buckets are non-overlapping and completely cover whole
+   * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+   * the last one being `"Infinity"`.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public int getHistogramBucketsCount() { + return histogramBuckets_.size(); + } + /** + * + * + *
+   * Histogram buckets of the data series. Sorted by the min value of the
+   * bucket, ascendingly, and the number of the buckets is dynamically
+   * generated. The buckets are non-overlapping and completely cover whole
+   * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+   * the last one being `"Infinity"`.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket getHistogramBuckets( + int index) { + return histogramBuckets_.get(index); + } + /** + * + * + *
+   * Histogram buckets of the data series. Sorted by the min value of the
+   * bucket, ascendingly, and the number of the buckets is dynamically
+   * generated. The buckets are non-overlapping and completely cover whole
+   * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+   * the last one being `"Infinity"`.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder + getHistogramBucketsOrBuilder(int index) { + return histogramBuckets_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (mean_ != 0D) { + output.writeDouble(1, mean_); + } + if (standardDeviation_ != 0D) { + output.writeDouble(2, standardDeviation_); + } + if (getQuantilesList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(quantilesMemoizedSerializedSize); + } + for (int i = 0; i < quantiles_.size(); i++) { + output.writeDoubleNoTag(quantiles_.getDouble(i)); + } + for (int i = 0; i < histogramBuckets_.size(); i++) { + output.writeMessage(4, histogramBuckets_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mean_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, mean_); + } + if (standardDeviation_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, standardDeviation_); + } + { + int dataSize = 0; + dataSize = 8 * getQuantilesList().size(); + size += dataSize; + if (!getQuantilesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + quantilesMemoizedSerializedSize = dataSize; + } + for (int i = 0; i < histogramBuckets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, histogramBuckets_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.Float64Stats)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.Float64Stats other = + (com.google.cloud.automl.v1beta1.Float64Stats) obj; + + if (java.lang.Double.doubleToLongBits(getMean()) + != java.lang.Double.doubleToLongBits(other.getMean())) return false; + if (java.lang.Double.doubleToLongBits(getStandardDeviation()) + != java.lang.Double.doubleToLongBits(other.getStandardDeviation())) return false; + if (!getQuantilesList().equals(other.getQuantilesList())) return false; + if (!getHistogramBucketsList().equals(other.getHistogramBucketsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MEAN_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getMean())); + hash = (37 * hash) + STANDARD_DEVIATION_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getStandardDeviation())); + if (getQuantilesCount() > 0) { + hash = (37 * hash) + QUANTILES_FIELD_NUMBER; + hash = (53 * hash) + getQuantilesList().hashCode(); + } + if (getHistogramBucketsCount() > 0) { + hash = (37 * hash) + HISTOGRAM_BUCKETS_FIELD_NUMBER; + hash = (53 * hash) + getHistogramBucketsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.Float64Stats parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.Float64Stats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The data statistics of a series of FLOAT64 values.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.Float64Stats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.Float64Stats) + com.google.cloud.automl.v1beta1.Float64StatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_Float64Stats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_Float64Stats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.Float64Stats.class, + com.google.cloud.automl.v1beta1.Float64Stats.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.Float64Stats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getHistogramBucketsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + mean_ = 0D; + + standardDeviation_ = 0D; + + quantiles_ = emptyDoubleList(); + bitField0_ = (bitField0_ & ~0x00000004); + if (histogramBucketsBuilder_ == null) { + histogramBuckets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + histogramBucketsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_Float64Stats_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.Float64Stats getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.Float64Stats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.Float64Stats build() { + com.google.cloud.automl.v1beta1.Float64Stats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.Float64Stats buildPartial() { + com.google.cloud.automl.v1beta1.Float64Stats result = + new com.google.cloud.automl.v1beta1.Float64Stats(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.mean_ = mean_; + result.standardDeviation_ = standardDeviation_; + if (((bitField0_ & 0x00000004) != 0)) { + quantiles_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.quantiles_ = quantiles_; + if (histogramBucketsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + histogramBuckets_ = java.util.Collections.unmodifiableList(histogramBuckets_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.histogramBuckets_ = histogramBuckets_; + } else { + result.histogramBuckets_ = histogramBucketsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.Float64Stats) { + return mergeFrom((com.google.cloud.automl.v1beta1.Float64Stats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.Float64Stats other) { + if (other == com.google.cloud.automl.v1beta1.Float64Stats.getDefaultInstance()) return this; + if (other.getMean() != 0D) { + setMean(other.getMean()); + } + if (other.getStandardDeviation() != 0D) { + setStandardDeviation(other.getStandardDeviation()); + } + if (!other.quantiles_.isEmpty()) { + if (quantiles_.isEmpty()) { + quantiles_ = other.quantiles_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureQuantilesIsMutable(); + quantiles_.addAll(other.quantiles_); + } + onChanged(); + } + if (histogramBucketsBuilder_ == null) { + if (!other.histogramBuckets_.isEmpty()) { + if (histogramBuckets_.isEmpty()) { + histogramBuckets_ = other.histogramBuckets_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureHistogramBucketsIsMutable(); + histogramBuckets_.addAll(other.histogramBuckets_); + } + onChanged(); + } + } else { + if (!other.histogramBuckets_.isEmpty()) { + if (histogramBucketsBuilder_.isEmpty()) { + histogramBucketsBuilder_.dispose(); + histogramBucketsBuilder_ = null; + histogramBuckets_ = other.histogramBuckets_; + bitField0_ = (bitField0_ & ~0x00000008); + histogramBucketsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHistogramBucketsFieldBuilder() + : null; + } else { + histogramBucketsBuilder_.addAllMessages(other.histogramBuckets_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.Float64Stats parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.Float64Stats) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private double mean_; + /** + * + * + *
+     * The mean of the series.
+     * 
+ * + * double mean = 1; + */ + public double getMean() { + return mean_; + } + /** + * + * + *
+     * The mean of the series.
+     * 
+ * + * double mean = 1; + */ + public Builder setMean(double value) { + + mean_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The mean of the series.
+     * 
+ * + * double mean = 1; + */ + public Builder clearMean() { + + mean_ = 0D; + onChanged(); + return this; + } + + private double standardDeviation_; + /** + * + * + *
+     * The standard deviation of the series.
+     * 
+ * + * double standard_deviation = 2; + */ + public double getStandardDeviation() { + return standardDeviation_; + } + /** + * + * + *
+     * The standard deviation of the series.
+     * 
+ * + * double standard_deviation = 2; + */ + public Builder setStandardDeviation(double value) { + + standardDeviation_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The standard deviation of the series.
+     * 
+ * + * double standard_deviation = 2; + */ + public Builder clearStandardDeviation() { + + standardDeviation_ = 0D; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.DoubleList quantiles_ = emptyDoubleList(); + + private void ensureQuantilesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + quantiles_ = mutableCopy(quantiles_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * Ordered from 0 to k k-quantile values of the data series of n values.
+     * The value at index i is, approximately, the i*n/k-th smallest value in the
+     * series; for i = 0 and i = k these are, respectively, the min and max
+     * values.
+     * 
+ * + * repeated double quantiles = 3; + */ + public java.util.List getQuantilesList() { + return ((bitField0_ & 0x00000004) != 0) + ? java.util.Collections.unmodifiableList(quantiles_) + : quantiles_; + } + /** + * + * + *
+     * Ordered from 0 to k k-quantile values of the data series of n values.
+     * The value at index i is, approximately, the i*n/k-th smallest value in the
+     * series; for i = 0 and i = k these are, respectively, the min and max
+     * values.
+     * 
+ * + * repeated double quantiles = 3; + */ + public int getQuantilesCount() { + return quantiles_.size(); + } + /** + * + * + *
+     * Ordered from 0 to k k-quantile values of the data series of n values.
+     * The value at index i is, approximately, the i*n/k-th smallest value in the
+     * series; for i = 0 and i = k these are, respectively, the min and max
+     * values.
+     * 
+ * + * repeated double quantiles = 3; + */ + public double getQuantiles(int index) { + return quantiles_.getDouble(index); + } + /** + * + * + *
+     * Ordered from 0 to k k-quantile values of the data series of n values.
+     * The value at index i is, approximately, the i*n/k-th smallest value in the
+     * series; for i = 0 and i = k these are, respectively, the min and max
+     * values.
+     * 
+ * + * repeated double quantiles = 3; + */ + public Builder setQuantiles(int index, double value) { + ensureQuantilesIsMutable(); + quantiles_.setDouble(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Ordered from 0 to k k-quantile values of the data series of n values.
+     * The value at index i is, approximately, the i*n/k-th smallest value in the
+     * series; for i = 0 and i = k these are, respectively, the min and max
+     * values.
+     * 
+ * + * repeated double quantiles = 3; + */ + public Builder addQuantiles(double value) { + ensureQuantilesIsMutable(); + quantiles_.addDouble(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Ordered from 0 to k k-quantile values of the data series of n values.
+     * The value at index i is, approximately, the i*n/k-th smallest value in the
+     * series; for i = 0 and i = k these are, respectively, the min and max
+     * values.
+     * 
+ * + * repeated double quantiles = 3; + */ + public Builder addAllQuantiles(java.lang.Iterable values) { + ensureQuantilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, quantiles_); + onChanged(); + return this; + } + /** + * + * + *
+     * Ordered from 0 to k k-quantile values of the data series of n values.
+     * The value at index i is, approximately, the i*n/k-th smallest value in the
+     * series; for i = 0 and i = k these are, respectively, the min and max
+     * values.
+     * 
+ * + * repeated double quantiles = 3; + */ + public Builder clearQuantiles() { + quantiles_ = emptyDoubleList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + private java.util.List + histogramBuckets_ = java.util.Collections.emptyList(); + + private void ensureHistogramBucketsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + histogramBuckets_ = + new java.util.ArrayList( + histogramBuckets_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket, + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder, + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder> + histogramBucketsBuilder_; + + /** + * + * + *
+     * Histogram buckets of the data series. Sorted by the min value of the
+     * bucket, ascendingly, and the number of the buckets is dynamically
+     * generated. The buckets are non-overlapping and completely cover whole
+     * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+     * the last one being `"Infinity"`.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public java.util.List + getHistogramBucketsList() { + if (histogramBucketsBuilder_ == null) { + return java.util.Collections.unmodifiableList(histogramBuckets_); + } else { + return histogramBucketsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Histogram buckets of the data series. Sorted by the min value of the
+     * bucket, ascendingly, and the number of the buckets is dynamically
+     * generated. The buckets are non-overlapping and completely cover whole
+     * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+     * the last one being `"Infinity"`.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public int getHistogramBucketsCount() { + if (histogramBucketsBuilder_ == null) { + return histogramBuckets_.size(); + } else { + return histogramBucketsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Histogram buckets of the data series. Sorted by the min value of the
+     * bucket, ascendingly, and the number of the buckets is dynamically
+     * generated. The buckets are non-overlapping and completely cover whole
+     * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+     * the last one being `"Infinity"`.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket getHistogramBuckets( + int index) { + if (histogramBucketsBuilder_ == null) { + return histogramBuckets_.get(index); + } else { + return histogramBucketsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Histogram buckets of the data series. Sorted by the min value of the
+     * bucket, ascendingly, and the number of the buckets is dynamically
+     * generated. The buckets are non-overlapping and completely cover whole
+     * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+     * the last one being `"Infinity"`.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public Builder setHistogramBuckets( + int index, com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket value) { + if (histogramBucketsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramBucketsIsMutable(); + histogramBuckets_.set(index, value); + onChanged(); + } else { + histogramBucketsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Histogram buckets of the data series. Sorted by the min value of the
+     * bucket, ascendingly, and the number of the buckets is dynamically
+     * generated. The buckets are non-overlapping and completely cover whole
+     * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+     * the last one being `"Infinity"`.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public Builder setHistogramBuckets( + int index, + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder builderForValue) { + if (histogramBucketsBuilder_ == null) { + ensureHistogramBucketsIsMutable(); + histogramBuckets_.set(index, builderForValue.build()); + onChanged(); + } else { + histogramBucketsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Histogram buckets of the data series. Sorted by the min value of the
+     * bucket, ascendingly, and the number of the buckets is dynamically
+     * generated. The buckets are non-overlapping and completely cover whole
+     * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+     * the last one being `"Infinity"`.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public Builder addHistogramBuckets( + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket value) { + if (histogramBucketsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramBucketsIsMutable(); + histogramBuckets_.add(value); + onChanged(); + } else { + histogramBucketsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Histogram buckets of the data series. Sorted by the min value of the
+     * bucket, ascendingly, and the number of the buckets is dynamically
+     * generated. The buckets are non-overlapping and completely cover whole
+     * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+     * the last one being `"Infinity"`.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public Builder addHistogramBuckets( + int index, com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket value) { + if (histogramBucketsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHistogramBucketsIsMutable(); + histogramBuckets_.add(index, value); + onChanged(); + } else { + histogramBucketsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Histogram buckets of the data series. Sorted by the min value of the
+     * bucket, ascendingly, and the number of the buckets is dynamically
+     * generated. The buckets are non-overlapping and completely cover whole
+     * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+     * the last one being `"Infinity"`.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public Builder addHistogramBuckets( + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder builderForValue) { + if (histogramBucketsBuilder_ == null) { + ensureHistogramBucketsIsMutable(); + histogramBuckets_.add(builderForValue.build()); + onChanged(); + } else { + histogramBucketsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Histogram buckets of the data series. Sorted by the min value of the
+     * bucket, ascendingly, and the number of the buckets is dynamically
+     * generated. The buckets are non-overlapping and completely cover whole
+     * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+     * the last one being `"Infinity"`.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public Builder addHistogramBuckets( + int index, + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder builderForValue) { + if (histogramBucketsBuilder_ == null) { + ensureHistogramBucketsIsMutable(); + histogramBuckets_.add(index, builderForValue.build()); + onChanged(); + } else { + histogramBucketsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Histogram buckets of the data series. Sorted by the min value of the
+     * bucket, ascendingly, and the number of the buckets is dynamically
+     * generated. The buckets are non-overlapping and completely cover whole
+     * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+     * the last one being `"Infinity"`.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public Builder addAllHistogramBuckets( + java.lang.Iterable + values) { + if (histogramBucketsBuilder_ == null) { + ensureHistogramBucketsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, histogramBuckets_); + onChanged(); + } else { + histogramBucketsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Histogram buckets of the data series. Sorted by the min value of the
+     * bucket, ascendingly, and the number of the buckets is dynamically
+     * generated. The buckets are non-overlapping and completely cover whole
+     * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+     * the last one being `"Infinity"`.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public Builder clearHistogramBuckets() { + if (histogramBucketsBuilder_ == null) { + histogramBuckets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + histogramBucketsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Histogram buckets of the data series. Sorted by the min value of the
+     * bucket, ascendingly, and the number of the buckets is dynamically
+     * generated. The buckets are non-overlapping and completely cover whole
+     * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+     * the last one being `"Infinity"`.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public Builder removeHistogramBuckets(int index) { + if (histogramBucketsBuilder_ == null) { + ensureHistogramBucketsIsMutable(); + histogramBuckets_.remove(index); + onChanged(); + } else { + histogramBucketsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Histogram buckets of the data series. Sorted by the min value of the
+     * bucket, ascendingly, and the number of the buckets is dynamically
+     * generated. The buckets are non-overlapping and completely cover whole
+     * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+     * the last one being `"Infinity"`.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder + getHistogramBucketsBuilder(int index) { + return getHistogramBucketsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Histogram buckets of the data series. Sorted by the min value of the
+     * bucket, ascendingly, and the number of the buckets is dynamically
+     * generated. The buckets are non-overlapping and completely cover whole
+     * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+     * the last one being `"Infinity"`.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder + getHistogramBucketsOrBuilder(int index) { + if (histogramBucketsBuilder_ == null) { + return histogramBuckets_.get(index); + } else { + return histogramBucketsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Histogram buckets of the data series. Sorted by the min value of the
+     * bucket, ascendingly, and the number of the buckets is dynamically
+     * generated. The buckets are non-overlapping and completely cover whole
+     * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+     * the last one being `"Infinity"`.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public java.util.List< + ? extends com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder> + getHistogramBucketsOrBuilderList() { + if (histogramBucketsBuilder_ != null) { + return histogramBucketsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(histogramBuckets_); + } + } + /** + * + * + *
+     * Histogram buckets of the data series. Sorted by the min value of the
+     * bucket, ascendingly, and the number of the buckets is dynamically
+     * generated. The buckets are non-overlapping and completely cover whole
+     * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+     * the last one being `"Infinity"`.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder + addHistogramBucketsBuilder() { + return getHistogramBucketsFieldBuilder() + .addBuilder( + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.getDefaultInstance()); + } + /** + * + * + *
+     * Histogram buckets of the data series. Sorted by the min value of the
+     * bucket, ascendingly, and the number of the buckets is dynamically
+     * generated. The buckets are non-overlapping and completely cover whole
+     * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+     * the last one being `"Infinity"`.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder + addHistogramBucketsBuilder(int index) { + return getHistogramBucketsFieldBuilder() + .addBuilder( + index, + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.getDefaultInstance()); + } + /** + * + * + *
+     * Histogram buckets of the data series. Sorted by the min value of the
+     * bucket, ascendingly, and the number of the buckets is dynamically
+     * generated. The buckets are non-overlapping and completely cover whole
+     * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+     * the last one being `"Infinity"`.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + public java.util.List + getHistogramBucketsBuilderList() { + return getHistogramBucketsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket, + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder, + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder> + getHistogramBucketsFieldBuilder() { + if (histogramBucketsBuilder_ == null) { + histogramBucketsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket, + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket.Builder, + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder>( + histogramBuckets_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + histogramBuckets_ = null; + } + return histogramBucketsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.Float64Stats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.Float64Stats) + private static final com.google.cloud.automl.v1beta1.Float64Stats DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.Float64Stats(); + } + + public static com.google.cloud.automl.v1beta1.Float64Stats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Float64Stats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Float64Stats(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.Float64Stats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64StatsOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64StatsOrBuilder.java new file mode 100644 index 000000000000..9ba76a2866e7 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Float64StatsOrBuilder.java @@ -0,0 +1,151 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_stats.proto + +package com.google.cloud.automl.v1beta1; + +public interface Float64StatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.Float64Stats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The mean of the series.
+   * 
+ * + * double mean = 1; + */ + double getMean(); + + /** + * + * + *
+   * The standard deviation of the series.
+   * 
+ * + * double standard_deviation = 2; + */ + double getStandardDeviation(); + + /** + * + * + *
+   * Ordered from 0 to k k-quantile values of the data series of n values.
+   * The value at index i is, approximately, the i*n/k-th smallest value in the
+   * series; for i = 0 and i = k these are, respectively, the min and max
+   * values.
+   * 
+ * + * repeated double quantiles = 3; + */ + java.util.List getQuantilesList(); + /** + * + * + *
+   * Ordered from 0 to k k-quantile values of the data series of n values.
+   * The value at index i is, approximately, the i*n/k-th smallest value in the
+   * series; for i = 0 and i = k these are, respectively, the min and max
+   * values.
+   * 
+ * + * repeated double quantiles = 3; + */ + int getQuantilesCount(); + /** + * + * + *
+   * Ordered from 0 to k k-quantile values of the data series of n values.
+   * The value at index i is, approximately, the i*n/k-th smallest value in the
+   * series; for i = 0 and i = k these are, respectively, the min and max
+   * values.
+   * 
+ * + * repeated double quantiles = 3; + */ + double getQuantiles(int index); + + /** + * + * + *
+   * Histogram buckets of the data series. Sorted by the min value of the
+   * bucket, ascendingly, and the number of the buckets is dynamically
+   * generated. The buckets are non-overlapping and completely cover whole
+   * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+   * the last one being `"Infinity"`.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + java.util.List + getHistogramBucketsList(); + /** + * + * + *
+   * Histogram buckets of the data series. Sorted by the min value of the
+   * bucket, ascendingly, and the number of the buckets is dynamically
+   * generated. The buckets are non-overlapping and completely cover whole
+   * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+   * the last one being `"Infinity"`.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucket getHistogramBuckets(int index); + /** + * + * + *
+   * Histogram buckets of the data series. Sorted by the min value of the
+   * bucket, ascendingly, and the number of the buckets is dynamically
+   * generated. The buckets are non-overlapping and completely cover whole
+   * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+   * the last one being `"Infinity"`.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + int getHistogramBucketsCount(); + /** + * + * + *
+   * Histogram buckets of the data series. Sorted by the min value of the
+   * bucket, ascendingly, and the number of the buckets is dynamically
+   * generated. The buckets are non-overlapping and completely cover whole
+   * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+   * the last one being `"Infinity"`.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + java.util.List + getHistogramBucketsOrBuilderList(); + /** + * + * + *
+   * Histogram buckets of the data series. Sorted by the min value of the
+   * bucket, ascendingly, and the number of the buckets is dynamically
+   * generated. The buckets are non-overlapping and completely cover whole
+   * FLOAT64 range with min of first bucket being `"-Infinity"`, and max of
+   * the last one being `"Infinity"`.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.Float64Stats.HistogramBucket histogram_buckets = 4; + * + */ + com.google.cloud.automl.v1beta1.Float64Stats.HistogramBucketOrBuilder + getHistogramBucketsOrBuilder(int index); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestination.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestination.java new file mode 100644 index 000000000000..473c4f7d5b89 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestination.java @@ -0,0 +1,652 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/io.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * The GCR location where the image must be pushed to.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.GcrDestination} + */ +public final class GcrDestination extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.GcrDestination) + GcrDestinationOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcrDestination.newBuilder() to construct. + private GcrDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcrDestination() { + outputUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GcrDestination( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + outputUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_GcrDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_GcrDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.GcrDestination.class, + com.google.cloud.automl.v1beta1.GcrDestination.Builder.class); + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 1; + private volatile java.lang.Object outputUri_; + /** + * + * + *
+   * Required. Google Contained Registry URI of the new image, up to 2000
+   * characters long. See
+   * https:
+   * //cloud.google.com/container-registry/do
+   * // cs/pushing-and-pulling#pushing_an_image_to_a_registry
+   * Accepted forms:
+   * * [HOSTNAME]/[PROJECT-ID]/[IMAGE]
+   * * [HOSTNAME]/[PROJECT-ID]/[IMAGE]:[TAG]
+   * The requesting user must have permission to push images the project.
+   * 
+ * + * string output_uri = 1; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = outputUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputUri_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Google Contained Registry URI of the new image, up to 2000
+   * characters long. See
+   * https:
+   * //cloud.google.com/container-registry/do
+   * // cs/pushing-and-pulling#pushing_an_image_to_a_registry
+   * Accepted forms:
+   * * [HOSTNAME]/[PROJECT-ID]/[IMAGE]
+   * * [HOSTNAME]/[PROJECT-ID]/[IMAGE]:[TAG]
+   * The requesting user must have permission to push images the project.
+   * 
+ * + * string output_uri = 1; + */ + public com.google.protobuf.ByteString getOutputUriBytes() { + java.lang.Object ref = outputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getOutputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputUri_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getOutputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputUri_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.GcrDestination)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.GcrDestination other = + (com.google.cloud.automl.v1beta1.GcrDestination) obj; + + if (!getOutputUri().equals(other.getOutputUri())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.GcrDestination parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.GcrDestination parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.GcrDestination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.GcrDestination parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.GcrDestination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.GcrDestination parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.GcrDestination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.GcrDestination parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.GcrDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.GcrDestination parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.GcrDestination parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.GcrDestination parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.GcrDestination prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The GCR location where the image must be pushed to.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.GcrDestination} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.GcrDestination) + com.google.cloud.automl.v1beta1.GcrDestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_GcrDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_GcrDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.GcrDestination.class, + com.google.cloud.automl.v1beta1.GcrDestination.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.GcrDestination.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + outputUri_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_GcrDestination_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.GcrDestination getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.GcrDestination.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.GcrDestination build() { + com.google.cloud.automl.v1beta1.GcrDestination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.GcrDestination buildPartial() { + com.google.cloud.automl.v1beta1.GcrDestination result = + new com.google.cloud.automl.v1beta1.GcrDestination(this); + result.outputUri_ = outputUri_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.GcrDestination) { + return mergeFrom((com.google.cloud.automl.v1beta1.GcrDestination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.GcrDestination other) { + if (other == com.google.cloud.automl.v1beta1.GcrDestination.getDefaultInstance()) return this; + if (!other.getOutputUri().isEmpty()) { + outputUri_ = other.outputUri_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.GcrDestination parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.GcrDestination) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object outputUri_ = ""; + /** + * + * + *
+     * Required. Google Contained Registry URI of the new image, up to 2000
+     * characters long. See
+     * https:
+     * //cloud.google.com/container-registry/do
+     * // cs/pushing-and-pulling#pushing_an_image_to_a_registry
+     * Accepted forms:
+     * * [HOSTNAME]/[PROJECT-ID]/[IMAGE]
+     * * [HOSTNAME]/[PROJECT-ID]/[IMAGE]:[TAG]
+     * The requesting user must have permission to push images the project.
+     * 
+ * + * string output_uri = 1; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = outputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Google Contained Registry URI of the new image, up to 2000
+     * characters long. See
+     * https:
+     * //cloud.google.com/container-registry/do
+     * // cs/pushing-and-pulling#pushing_an_image_to_a_registry
+     * Accepted forms:
+     * * [HOSTNAME]/[PROJECT-ID]/[IMAGE]
+     * * [HOSTNAME]/[PROJECT-ID]/[IMAGE]:[TAG]
+     * The requesting user must have permission to push images the project.
+     * 
+ * + * string output_uri = 1; + */ + public com.google.protobuf.ByteString getOutputUriBytes() { + java.lang.Object ref = outputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Google Contained Registry URI of the new image, up to 2000
+     * characters long. See
+     * https:
+     * //cloud.google.com/container-registry/do
+     * // cs/pushing-and-pulling#pushing_an_image_to_a_registry
+     * Accepted forms:
+     * * [HOSTNAME]/[PROJECT-ID]/[IMAGE]
+     * * [HOSTNAME]/[PROJECT-ID]/[IMAGE]:[TAG]
+     * The requesting user must have permission to push images the project.
+     * 
+ * + * string output_uri = 1; + */ + public Builder setOutputUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outputUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Google Contained Registry URI of the new image, up to 2000
+     * characters long. See
+     * https:
+     * //cloud.google.com/container-registry/do
+     * // cs/pushing-and-pulling#pushing_an_image_to_a_registry
+     * Accepted forms:
+     * * [HOSTNAME]/[PROJECT-ID]/[IMAGE]
+     * * [HOSTNAME]/[PROJECT-ID]/[IMAGE]:[TAG]
+     * The requesting user must have permission to push images the project.
+     * 
+ * + * string output_uri = 1; + */ + public Builder clearOutputUri() { + + outputUri_ = getDefaultInstance().getOutputUri(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Google Contained Registry URI of the new image, up to 2000
+     * characters long. See
+     * https:
+     * //cloud.google.com/container-registry/do
+     * // cs/pushing-and-pulling#pushing_an_image_to_a_registry
+     * Accepted forms:
+     * * [HOSTNAME]/[PROJECT-ID]/[IMAGE]
+     * * [HOSTNAME]/[PROJECT-ID]/[IMAGE]:[TAG]
+     * The requesting user must have permission to push images the project.
+     * 
+ * + * string output_uri = 1; + */ + public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + outputUri_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.GcrDestination) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GcrDestination) + private static final com.google.cloud.automl.v1beta1.GcrDestination DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.GcrDestination(); + } + + public static com.google.cloud.automl.v1beta1.GcrDestination getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcrDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcrDestination(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.GcrDestination getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestinationOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestinationOrBuilder.java new file mode 100644 index 000000000000..165dd321000f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcrDestinationOrBuilder.java @@ -0,0 +1,47 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/io.proto + +package com.google.cloud.automl.v1beta1; + +public interface GcrDestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GcrDestination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Google Contained Registry URI of the new image, up to 2000
+   * characters long. See
+   * https:
+   * //cloud.google.com/container-registry/do
+   * // cs/pushing-and-pulling#pushing_an_image_to_a_registry
+   * Accepted forms:
+   * * [HOSTNAME]/[PROJECT-ID]/[IMAGE]
+   * * [HOSTNAME]/[PROJECT-ID]/[IMAGE]:[TAG]
+   * The requesting user must have permission to push images the project.
+   * 
+ * + * string output_uri = 1; + */ + java.lang.String getOutputUri(); + /** + * + * + *
+   * Required. Google Contained Registry URI of the new image, up to 2000
+   * characters long. See
+   * https:
+   * //cloud.google.com/container-registry/do
+   * // cs/pushing-and-pulling#pushing_an_image_to_a_registry
+   * Accepted forms:
+   * * [HOSTNAME]/[PROJECT-ID]/[IMAGE]
+   * * [HOSTNAME]/[PROJECT-ID]/[IMAGE]:[TAG]
+   * The requesting user must have permission to push images the project.
+   * 
+ * + * string output_uri = 1; + */ + com.google.protobuf.ByteString getOutputUriBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestination.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestination.java index 3a399ea2d2db..6682db40c50a 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestination.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsDestination.java @@ -7,7 +7,7 @@ * * *
- * The GCS location where the output must be written to
+ * The Google Cloud Storage location where the output is to be written to.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GcsDestination} @@ -307,7 +307,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The GCS location where the output must be written to
+   * The Google Cloud Storage location where the output is to be written to.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GcsDestination} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSource.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSource.java index 398f6a77895e..9a30dcc33c15 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSource.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSource.java @@ -7,7 +7,7 @@ * * *
- * The GCS location for the input content.
+ * The Google Cloud Storage location for the input content.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GcsSource} @@ -105,7 +105,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
-   * * Full object path: gs://bucket/directory/object.csv
+   * * Full object path, e.g. gs://bucket/directory/object.csv
    * 
* * repeated string input_uris = 1; @@ -119,7 +119,7 @@ public com.google.protobuf.ProtocolStringList getInputUrisList() { *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
-   * * Full object path: gs://bucket/directory/object.csv
+   * * Full object path, e.g. gs://bucket/directory/object.csv
    * 
* * repeated string input_uris = 1; @@ -133,7 +133,7 @@ public int getInputUrisCount() { *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
-   * * Full object path: gs://bucket/directory/object.csv
+   * * Full object path, e.g. gs://bucket/directory/object.csv
    * 
* * repeated string input_uris = 1; @@ -147,7 +147,7 @@ public java.lang.String getInputUris(int index) { *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
-   * * Full object path: gs://bucket/directory/object.csv
+   * * Full object path, e.g. gs://bucket/directory/object.csv
    * 
* * repeated string input_uris = 1; @@ -326,7 +326,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The GCS location for the input content.
+   * The Google Cloud Storage location for the input content.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GcsSource} @@ -507,7 +507,7 @@ private void ensureInputUrisIsMutable() { *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
-     * * Full object path: gs://bucket/directory/object.csv
+     * * Full object path, e.g. gs://bucket/directory/object.csv
      * 
* * repeated string input_uris = 1; @@ -521,7 +521,7 @@ public com.google.protobuf.ProtocolStringList getInputUrisList() { *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
-     * * Full object path: gs://bucket/directory/object.csv
+     * * Full object path, e.g. gs://bucket/directory/object.csv
      * 
* * repeated string input_uris = 1; @@ -535,7 +535,7 @@ public int getInputUrisCount() { *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
-     * * Full object path: gs://bucket/directory/object.csv
+     * * Full object path, e.g. gs://bucket/directory/object.csv
      * 
* * repeated string input_uris = 1; @@ -549,7 +549,7 @@ public java.lang.String getInputUris(int index) { *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
-     * * Full object path: gs://bucket/directory/object.csv
+     * * Full object path, e.g. gs://bucket/directory/object.csv
      * 
* * repeated string input_uris = 1; @@ -563,7 +563,7 @@ public com.google.protobuf.ByteString getInputUrisBytes(int index) { *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
-     * * Full object path: gs://bucket/directory/object.csv
+     * * Full object path, e.g. gs://bucket/directory/object.csv
      * 
* * repeated string input_uris = 1; @@ -583,7 +583,7 @@ public Builder setInputUris(int index, java.lang.String value) { *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
-     * * Full object path: gs://bucket/directory/object.csv
+     * * Full object path, e.g. gs://bucket/directory/object.csv
      * 
* * repeated string input_uris = 1; @@ -603,7 +603,7 @@ public Builder addInputUris(java.lang.String value) { *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
-     * * Full object path: gs://bucket/directory/object.csv
+     * * Full object path, e.g. gs://bucket/directory/object.csv
      * 
* * repeated string input_uris = 1; @@ -620,7 +620,7 @@ public Builder addAllInputUris(java.lang.Iterable values) { *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
-     * * Full object path: gs://bucket/directory/object.csv
+     * * Full object path, e.g. gs://bucket/directory/object.csv
      * 
* * repeated string input_uris = 1; @@ -637,7 +637,7 @@ public Builder clearInputUris() { *
      * Required. Google Cloud Storage URIs to input files, up to 2000 characters
      * long. Accepted forms:
-     * * Full object path: gs://bucket/directory/object.csv
+     * * Full object path, e.g. gs://bucket/directory/object.csv
      * 
* * repeated string input_uris = 1; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSourceOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSourceOrBuilder.java index 2ab09b489000..a5d2642262ef 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSourceOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GcsSourceOrBuilder.java @@ -14,7 +14,7 @@ public interface GcsSourceOrBuilder *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
-   * * Full object path: gs://bucket/directory/object.csv
+   * * Full object path, e.g. gs://bucket/directory/object.csv
    * 
* * repeated string input_uris = 1; @@ -26,7 +26,7 @@ public interface GcsSourceOrBuilder *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
-   * * Full object path: gs://bucket/directory/object.csv
+   * * Full object path, e.g. gs://bucket/directory/object.csv
    * 
* * repeated string input_uris = 1; @@ -38,7 +38,7 @@ public interface GcsSourceOrBuilder *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
-   * * Full object path: gs://bucket/directory/object.csv
+   * * Full object path, e.g. gs://bucket/directory/object.csv
    * 
* * repeated string input_uris = 1; @@ -50,7 +50,7 @@ public interface GcsSourceOrBuilder *
    * Required. Google Cloud Storage URIs to input files, up to 2000 characters
    * long. Accepted forms:
-   * * Full object path: gs://bucket/directory/object.csv
+   * * Full object path, e.g. gs://bucket/directory/object.csv
    * 
* * repeated string input_uris = 1; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Geometry.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Geometry.java new file mode 100644 index 000000000000..f6f526f37796 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Geometry.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/geometry.proto + +package com.google.cloud.automl.v1beta1; + +public final class Geometry { + private Geometry() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_NormalizedVertex_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_NormalizedVertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_BoundingPoly_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_BoundingPoly_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n*google/cloud/automl/v1beta1/geometry.p" + + "roto\022\033google.cloud.automl.v1beta1\032\034googl" + + "e/api/annotations.proto\"(\n\020NormalizedVer" + + "tex\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"Z\n\014BoundingPol" + + "y\022J\n\023normalized_vertices\030\002 \003(\0132-.google." + + "cloud.automl.v1beta1.NormalizedVertexB\204\001" + + "\n\037com.google.cloud.automl.v1beta1P\001ZAgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/automl/v1beta1;automl\312\002\033Google\\Cloud\\Au" + + "toMl\\V1beta1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_automl_v1beta1_NormalizedVertex_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_NormalizedVertex_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_NormalizedVertex_descriptor, + new java.lang.String[] { + "X", "Y", + }); + internal_static_google_cloud_automl_v1beta1_BoundingPoly_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_BoundingPoly_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_BoundingPoly_descriptor, + new java.lang.String[] { + "NormalizedVertices", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequest.java new file mode 100644 index 000000000000..56e200df0cde --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequest.java @@ -0,0 +1,599 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Request message for [AutoMl.GetAnnotationSpec][google.cloud.automl.v1beta1.AutoMl.GetAnnotationSpec].
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.GetAnnotationSpecRequest} + */ +public final class GetAnnotationSpecRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.GetAnnotationSpecRequest) + GetAnnotationSpecRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetAnnotationSpecRequest.newBuilder() to construct. + private GetAnnotationSpecRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetAnnotationSpecRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetAnnotationSpecRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetAnnotationSpecRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetAnnotationSpecRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest.class, + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The resource name of the annotation spec to retrieve.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The resource name of the annotation spec to retrieve.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest other = + (com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [AutoMl.GetAnnotationSpec][google.cloud.automl.v1beta1.AutoMl.GetAnnotationSpec].
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.GetAnnotationSpecRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.GetAnnotationSpecRequest) + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetAnnotationSpecRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetAnnotationSpecRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest.class, + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetAnnotationSpecRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest build() { + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest buildPartial() { + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest result = + new com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest) { + return mergeFrom((com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest other) { + if (other == com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The resource name of the annotation spec to retrieve.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name of the annotation spec to retrieve.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource name of the annotation spec to retrieve.
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the annotation spec to retrieve.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the annotation spec to retrieve.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.GetAnnotationSpecRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GetAnnotationSpecRequest) + private static final com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest(); + } + + public static com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAnnotationSpecRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAnnotationSpecRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequestOrBuilder.java new file mode 100644 index 000000000000..f6dabd2f59ee --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetAnnotationSpecRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface GetAnnotationSpecRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GetAnnotationSpecRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name of the annotation spec to retrieve.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * The resource name of the annotation spec to retrieve.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequest.java new file mode 100644 index 000000000000..e787ad74b939 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequest.java @@ -0,0 +1,855 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Request message for [AutoMl.GetColumnSpec][google.cloud.automl.v1beta1.AutoMl.GetColumnSpec].
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.GetColumnSpecRequest} + */ +public final class GetColumnSpecRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.GetColumnSpecRequest) + GetColumnSpecRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetColumnSpecRequest.newBuilder() to construct. + private GetColumnSpecRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetColumnSpecRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetColumnSpecRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); + } + fieldMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetColumnSpecRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetColumnSpecRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.GetColumnSpecRequest.class, + com.google.cloud.automl.v1beta1.GetColumnSpecRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The resource name of the column spec to retrieve.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The resource name of the column spec to retrieve.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIELD_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask fieldMask_; + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public boolean hasFieldMask() { + return fieldMask_ != null; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public com.google.protobuf.FieldMask getFieldMask() { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + return getFieldMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (fieldMask_ != null) { + output.writeMessage(2, getFieldMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (fieldMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFieldMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.GetColumnSpecRequest)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.GetColumnSpecRequest other = + (com.google.cloud.automl.v1beta1.GetColumnSpecRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasFieldMask() != other.hasFieldMask()) return false; + if (hasFieldMask()) { + if (!getFieldMask().equals(other.getFieldMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasFieldMask()) { + hash = (37 * hash) + FIELD_MASK_FIELD_NUMBER; + hash = (53 * hash) + getFieldMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.GetColumnSpecRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.GetColumnSpecRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.GetColumnSpecRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.GetColumnSpecRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.GetColumnSpecRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.GetColumnSpecRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.GetColumnSpecRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.GetColumnSpecRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.GetColumnSpecRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.GetColumnSpecRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.GetColumnSpecRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.GetColumnSpecRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.GetColumnSpecRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [AutoMl.GetColumnSpec][google.cloud.automl.v1beta1.AutoMl.GetColumnSpec].
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.GetColumnSpecRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.GetColumnSpecRequest) + com.google.cloud.automl.v1beta1.GetColumnSpecRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetColumnSpecRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetColumnSpecRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.GetColumnSpecRequest.class, + com.google.cloud.automl.v1beta1.GetColumnSpecRequest.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.GetColumnSpecRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (fieldMaskBuilder_ == null) { + fieldMask_ = null; + } else { + fieldMask_ = null; + fieldMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetColumnSpecRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.GetColumnSpecRequest getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.GetColumnSpecRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.GetColumnSpecRequest build() { + com.google.cloud.automl.v1beta1.GetColumnSpecRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.GetColumnSpecRequest buildPartial() { + com.google.cloud.automl.v1beta1.GetColumnSpecRequest result = + new com.google.cloud.automl.v1beta1.GetColumnSpecRequest(this); + result.name_ = name_; + if (fieldMaskBuilder_ == null) { + result.fieldMask_ = fieldMask_; + } else { + result.fieldMask_ = fieldMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.GetColumnSpecRequest) { + return mergeFrom((com.google.cloud.automl.v1beta1.GetColumnSpecRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.GetColumnSpecRequest other) { + if (other == com.google.cloud.automl.v1beta1.GetColumnSpecRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasFieldMask()) { + mergeFieldMask(other.getFieldMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.GetColumnSpecRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.GetColumnSpecRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The resource name of the column spec to retrieve.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name of the column spec to retrieve.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource name of the column spec to retrieve.
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the column spec to retrieve.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the column spec to retrieve.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask fieldMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + fieldMaskBuilder_; + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public boolean hasFieldMask() { + return fieldMaskBuilder_ != null || fieldMask_ != null; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public com.google.protobuf.FieldMask getFieldMask() { + if (fieldMaskBuilder_ == null) { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } else { + return fieldMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fieldMask_ = value; + onChanged(); + } else { + fieldMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (fieldMaskBuilder_ == null) { + fieldMask_ = builderForValue.build(); + onChanged(); + } else { + fieldMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (fieldMask_ != null) { + fieldMask_ = + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + } else { + fieldMask_ = value; + } + onChanged(); + } else { + fieldMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public Builder clearFieldMask() { + if (fieldMaskBuilder_ == null) { + fieldMask_ = null; + onChanged(); + } else { + fieldMask_ = null; + fieldMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { + + onChanged(); + return getFieldMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + if (fieldMaskBuilder_ != null) { + return fieldMaskBuilder_.getMessageOrBuilder(); + } else { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getFieldMaskFieldBuilder() { + if (fieldMaskBuilder_ == null) { + fieldMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getFieldMask(), getParentForChildren(), isClean()); + fieldMask_ = null; + } + return fieldMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.GetColumnSpecRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GetColumnSpecRequest) + private static final com.google.cloud.automl.v1beta1.GetColumnSpecRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.GetColumnSpecRequest(); + } + + public static com.google.cloud.automl.v1beta1.GetColumnSpecRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetColumnSpecRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetColumnSpecRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.GetColumnSpecRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequestOrBuilder.java new file mode 100644 index 000000000000..160579ea7b41 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetColumnSpecRequestOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface GetColumnSpecRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GetColumnSpecRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name of the column spec to retrieve.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * The resource name of the column spec to retrieve.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + boolean hasFieldMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + com.google.protobuf.FieldMask getFieldMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequest.java index 2fcb73174729..88bc93b0df9f 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetDatasetRequest.java @@ -7,8 +7,7 @@ * * *
- * Request message for
- * [AutoMl.GetDataset][google.cloud.automl.v1beta1.AutoMl.GetDataset].
+ * Request message for [AutoMl.GetDataset][google.cloud.automl.v1beta1.AutoMl.GetDataset].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GetDatasetRequest} @@ -298,8 +297,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for
-   * [AutoMl.GetDataset][google.cloud.automl.v1beta1.AutoMl.GetDataset].
+   * Request message for [AutoMl.GetDataset][google.cloud.automl.v1beta1.AutoMl.GetDataset].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GetDatasetRequest} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequest.java index da5bb85e5c1e..f75d8bfe7504 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelEvaluationRequest.java @@ -7,8 +7,7 @@ * * *
- * Request message for
- * [AutoMl.GetModelEvaluation][google.cloud.automl.v1beta1.AutoMl.GetModelEvaluation].
+ * Request message for [AutoMl.GetModelEvaluation][google.cloud.automl.v1beta1.AutoMl.GetModelEvaluation].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GetModelEvaluationRequest} @@ -299,8 +298,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for
-   * [AutoMl.GetModelEvaluation][google.cloud.automl.v1beta1.AutoMl.GetModelEvaluation].
+   * Request message for [AutoMl.GetModelEvaluation][google.cloud.automl.v1beta1.AutoMl.GetModelEvaluation].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GetModelEvaluationRequest} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequest.java index 139e3b4f98b5..c050a856bd42 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetModelRequest.java @@ -7,8 +7,7 @@ * * *
- * Request message for
- * [AutoMl.GetModel][google.cloud.automl.v1beta1.AutoMl.GetModel].
+ * Request message for [AutoMl.GetModel][google.cloud.automl.v1beta1.AutoMl.GetModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GetModelRequest} @@ -298,8 +297,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for
-   * [AutoMl.GetModel][google.cloud.automl.v1beta1.AutoMl.GetModel].
+   * Request message for [AutoMl.GetModel][google.cloud.automl.v1beta1.AutoMl.GetModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.GetModelRequest} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequest.java new file mode 100644 index 000000000000..175355443c7b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequest.java @@ -0,0 +1,855 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Request message for [AutoMl.GetTableSpec][google.cloud.automl.v1beta1.AutoMl.GetTableSpec].
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.GetTableSpecRequest} + */ +public final class GetTableSpecRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.GetTableSpecRequest) + GetTableSpecRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTableSpecRequest.newBuilder() to construct. + private GetTableSpecRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetTableSpecRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetTableSpecRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); + } + fieldMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetTableSpecRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetTableSpecRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.GetTableSpecRequest.class, + com.google.cloud.automl.v1beta1.GetTableSpecRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The resource name of the table spec to retrieve.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The resource name of the table spec to retrieve.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIELD_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask fieldMask_; + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public boolean hasFieldMask() { + return fieldMask_ != null; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public com.google.protobuf.FieldMask getFieldMask() { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + return getFieldMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (fieldMask_ != null) { + output.writeMessage(2, getFieldMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (fieldMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFieldMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.GetTableSpecRequest)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.GetTableSpecRequest other = + (com.google.cloud.automl.v1beta1.GetTableSpecRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasFieldMask() != other.hasFieldMask()) return false; + if (hasFieldMask()) { + if (!getFieldMask().equals(other.getFieldMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasFieldMask()) { + hash = (37 * hash) + FIELD_MASK_FIELD_NUMBER; + hash = (53 * hash) + getFieldMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.GetTableSpecRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.GetTableSpecRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.GetTableSpecRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.GetTableSpecRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.GetTableSpecRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.GetTableSpecRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.GetTableSpecRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.GetTableSpecRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.GetTableSpecRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.GetTableSpecRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.GetTableSpecRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.GetTableSpecRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.GetTableSpecRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [AutoMl.GetTableSpec][google.cloud.automl.v1beta1.AutoMl.GetTableSpec].
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.GetTableSpecRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.GetTableSpecRequest) + com.google.cloud.automl.v1beta1.GetTableSpecRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetTableSpecRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetTableSpecRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.GetTableSpecRequest.class, + com.google.cloud.automl.v1beta1.GetTableSpecRequest.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.GetTableSpecRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (fieldMaskBuilder_ == null) { + fieldMask_ = null; + } else { + fieldMask_ = null; + fieldMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_GetTableSpecRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.GetTableSpecRequest getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.GetTableSpecRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.GetTableSpecRequest build() { + com.google.cloud.automl.v1beta1.GetTableSpecRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.GetTableSpecRequest buildPartial() { + com.google.cloud.automl.v1beta1.GetTableSpecRequest result = + new com.google.cloud.automl.v1beta1.GetTableSpecRequest(this); + result.name_ = name_; + if (fieldMaskBuilder_ == null) { + result.fieldMask_ = fieldMask_; + } else { + result.fieldMask_ = fieldMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.GetTableSpecRequest) { + return mergeFrom((com.google.cloud.automl.v1beta1.GetTableSpecRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.GetTableSpecRequest other) { + if (other == com.google.cloud.automl.v1beta1.GetTableSpecRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasFieldMask()) { + mergeFieldMask(other.getFieldMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.GetTableSpecRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.GetTableSpecRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The resource name of the table spec to retrieve.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name of the table spec to retrieve.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource name of the table spec to retrieve.
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the table spec to retrieve.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the table spec to retrieve.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask fieldMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + fieldMaskBuilder_; + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public boolean hasFieldMask() { + return fieldMaskBuilder_ != null || fieldMask_ != null; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public com.google.protobuf.FieldMask getFieldMask() { + if (fieldMaskBuilder_ == null) { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } else { + return fieldMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fieldMask_ = value; + onChanged(); + } else { + fieldMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (fieldMaskBuilder_ == null) { + fieldMask_ = builderForValue.build(); + onChanged(); + } else { + fieldMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (fieldMask_ != null) { + fieldMask_ = + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + } else { + fieldMask_ = value; + } + onChanged(); + } else { + fieldMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public Builder clearFieldMask() { + if (fieldMaskBuilder_ == null) { + fieldMask_ = null; + onChanged(); + } else { + fieldMask_ = null; + fieldMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { + + onChanged(); + return getFieldMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + if (fieldMaskBuilder_ != null) { + return fieldMaskBuilder_.getMessageOrBuilder(); + } else { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getFieldMaskFieldBuilder() { + if (fieldMaskBuilder_ == null) { + fieldMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getFieldMask(), getParentForChildren(), isClean()); + fieldMask_ = null; + } + return fieldMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.GetTableSpecRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.GetTableSpecRequest) + private static final com.google.cloud.automl.v1beta1.GetTableSpecRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.GetTableSpecRequest(); + } + + public static com.google.cloud.automl.v1beta1.GetTableSpecRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTableSpecRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetTableSpecRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.GetTableSpecRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequestOrBuilder.java new file mode 100644 index 000000000000..c672159c9c82 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/GetTableSpecRequestOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface GetTableSpecRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.GetTableSpecRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name of the table spec to retrieve.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * The resource name of the table spec to retrieve.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + boolean hasFieldMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + com.google.protobuf.FieldMask getFieldMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Image.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Image.java index 82534939f561..b1bf12598a30 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Image.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Image.java @@ -8,6 +8,7 @@ * *
  * A representation of an image.
+ * Only images up to 30MB in size are supported.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.Image} @@ -460,6 +461,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * A representation of an image.
+   * Only images up to 30MB in size are supported.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.Image} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadata.java index 04e2e43a9b59..5489618c57a3 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadata.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadata.java @@ -98,8 +98,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required.
-   * Type of the classification problem.
+   * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; @@ -111,8 +110,7 @@ public int getClassificationTypeValue() { * * *
-   * Required.
-   * Type of the classification problem.
+   * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; @@ -465,8 +463,7 @@ public Builder mergeFrom( * * *
-     * Required.
-     * Type of the classification problem.
+     * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; @@ -478,8 +475,7 @@ public int getClassificationTypeValue() { * * *
-     * Required.
-     * Type of the classification problem.
+     * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; @@ -493,8 +489,7 @@ public Builder setClassificationTypeValue(int value) { * * *
-     * Required.
-     * Type of the classification problem.
+     * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; @@ -513,8 +508,7 @@ public Builder setClassificationTypeValue(int value) { * * *
-     * Required.
-     * Type of the classification problem.
+     * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; @@ -533,8 +527,7 @@ public Builder setClassificationType( * * *
-     * Required.
-     * Type of the classification problem.
+     * Required. Type of the classification problem.
      * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadataOrBuilder.java index 25b0b4ffeefb..8644d375c11f 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadataOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationDatasetMetadataOrBuilder.java @@ -12,8 +12,7 @@ public interface ImageClassificationDatasetMetadataOrBuilder * * *
-   * Required.
-   * Type of the classification problem.
+   * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; @@ -23,8 +22,7 @@ public interface ImageClassificationDatasetMetadataOrBuilder * * *
-   * Required.
-   * Type of the classification problem.
+   * Required. Type of the classification problem.
    * 
* * .google.cloud.automl.v1beta1.ClassificationType classification_type = 1; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadata.java index 8d9de6fcdf59..48db692ce7fd 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadata.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadata.java @@ -26,6 +26,7 @@ private ImageClassificationModelMetadata( private ImageClassificationModelMetadata() { baseModelId_ = ""; stopReason_ = ""; + modelType_ = ""; } @java.lang.Override @@ -76,6 +77,13 @@ private ImageClassificationModelMetadata( stopReason_ = s; break; } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + modelType_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -118,8 +126,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Optional. The ID of the `base` model. If it is specified, the new model
    * will be created based on the `base` model. Otherwise, the new model will be
-   * created from scratch. The `base` model is expected to be in the same
-   * `project` and `location` as the new model to create.
+   * created from scratch. The `base` model must be in the same
+   * `project` and `location` as the new model to create, and have the same
+   * `model_type`.
    * 
* * string base_model_id = 1; @@ -141,8 +150,9 @@ public java.lang.String getBaseModelId() { *
    * Optional. The ID of the `base` model. If it is specified, the new model
    * will be created based on the `base` model. Otherwise, the new model will be
-   * created from scratch. The `base` model is expected to be in the same
-   * `project` and `location` as the new model to create.
+   * created from scratch. The `base` model must be in the same
+   * `project` and `location` as the new model to create, and have the same
+   * `model_type`.
    * 
* * string base_model_id = 1; @@ -165,8 +175,8 @@ public com.google.protobuf.ByteString getBaseModelIdBytes() { * * *
-   * Required. The train budget of creating this model. The actual
-   * `train_cost` will be equal or less than this value.
+   * Required. The train budget of creating this model, expressed in hours. The
+   * actual `train_cost` will be equal or less than this value.
    * 
* * int64 train_budget = 2; @@ -181,9 +191,9 @@ public long getTrainBudget() { * * *
-   * Output only. The actual train cost of creating this model. If this
-   * model is created from a `base` model, the train cost used to create the
-   * `base` model are not included.
+   * Output only. The actual train cost of creating this model, expressed in
+   * hours. If this model is created from a `base` model, the train cost used
+   * to create the `base` model are not included.
    * 
* * int64 train_cost = 3; @@ -199,7 +209,7 @@ public long getTrainCost() { * *
    * Output only. The reason that this create model operation stopped,
-   * e.g. BUDGET_REACHED, CONVERGED.
+   * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; @@ -220,7 +230,7 @@ public java.lang.String getStopReason() { * *
    * Output only. The reason that this create model operation stopped,
-   * e.g. BUDGET_REACHED, CONVERGED.
+   * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; @@ -237,6 +247,113 @@ public com.google.protobuf.ByteString getStopReasonBytes() { } } + public static final int MODEL_TYPE_FIELD_NUMBER = 7; + private volatile java.lang.Object modelType_; + /** + * + * + *
+   * Optional. Type of the model. The available values are:
+   * *   `cloud` - Model to be used via prediction calls to AutoML API.
+   *               This is the default value.
+   * *   `mobile-low-latency-1` - A model that, in addition to providing
+   *               prediction via AutoML API, can also be exported (see
+   *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+   *               with TensorFlow afterwards. Expected to have low latency, but
+   *               may have lower prediction quality than other models.
+   * *   `mobile-versatile-1` - A model that, in addition to providing
+   *               prediction via AutoML API, can also be exported (see
+   *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+   *               with TensorFlow afterwards.
+   * *   `mobile-high-accuracy-1` - A model that, in addition to providing
+   *               prediction via AutoML API, can also be exported (see
+   *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+   *               with TensorFlow afterwards.  Expected to have a higher
+   *               latency, but should also have a higher prediction quality
+   *               than other models.
+   * *   `mobile-core-ml-low-latency-1` - A model that, in addition to providing
+   *               prediction via AutoML API, can also be exported (see
+   *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with Core
+   *               ML afterwards. Expected to have low latency, but may have
+   *               lower prediction quality than other models.
+   * *   `mobile-core-ml-versatile-1` - A model that, in addition to providing
+   *               prediction via AutoML API, can also be exported (see
+   *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with Core
+   *               ML afterwards.
+   * *   `mobile-core-ml-high-accuracy-1` - A model that, in addition to
+   *               providing prediction via AutoML API, can also be exported
+   *               (see [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with
+   *               Core ML afterwards.  Expected to have a higher latency, but
+   *               should also have a higher prediction quality than other
+   *               models.
+   * 
+ * + * string model_type = 7; + */ + public java.lang.String getModelType() { + java.lang.Object ref = modelType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelType_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Type of the model. The available values are:
+   * *   `cloud` - Model to be used via prediction calls to AutoML API.
+   *               This is the default value.
+   * *   `mobile-low-latency-1` - A model that, in addition to providing
+   *               prediction via AutoML API, can also be exported (see
+   *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+   *               with TensorFlow afterwards. Expected to have low latency, but
+   *               may have lower prediction quality than other models.
+   * *   `mobile-versatile-1` - A model that, in addition to providing
+   *               prediction via AutoML API, can also be exported (see
+   *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+   *               with TensorFlow afterwards.
+   * *   `mobile-high-accuracy-1` - A model that, in addition to providing
+   *               prediction via AutoML API, can also be exported (see
+   *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+   *               with TensorFlow afterwards.  Expected to have a higher
+   *               latency, but should also have a higher prediction quality
+   *               than other models.
+   * *   `mobile-core-ml-low-latency-1` - A model that, in addition to providing
+   *               prediction via AutoML API, can also be exported (see
+   *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with Core
+   *               ML afterwards. Expected to have low latency, but may have
+   *               lower prediction quality than other models.
+   * *   `mobile-core-ml-versatile-1` - A model that, in addition to providing
+   *               prediction via AutoML API, can also be exported (see
+   *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with Core
+   *               ML afterwards.
+   * *   `mobile-core-ml-high-accuracy-1` - A model that, in addition to
+   *               providing prediction via AutoML API, can also be exported
+   *               (see [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with
+   *               Core ML afterwards.  Expected to have a higher latency, but
+   *               should also have a higher prediction quality than other
+   *               models.
+   * 
+ * + * string model_type = 7; + */ + public com.google.protobuf.ByteString getModelTypeBytes() { + java.lang.Object ref = modelType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -263,6 +380,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getStopReasonBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, stopReason_); } + if (!getModelTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, modelType_); + } unknownFields.writeTo(output); } @@ -284,6 +404,9 @@ public int getSerializedSize() { if (!getStopReasonBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, stopReason_); } + if (!getModelTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, modelType_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -304,6 +427,7 @@ public boolean equals(final java.lang.Object obj) { if (getTrainBudget() != other.getTrainBudget()) return false; if (getTrainCost() != other.getTrainCost()) return false; if (!getStopReason().equals(other.getStopReason())) return false; + if (!getModelType().equals(other.getModelType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -323,6 +447,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrainCost()); hash = (37 * hash) + STOP_REASON_FIELD_NUMBER; hash = (53 * hash) + getStopReason().hashCode(); + hash = (37 * hash) + MODEL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getModelType().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -477,6 +603,8 @@ public Builder clear() { stopReason_ = ""; + modelType_ = ""; + return this; } @@ -509,6 +637,7 @@ public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata buildPar result.trainBudget_ = trainBudget_; result.trainCost_ = trainCost_; result.stopReason_ = stopReason_; + result.modelType_ = modelType_; onBuilt(); return result; } @@ -575,6 +704,10 @@ public Builder mergeFrom( stopReason_ = other.stopReason_; onChanged(); } + if (!other.getModelType().isEmpty()) { + modelType_ = other.modelType_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -613,8 +746,9 @@ public Builder mergeFrom( *
      * Optional. The ID of the `base` model. If it is specified, the new model
      * will be created based on the `base` model. Otherwise, the new model will be
-     * created from scratch. The `base` model is expected to be in the same
-     * `project` and `location` as the new model to create.
+     * created from scratch. The `base` model must be in the same
+     * `project` and `location` as the new model to create, and have the same
+     * `model_type`.
      * 
* * string base_model_id = 1; @@ -636,8 +770,9 @@ public java.lang.String getBaseModelId() { *
      * Optional. The ID of the `base` model. If it is specified, the new model
      * will be created based on the `base` model. Otherwise, the new model will be
-     * created from scratch. The `base` model is expected to be in the same
-     * `project` and `location` as the new model to create.
+     * created from scratch. The `base` model must be in the same
+     * `project` and `location` as the new model to create, and have the same
+     * `model_type`.
      * 
* * string base_model_id = 1; @@ -659,8 +794,9 @@ public com.google.protobuf.ByteString getBaseModelIdBytes() { *
      * Optional. The ID of the `base` model. If it is specified, the new model
      * will be created based on the `base` model. Otherwise, the new model will be
-     * created from scratch. The `base` model is expected to be in the same
-     * `project` and `location` as the new model to create.
+     * created from scratch. The `base` model must be in the same
+     * `project` and `location` as the new model to create, and have the same
+     * `model_type`.
      * 
* * string base_model_id = 1; @@ -680,8 +816,9 @@ public Builder setBaseModelId(java.lang.String value) { *
      * Optional. The ID of the `base` model. If it is specified, the new model
      * will be created based on the `base` model. Otherwise, the new model will be
-     * created from scratch. The `base` model is expected to be in the same
-     * `project` and `location` as the new model to create.
+     * created from scratch. The `base` model must be in the same
+     * `project` and `location` as the new model to create, and have the same
+     * `model_type`.
      * 
* * string base_model_id = 1; @@ -698,8 +835,9 @@ public Builder clearBaseModelId() { *
      * Optional. The ID of the `base` model. If it is specified, the new model
      * will be created based on the `base` model. Otherwise, the new model will be
-     * created from scratch. The `base` model is expected to be in the same
-     * `project` and `location` as the new model to create.
+     * created from scratch. The `base` model must be in the same
+     * `project` and `location` as the new model to create, and have the same
+     * `model_type`.
      * 
* * string base_model_id = 1; @@ -720,8 +858,8 @@ public Builder setBaseModelIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The train budget of creating this model. The actual
-     * `train_cost` will be equal or less than this value.
+     * Required. The train budget of creating this model, expressed in hours. The
+     * actual `train_cost` will be equal or less than this value.
      * 
* * int64 train_budget = 2; @@ -733,8 +871,8 @@ public long getTrainBudget() { * * *
-     * Required. The train budget of creating this model. The actual
-     * `train_cost` will be equal or less than this value.
+     * Required. The train budget of creating this model, expressed in hours. The
+     * actual `train_cost` will be equal or less than this value.
      * 
* * int64 train_budget = 2; @@ -749,8 +887,8 @@ public Builder setTrainBudget(long value) { * * *
-     * Required. The train budget of creating this model. The actual
-     * `train_cost` will be equal or less than this value.
+     * Required. The train budget of creating this model, expressed in hours. The
+     * actual `train_cost` will be equal or less than this value.
      * 
* * int64 train_budget = 2; @@ -767,9 +905,9 @@ public Builder clearTrainBudget() { * * *
-     * Output only. The actual train cost of creating this model. If this
-     * model is created from a `base` model, the train cost used to create the
-     * `base` model are not included.
+     * Output only. The actual train cost of creating this model, expressed in
+     * hours. If this model is created from a `base` model, the train cost used
+     * to create the `base` model are not included.
      * 
* * int64 train_cost = 3; @@ -781,9 +919,9 @@ public long getTrainCost() { * * *
-     * Output only. The actual train cost of creating this model. If this
-     * model is created from a `base` model, the train cost used to create the
-     * `base` model are not included.
+     * Output only. The actual train cost of creating this model, expressed in
+     * hours. If this model is created from a `base` model, the train cost used
+     * to create the `base` model are not included.
      * 
* * int64 train_cost = 3; @@ -798,9 +936,9 @@ public Builder setTrainCost(long value) { * * *
-     * Output only. The actual train cost of creating this model. If this
-     * model is created from a `base` model, the train cost used to create the
-     * `base` model are not included.
+     * Output only. The actual train cost of creating this model, expressed in
+     * hours. If this model is created from a `base` model, the train cost used
+     * to create the `base` model are not included.
      * 
* * int64 train_cost = 3; @@ -818,7 +956,7 @@ public Builder clearTrainCost() { * *
      * Output only. The reason that this create model operation stopped,
-     * e.g. BUDGET_REACHED, CONVERGED.
+     * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; @@ -839,7 +977,7 @@ public java.lang.String getStopReason() { * *
      * Output only. The reason that this create model operation stopped,
-     * e.g. BUDGET_REACHED, CONVERGED.
+     * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; @@ -860,7 +998,7 @@ public com.google.protobuf.ByteString getStopReasonBytes() { * *
      * Output only. The reason that this create model operation stopped,
-     * e.g. BUDGET_REACHED, CONVERGED.
+     * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; @@ -879,7 +1017,7 @@ public Builder setStopReason(java.lang.String value) { * *
      * Output only. The reason that this create model operation stopped,
-     * e.g. BUDGET_REACHED, CONVERGED.
+     * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; @@ -895,7 +1033,7 @@ public Builder clearStopReason() { * *
      * Output only. The reason that this create model operation stopped,
-     * e.g. BUDGET_REACHED, CONVERGED.
+     * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
      * 
* * string stop_reason = 5; @@ -911,6 +1049,260 @@ public Builder setStopReasonBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object modelType_ = ""; + /** + * + * + *
+     * Optional. Type of the model. The available values are:
+     * *   `cloud` - Model to be used via prediction calls to AutoML API.
+     *               This is the default value.
+     * *   `mobile-low-latency-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+     *               with TensorFlow afterwards. Expected to have low latency, but
+     *               may have lower prediction quality than other models.
+     * *   `mobile-versatile-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+     *               with TensorFlow afterwards.
+     * *   `mobile-high-accuracy-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+     *               with TensorFlow afterwards.  Expected to have a higher
+     *               latency, but should also have a higher prediction quality
+     *               than other models.
+     * *   `mobile-core-ml-low-latency-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with Core
+     *               ML afterwards. Expected to have low latency, but may have
+     *               lower prediction quality than other models.
+     * *   `mobile-core-ml-versatile-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with Core
+     *               ML afterwards.
+     * *   `mobile-core-ml-high-accuracy-1` - A model that, in addition to
+     *               providing prediction via AutoML API, can also be exported
+     *               (see [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with
+     *               Core ML afterwards.  Expected to have a higher latency, but
+     *               should also have a higher prediction quality than other
+     *               models.
+     * 
+ * + * string model_type = 7; + */ + public java.lang.String getModelType() { + java.lang.Object ref = modelType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Type of the model. The available values are:
+     * *   `cloud` - Model to be used via prediction calls to AutoML API.
+     *               This is the default value.
+     * *   `mobile-low-latency-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+     *               with TensorFlow afterwards. Expected to have low latency, but
+     *               may have lower prediction quality than other models.
+     * *   `mobile-versatile-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+     *               with TensorFlow afterwards.
+     * *   `mobile-high-accuracy-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+     *               with TensorFlow afterwards.  Expected to have a higher
+     *               latency, but should also have a higher prediction quality
+     *               than other models.
+     * *   `mobile-core-ml-low-latency-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with Core
+     *               ML afterwards. Expected to have low latency, but may have
+     *               lower prediction quality than other models.
+     * *   `mobile-core-ml-versatile-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with Core
+     *               ML afterwards.
+     * *   `mobile-core-ml-high-accuracy-1` - A model that, in addition to
+     *               providing prediction via AutoML API, can also be exported
+     *               (see [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with
+     *               Core ML afterwards.  Expected to have a higher latency, but
+     *               should also have a higher prediction quality than other
+     *               models.
+     * 
+ * + * string model_type = 7; + */ + public com.google.protobuf.ByteString getModelTypeBytes() { + java.lang.Object ref = modelType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Type of the model. The available values are:
+     * *   `cloud` - Model to be used via prediction calls to AutoML API.
+     *               This is the default value.
+     * *   `mobile-low-latency-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+     *               with TensorFlow afterwards. Expected to have low latency, but
+     *               may have lower prediction quality than other models.
+     * *   `mobile-versatile-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+     *               with TensorFlow afterwards.
+     * *   `mobile-high-accuracy-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+     *               with TensorFlow afterwards.  Expected to have a higher
+     *               latency, but should also have a higher prediction quality
+     *               than other models.
+     * *   `mobile-core-ml-low-latency-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with Core
+     *               ML afterwards. Expected to have low latency, but may have
+     *               lower prediction quality than other models.
+     * *   `mobile-core-ml-versatile-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with Core
+     *               ML afterwards.
+     * *   `mobile-core-ml-high-accuracy-1` - A model that, in addition to
+     *               providing prediction via AutoML API, can also be exported
+     *               (see [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with
+     *               Core ML afterwards.  Expected to have a higher latency, but
+     *               should also have a higher prediction quality than other
+     *               models.
+     * 
+ * + * string model_type = 7; + */ + public Builder setModelType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + modelType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Type of the model. The available values are:
+     * *   `cloud` - Model to be used via prediction calls to AutoML API.
+     *               This is the default value.
+     * *   `mobile-low-latency-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+     *               with TensorFlow afterwards. Expected to have low latency, but
+     *               may have lower prediction quality than other models.
+     * *   `mobile-versatile-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+     *               with TensorFlow afterwards.
+     * *   `mobile-high-accuracy-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+     *               with TensorFlow afterwards.  Expected to have a higher
+     *               latency, but should also have a higher prediction quality
+     *               than other models.
+     * *   `mobile-core-ml-low-latency-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with Core
+     *               ML afterwards. Expected to have low latency, but may have
+     *               lower prediction quality than other models.
+     * *   `mobile-core-ml-versatile-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with Core
+     *               ML afterwards.
+     * *   `mobile-core-ml-high-accuracy-1` - A model that, in addition to
+     *               providing prediction via AutoML API, can also be exported
+     *               (see [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with
+     *               Core ML afterwards.  Expected to have a higher latency, but
+     *               should also have a higher prediction quality than other
+     *               models.
+     * 
+ * + * string model_type = 7; + */ + public Builder clearModelType() { + + modelType_ = getDefaultInstance().getModelType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Type of the model. The available values are:
+     * *   `cloud` - Model to be used via prediction calls to AutoML API.
+     *               This is the default value.
+     * *   `mobile-low-latency-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+     *               with TensorFlow afterwards. Expected to have low latency, but
+     *               may have lower prediction quality than other models.
+     * *   `mobile-versatile-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+     *               with TensorFlow afterwards.
+     * *   `mobile-high-accuracy-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+     *               with TensorFlow afterwards.  Expected to have a higher
+     *               latency, but should also have a higher prediction quality
+     *               than other models.
+     * *   `mobile-core-ml-low-latency-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with Core
+     *               ML afterwards. Expected to have low latency, but may have
+     *               lower prediction quality than other models.
+     * *   `mobile-core-ml-versatile-1` - A model that, in addition to providing
+     *               prediction via AutoML API, can also be exported (see
+     *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with Core
+     *               ML afterwards.
+     * *   `mobile-core-ml-high-accuracy-1` - A model that, in addition to
+     *               providing prediction via AutoML API, can also be exported
+     *               (see [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with
+     *               Core ML afterwards.  Expected to have a higher latency, but
+     *               should also have a higher prediction quality than other
+     *               models.
+     * 
+ * + * string model_type = 7; + */ + public Builder setModelTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + modelType_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadataOrBuilder.java index 2fc422a4c3e1..ba74180f77ee 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadataOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageClassificationModelMetadataOrBuilder.java @@ -14,8 +14,9 @@ public interface ImageClassificationModelMetadataOrBuilder *
    * Optional. The ID of the `base` model. If it is specified, the new model
    * will be created based on the `base` model. Otherwise, the new model will be
-   * created from scratch. The `base` model is expected to be in the same
-   * `project` and `location` as the new model to create.
+   * created from scratch. The `base` model must be in the same
+   * `project` and `location` as the new model to create, and have the same
+   * `model_type`.
    * 
* * string base_model_id = 1; @@ -27,8 +28,9 @@ public interface ImageClassificationModelMetadataOrBuilder *
    * Optional. The ID of the `base` model. If it is specified, the new model
    * will be created based on the `base` model. Otherwise, the new model will be
-   * created from scratch. The `base` model is expected to be in the same
-   * `project` and `location` as the new model to create.
+   * created from scratch. The `base` model must be in the same
+   * `project` and `location` as the new model to create, and have the same
+   * `model_type`.
    * 
* * string base_model_id = 1; @@ -39,8 +41,8 @@ public interface ImageClassificationModelMetadataOrBuilder * * *
-   * Required. The train budget of creating this model. The actual
-   * `train_cost` will be equal or less than this value.
+   * Required. The train budget of creating this model, expressed in hours. The
+   * actual `train_cost` will be equal or less than this value.
    * 
* * int64 train_budget = 2; @@ -51,9 +53,9 @@ public interface ImageClassificationModelMetadataOrBuilder * * *
-   * Output only. The actual train cost of creating this model. If this
-   * model is created from a `base` model, the train cost used to create the
-   * `base` model are not included.
+   * Output only. The actual train cost of creating this model, expressed in
+   * hours. If this model is created from a `base` model, the train cost used
+   * to create the `base` model are not included.
    * 
* * int64 train_cost = 3; @@ -65,7 +67,7 @@ public interface ImageClassificationModelMetadataOrBuilder * *
    * Output only. The reason that this create model operation stopped,
-   * e.g. BUDGET_REACHED, CONVERGED.
+   * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; @@ -76,10 +78,95 @@ public interface ImageClassificationModelMetadataOrBuilder * *
    * Output only. The reason that this create model operation stopped,
-   * e.g. BUDGET_REACHED, CONVERGED.
+   * e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
    * 
* * string stop_reason = 5; */ com.google.protobuf.ByteString getStopReasonBytes(); + + /** + * + * + *
+   * Optional. Type of the model. The available values are:
+   * *   `cloud` - Model to be used via prediction calls to AutoML API.
+   *               This is the default value.
+   * *   `mobile-low-latency-1` - A model that, in addition to providing
+   *               prediction via AutoML API, can also be exported (see
+   *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+   *               with TensorFlow afterwards. Expected to have low latency, but
+   *               may have lower prediction quality than other models.
+   * *   `mobile-versatile-1` - A model that, in addition to providing
+   *               prediction via AutoML API, can also be exported (see
+   *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+   *               with TensorFlow afterwards.
+   * *   `mobile-high-accuracy-1` - A model that, in addition to providing
+   *               prediction via AutoML API, can also be exported (see
+   *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+   *               with TensorFlow afterwards.  Expected to have a higher
+   *               latency, but should also have a higher prediction quality
+   *               than other models.
+   * *   `mobile-core-ml-low-latency-1` - A model that, in addition to providing
+   *               prediction via AutoML API, can also be exported (see
+   *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with Core
+   *               ML afterwards. Expected to have low latency, but may have
+   *               lower prediction quality than other models.
+   * *   `mobile-core-ml-versatile-1` - A model that, in addition to providing
+   *               prediction via AutoML API, can also be exported (see
+   *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with Core
+   *               ML afterwards.
+   * *   `mobile-core-ml-high-accuracy-1` - A model that, in addition to
+   *               providing prediction via AutoML API, can also be exported
+   *               (see [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with
+   *               Core ML afterwards.  Expected to have a higher latency, but
+   *               should also have a higher prediction quality than other
+   *               models.
+   * 
+ * + * string model_type = 7; + */ + java.lang.String getModelType(); + /** + * + * + *
+   * Optional. Type of the model. The available values are:
+   * *   `cloud` - Model to be used via prediction calls to AutoML API.
+   *               This is the default value.
+   * *   `mobile-low-latency-1` - A model that, in addition to providing
+   *               prediction via AutoML API, can also be exported (see
+   *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+   *               with TensorFlow afterwards. Expected to have low latency, but
+   *               may have lower prediction quality than other models.
+   * *   `mobile-versatile-1` - A model that, in addition to providing
+   *               prediction via AutoML API, can also be exported (see
+   *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+   *               with TensorFlow afterwards.
+   * *   `mobile-high-accuracy-1` - A model that, in addition to providing
+   *               prediction via AutoML API, can also be exported (see
+   *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device
+   *               with TensorFlow afterwards.  Expected to have a higher
+   *               latency, but should also have a higher prediction quality
+   *               than other models.
+   * *   `mobile-core-ml-low-latency-1` - A model that, in addition to providing
+   *               prediction via AutoML API, can also be exported (see
+   *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with Core
+   *               ML afterwards. Expected to have low latency, but may have
+   *               lower prediction quality than other models.
+   * *   `mobile-core-ml-versatile-1` - A model that, in addition to providing
+   *               prediction via AutoML API, can also be exported (see
+   *               [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with Core
+   *               ML afterwards.
+   * *   `mobile-core-ml-high-accuracy-1` - A model that, in addition to
+   *               providing prediction via AutoML API, can also be exported
+   *               (see [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with
+   *               Core ML afterwards.  Expected to have a higher latency, but
+   *               should also have a higher prediction quality than other
+   *               models.
+   * 
+ * + * string model_type = 7; + */ + com.google.protobuf.ByteString getModelTypeBytes(); } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotation.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotation.java new file mode 100644 index 000000000000..ab3a72a18e92 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotation.java @@ -0,0 +1,811 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/detection.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Annotation details for image object detection.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation} + */ +public final class ImageObjectDetectionAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) + ImageObjectDetectionAnnotationOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImageObjectDetectionAnnotation.newBuilder() to construct. + private ImageObjectDetectionAnnotation( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImageObjectDetectionAnnotation() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ImageObjectDetectionAnnotation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.automl.v1beta1.BoundingPoly.Builder subBuilder = null; + if (boundingBox_ != null) { + subBuilder = boundingBox_.toBuilder(); + } + boundingBox_ = + input.readMessage( + com.google.cloud.automl.v1beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(boundingBox_); + boundingBox_ = subBuilder.buildPartial(); + } + + break; + } + case 21: + { + score_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.class, + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.Builder.class); + } + + public static final int BOUNDING_BOX_FIELD_NUMBER = 1; + private com.google.cloud.automl.v1beta1.BoundingPoly boundingBox_; + /** + * + * + *
+   * Output only.
+   * The rectangle representing the object location.
+   * 
+ * + * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1; + */ + public boolean hasBoundingBox() { + return boundingBox_ != null; + } + /** + * + * + *
+   * Output only.
+   * The rectangle representing the object location.
+   * 
+ * + * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1; + */ + public com.google.cloud.automl.v1beta1.BoundingPoly getBoundingBox() { + return boundingBox_ == null + ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; + } + /** + * + * + *
+   * Output only.
+   * The rectangle representing the object location.
+   * 
+ * + * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1; + */ + public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder() { + return getBoundingBox(); + } + + public static final int SCORE_FIELD_NUMBER = 2; + private float score_; + /** + * + * + *
+   * Output only.
+   * The confidence that this annotation is positive for the parent example,
+   * value in [0, 1], higher means higher positivity confidence.
+   * 
+ * + * float score = 2; + */ + public float getScore() { + return score_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (boundingBox_ != null) { + output.writeMessage(1, getBoundingBox()); + } + if (score_ != 0F) { + output.writeFloat(2, score_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (boundingBox_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBoundingBox()); + } + if (score_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, score_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation other = + (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) obj; + + if (hasBoundingBox() != other.hasBoundingBox()) return false; + if (hasBoundingBox()) { + if (!getBoundingBox().equals(other.getBoundingBox())) return false; + } + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBoundingBox()) { + hash = (37 * hash) + BOUNDING_BOX_FIELD_NUMBER; + hash = (53 * hash) + getBoundingBox().hashCode(); + } + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Annotation details for image object detection.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.class, + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (boundingBoxBuilder_ == null) { + boundingBox_ = null; + } else { + boundingBox_ = null; + boundingBoxBuilder_ = null; + } + score_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionAnnotation_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation build() { + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation buildPartial() { + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation result = + new com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation(this); + if (boundingBoxBuilder_ == null) { + result.boundingBox_ = boundingBox_; + } else { + result.boundingBox_ = boundingBoxBuilder_.build(); + } + result.score_ = score_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) { + return mergeFrom((com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation other) { + if (other + == com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation.getDefaultInstance()) + return this; + if (other.hasBoundingBox()) { + mergeBoundingBox(other.getBoundingBox()); + } + if (other.getScore() != 0F) { + setScore(other.getScore()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.automl.v1beta1.BoundingPoly boundingBox_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BoundingPoly, + com.google.cloud.automl.v1beta1.BoundingPoly.Builder, + com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder> + boundingBoxBuilder_; + /** + * + * + *
+     * Output only.
+     * The rectangle representing the object location.
+     * 
+ * + * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1; + */ + public boolean hasBoundingBox() { + return boundingBoxBuilder_ != null || boundingBox_ != null; + } + /** + * + * + *
+     * Output only.
+     * The rectangle representing the object location.
+     * 
+ * + * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1; + */ + public com.google.cloud.automl.v1beta1.BoundingPoly getBoundingBox() { + if (boundingBoxBuilder_ == null) { + return boundingBox_ == null + ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; + } else { + return boundingBoxBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only.
+     * The rectangle representing the object location.
+     * 
+ * + * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1; + */ + public Builder setBoundingBox(com.google.cloud.automl.v1beta1.BoundingPoly value) { + if (boundingBoxBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + boundingBox_ = value; + onChanged(); + } else { + boundingBoxBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only.
+     * The rectangle representing the object location.
+     * 
+ * + * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1; + */ + public Builder setBoundingBox( + com.google.cloud.automl.v1beta1.BoundingPoly.Builder builderForValue) { + if (boundingBoxBuilder_ == null) { + boundingBox_ = builderForValue.build(); + onChanged(); + } else { + boundingBoxBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only.
+     * The rectangle representing the object location.
+     * 
+ * + * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1; + */ + public Builder mergeBoundingBox(com.google.cloud.automl.v1beta1.BoundingPoly value) { + if (boundingBoxBuilder_ == null) { + if (boundingBox_ != null) { + boundingBox_ = + com.google.cloud.automl.v1beta1.BoundingPoly.newBuilder(boundingBox_) + .mergeFrom(value) + .buildPartial(); + } else { + boundingBox_ = value; + } + onChanged(); + } else { + boundingBoxBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only.
+     * The rectangle representing the object location.
+     * 
+ * + * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1; + */ + public Builder clearBoundingBox() { + if (boundingBoxBuilder_ == null) { + boundingBox_ = null; + onChanged(); + } else { + boundingBox_ = null; + boundingBoxBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only.
+     * The rectangle representing the object location.
+     * 
+ * + * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1; + */ + public com.google.cloud.automl.v1beta1.BoundingPoly.Builder getBoundingBoxBuilder() { + + onChanged(); + return getBoundingBoxFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only.
+     * The rectangle representing the object location.
+     * 
+ * + * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1; + */ + public com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder() { + if (boundingBoxBuilder_ != null) { + return boundingBoxBuilder_.getMessageOrBuilder(); + } else { + return boundingBox_ == null + ? com.google.cloud.automl.v1beta1.BoundingPoly.getDefaultInstance() + : boundingBox_; + } + } + /** + * + * + *
+     * Output only.
+     * The rectangle representing the object location.
+     * 
+ * + * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BoundingPoly, + com.google.cloud.automl.v1beta1.BoundingPoly.Builder, + com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder> + getBoundingBoxFieldBuilder() { + if (boundingBoxBuilder_ == null) { + boundingBoxBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BoundingPoly, + com.google.cloud.automl.v1beta1.BoundingPoly.Builder, + com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder>( + getBoundingBox(), getParentForChildren(), isClean()); + boundingBox_ = null; + } + return boundingBoxBuilder_; + } + + private float score_; + /** + * + * + *
+     * Output only.
+     * The confidence that this annotation is positive for the parent example,
+     * value in [0, 1], higher means higher positivity confidence.
+     * 
+ * + * float score = 2; + */ + public float getScore() { + return score_; + } + /** + * + * + *
+     * Output only.
+     * The confidence that this annotation is positive for the parent example,
+     * value in [0, 1], higher means higher positivity confidence.
+     * 
+ * + * float score = 2; + */ + public Builder setScore(float value) { + + score_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only.
+     * The confidence that this annotation is positive for the parent example,
+     * value in [0, 1], higher means higher positivity confidence.
+     * 
+ * + * float score = 2; + */ + public Builder clearScore() { + + score_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) + private static final com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation(); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageObjectDetectionAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageObjectDetectionAnnotation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotationOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotationOrBuilder.java new file mode 100644 index 000000000000..8d21213b82e1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionAnnotationOrBuilder.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/detection.proto + +package com.google.cloud.automl.v1beta1; + +public interface ImageObjectDetectionAnnotationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only.
+   * The rectangle representing the object location.
+   * 
+ * + * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1; + */ + boolean hasBoundingBox(); + /** + * + * + *
+   * Output only.
+   * The rectangle representing the object location.
+   * 
+ * + * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1; + */ + com.google.cloud.automl.v1beta1.BoundingPoly getBoundingBox(); + /** + * + * + *
+   * Output only.
+   * The rectangle representing the object location.
+   * 
+ * + * .google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1; + */ + com.google.cloud.automl.v1beta1.BoundingPolyOrBuilder getBoundingBoxOrBuilder(); + + /** + * + * + *
+   * Output only.
+   * The confidence that this annotation is positive for the parent example,
+   * value in [0, 1], higher means higher positivity confidence.
+   * 
+ * + * float score = 2; + */ + float getScore(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadata.java new file mode 100644 index 000000000000..360b6c3f5609 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadata.java @@ -0,0 +1,449 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/image.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Dataset metadata specific to image object detection.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata} + */ +public final class ImageObjectDetectionDatasetMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) + ImageObjectDetectionDatasetMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImageObjectDetectionDatasetMetadata.newBuilder() to construct. + private ImageObjectDetectionDatasetMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImageObjectDetectionDatasetMetadata() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ImageObjectDetectionDatasetMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionDatasetMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionDatasetMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.class, + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata other = + (com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Dataset metadata specific to image object detection.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionDatasetMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionDatasetMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.class, + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionDatasetMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata build() { + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata buildPartial() { + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata result = + new com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) { + return mergeFrom( + (com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata other) { + if (other + == com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) + private static final com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata(); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageObjectDetectionDatasetMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageObjectDetectionDatasetMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadataOrBuilder.java new file mode 100644 index 000000000000..19e402790514 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionDatasetMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/image.proto + +package com.google.cloud.automl.v1beta1; + +public interface ImageObjectDetectionDatasetMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetrics.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetrics.java new file mode 100644 index 000000000000..9763abd1fb58 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetrics.java @@ -0,0 +1,1258 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/detection.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Model evaluation metrics for image object detection problems.
+ * Evaluates prediction quality of labeled bounding boxes.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics} + */ +public final class ImageObjectDetectionEvaluationMetrics + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) + ImageObjectDetectionEvaluationMetricsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImageObjectDetectionEvaluationMetrics.newBuilder() to construct. + private ImageObjectDetectionEvaluationMetrics( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImageObjectDetectionEvaluationMetrics() { + boundingBoxMetricsEntries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ImageObjectDetectionEvaluationMetrics( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + evaluatedBoundingBoxCount_ = input.readInt32(); + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + boundingBoxMetricsEntries_ = + new java.util.ArrayList< + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry>(); + mutable_bitField0_ |= 0x00000002; + } + boundingBoxMetricsEntries_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.parser(), + extensionRegistry)); + break; + } + case 29: + { + boundingBoxMeanAveragePrecision_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + boundingBoxMetricsEntries_ = + java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionEvaluationMetrics_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionEvaluationMetrics_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.class, + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.Builder.class); + } + + private int bitField0_; + public static final int EVALUATED_BOUNDING_BOX_COUNT_FIELD_NUMBER = 1; + private int evaluatedBoundingBoxCount_; + /** + * + * + *
+   * Output only. The total number of bounding boxes (i.e. summed over all
+   * images) the ground truth used to create this evaluation had.
+   * 
+ * + * int32 evaluated_bounding_box_count = 1; + */ + public int getEvaluatedBoundingBoxCount() { + return evaluatedBoundingBoxCount_; + } + + public static final int BOUNDING_BOX_METRICS_ENTRIES_FIELD_NUMBER = 2; + private java.util.List + boundingBoxMetricsEntries_; + /** + * + * + *
+   * Output only. The bounding boxes match metrics for each
+   * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+   * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+   * pair.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public java.util.List + getBoundingBoxMetricsEntriesList() { + return boundingBoxMetricsEntries_; + } + /** + * + * + *
+   * Output only. The bounding boxes match metrics for each
+   * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+   * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+   * pair.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public java.util.List + getBoundingBoxMetricsEntriesOrBuilderList() { + return boundingBoxMetricsEntries_; + } + /** + * + * + *
+   * Output only. The bounding boxes match metrics for each
+   * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+   * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+   * pair.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public int getBoundingBoxMetricsEntriesCount() { + return boundingBoxMetricsEntries_.size(); + } + /** + * + * + *
+   * Output only. The bounding boxes match metrics for each
+   * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+   * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+   * pair.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries( + int index) { + return boundingBoxMetricsEntries_.get(index); + } + /** + * + * + *
+   * Output only. The bounding boxes match metrics for each
+   * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+   * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+   * pair.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder + getBoundingBoxMetricsEntriesOrBuilder(int index) { + return boundingBoxMetricsEntries_.get(index); + } + + public static final int BOUNDING_BOX_MEAN_AVERAGE_PRECISION_FIELD_NUMBER = 3; + private float boundingBoxMeanAveragePrecision_; + /** + * + * + *
+   * Output only. The single metric for bounding boxes evaluation:
+   * the mean_average_precision averaged over all bounding_box_metrics_entries.
+   * 
+ * + * float bounding_box_mean_average_precision = 3; + */ + public float getBoundingBoxMeanAveragePrecision() { + return boundingBoxMeanAveragePrecision_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (evaluatedBoundingBoxCount_ != 0) { + output.writeInt32(1, evaluatedBoundingBoxCount_); + } + for (int i = 0; i < boundingBoxMetricsEntries_.size(); i++) { + output.writeMessage(2, boundingBoxMetricsEntries_.get(i)); + } + if (boundingBoxMeanAveragePrecision_ != 0F) { + output.writeFloat(3, boundingBoxMeanAveragePrecision_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (evaluatedBoundingBoxCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, evaluatedBoundingBoxCount_); + } + for (int i = 0; i < boundingBoxMetricsEntries_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, boundingBoxMetricsEntries_.get(i)); + } + if (boundingBoxMeanAveragePrecision_ != 0F) { + size += + com.google.protobuf.CodedOutputStream.computeFloatSize( + 3, boundingBoxMeanAveragePrecision_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics other = + (com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) obj; + + if (getEvaluatedBoundingBoxCount() != other.getEvaluatedBoundingBoxCount()) return false; + if (!getBoundingBoxMetricsEntriesList().equals(other.getBoundingBoxMetricsEntriesList())) + return false; + if (java.lang.Float.floatToIntBits(getBoundingBoxMeanAveragePrecision()) + != java.lang.Float.floatToIntBits(other.getBoundingBoxMeanAveragePrecision())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EVALUATED_BOUNDING_BOX_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getEvaluatedBoundingBoxCount(); + if (getBoundingBoxMetricsEntriesCount() > 0) { + hash = (37 * hash) + BOUNDING_BOX_METRICS_ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getBoundingBoxMetricsEntriesList().hashCode(); + } + hash = (37 * hash) + BOUNDING_BOX_MEAN_AVERAGE_PRECISION_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoundingBoxMeanAveragePrecision()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Model evaluation metrics for image object detection problems.
+   * Evaluates prediction quality of labeled bounding boxes.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetricsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionEvaluationMetrics_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionEvaluationMetrics_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.class, + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.Builder.class); + } + + // Construct using + // com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBoundingBoxMetricsEntriesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + evaluatedBoundingBoxCount_ = 0; + + if (boundingBoxMetricsEntriesBuilder_ == null) { + boundingBoxMetricsEntries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + boundingBoxMetricsEntriesBuilder_.clear(); + } + boundingBoxMeanAveragePrecision_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Detection + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionEvaluationMetrics_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics build() { + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics buildPartial() { + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics result = + new com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.evaluatedBoundingBoxCount_ = evaluatedBoundingBoxCount_; + if (boundingBoxMetricsEntriesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + boundingBoxMetricsEntries_ = + java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.boundingBoxMetricsEntries_ = boundingBoxMetricsEntries_; + } else { + result.boundingBoxMetricsEntries_ = boundingBoxMetricsEntriesBuilder_.build(); + } + result.boundingBoxMeanAveragePrecision_ = boundingBoxMeanAveragePrecision_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) { + return mergeFrom( + (com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics other) { + if (other + == com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics + .getDefaultInstance()) return this; + if (other.getEvaluatedBoundingBoxCount() != 0) { + setEvaluatedBoundingBoxCount(other.getEvaluatedBoundingBoxCount()); + } + if (boundingBoxMetricsEntriesBuilder_ == null) { + if (!other.boundingBoxMetricsEntries_.isEmpty()) { + if (boundingBoxMetricsEntries_.isEmpty()) { + boundingBoxMetricsEntries_ = other.boundingBoxMetricsEntries_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureBoundingBoxMetricsEntriesIsMutable(); + boundingBoxMetricsEntries_.addAll(other.boundingBoxMetricsEntries_); + } + onChanged(); + } + } else { + if (!other.boundingBoxMetricsEntries_.isEmpty()) { + if (boundingBoxMetricsEntriesBuilder_.isEmpty()) { + boundingBoxMetricsEntriesBuilder_.dispose(); + boundingBoxMetricsEntriesBuilder_ = null; + boundingBoxMetricsEntries_ = other.boundingBoxMetricsEntries_; + bitField0_ = (bitField0_ & ~0x00000002); + boundingBoxMetricsEntriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBoundingBoxMetricsEntriesFieldBuilder() + : null; + } else { + boundingBoxMetricsEntriesBuilder_.addAllMessages(other.boundingBoxMetricsEntries_); + } + } + } + if (other.getBoundingBoxMeanAveragePrecision() != 0F) { + setBoundingBoxMeanAveragePrecision(other.getBoundingBoxMeanAveragePrecision()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int evaluatedBoundingBoxCount_; + /** + * + * + *
+     * Output only. The total number of bounding boxes (i.e. summed over all
+     * images) the ground truth used to create this evaluation had.
+     * 
+ * + * int32 evaluated_bounding_box_count = 1; + */ + public int getEvaluatedBoundingBoxCount() { + return evaluatedBoundingBoxCount_; + } + /** + * + * + *
+     * Output only. The total number of bounding boxes (i.e. summed over all
+     * images) the ground truth used to create this evaluation had.
+     * 
+ * + * int32 evaluated_bounding_box_count = 1; + */ + public Builder setEvaluatedBoundingBoxCount(int value) { + + evaluatedBoundingBoxCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The total number of bounding boxes (i.e. summed over all
+     * images) the ground truth used to create this evaluation had.
+     * 
+ * + * int32 evaluated_bounding_box_count = 1; + */ + public Builder clearEvaluatedBoundingBoxCount() { + + evaluatedBoundingBoxCount_ = 0; + onChanged(); + return this; + } + + private java.util.List + boundingBoxMetricsEntries_ = java.util.Collections.emptyList(); + + private void ensureBoundingBoxMetricsEntriesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + boundingBoxMetricsEntries_ = + new java.util.ArrayList( + boundingBoxMetricsEntries_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder> + boundingBoxMetricsEntriesBuilder_; + + /** + * + * + *
+     * Output only. The bounding boxes match metrics for each
+     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * pair.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public java.util.List + getBoundingBoxMetricsEntriesList() { + if (boundingBoxMetricsEntriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_); + } else { + return boundingBoxMetricsEntriesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. The bounding boxes match metrics for each
+     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * pair.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public int getBoundingBoxMetricsEntriesCount() { + if (boundingBoxMetricsEntriesBuilder_ == null) { + return boundingBoxMetricsEntries_.size(); + } else { + return boundingBoxMetricsEntriesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. The bounding boxes match metrics for each
+     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * pair.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries( + int index) { + if (boundingBoxMetricsEntriesBuilder_ == null) { + return boundingBoxMetricsEntries_.get(index); + } else { + return boundingBoxMetricsEntriesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. The bounding boxes match metrics for each
+     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * pair.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public Builder setBoundingBoxMetricsEntries( + int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry value) { + if (boundingBoxMetricsEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoundingBoxMetricsEntriesIsMutable(); + boundingBoxMetricsEntries_.set(index, value); + onChanged(); + } else { + boundingBoxMetricsEntriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. The bounding boxes match metrics for each
+     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * pair.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public Builder setBoundingBoxMetricsEntries( + int index, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { + if (boundingBoxMetricsEntriesBuilder_ == null) { + ensureBoundingBoxMetricsEntriesIsMutable(); + boundingBoxMetricsEntries_.set(index, builderForValue.build()); + onChanged(); + } else { + boundingBoxMetricsEntriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The bounding boxes match metrics for each
+     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * pair.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public Builder addBoundingBoxMetricsEntries( + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry value) { + if (boundingBoxMetricsEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoundingBoxMetricsEntriesIsMutable(); + boundingBoxMetricsEntries_.add(value); + onChanged(); + } else { + boundingBoxMetricsEntriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. The bounding boxes match metrics for each
+     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * pair.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public Builder addBoundingBoxMetricsEntries( + int index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry value) { + if (boundingBoxMetricsEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoundingBoxMetricsEntriesIsMutable(); + boundingBoxMetricsEntries_.add(index, value); + onChanged(); + } else { + boundingBoxMetricsEntriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. The bounding boxes match metrics for each
+     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * pair.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public Builder addBoundingBoxMetricsEntries( + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { + if (boundingBoxMetricsEntriesBuilder_ == null) { + ensureBoundingBoxMetricsEntriesIsMutable(); + boundingBoxMetricsEntries_.add(builderForValue.build()); + onChanged(); + } else { + boundingBoxMetricsEntriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The bounding boxes match metrics for each
+     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * pair.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public Builder addBoundingBoxMetricsEntries( + int index, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder builderForValue) { + if (boundingBoxMetricsEntriesBuilder_ == null) { + ensureBoundingBoxMetricsEntriesIsMutable(); + boundingBoxMetricsEntries_.add(index, builderForValue.build()); + onChanged(); + } else { + boundingBoxMetricsEntriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The bounding boxes match metrics for each
+     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * pair.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public Builder addAllBoundingBoxMetricsEntries( + java.lang.Iterable + values) { + if (boundingBoxMetricsEntriesBuilder_ == null) { + ensureBoundingBoxMetricsEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, boundingBoxMetricsEntries_); + onChanged(); + } else { + boundingBoxMetricsEntriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. The bounding boxes match metrics for each
+     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * pair.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public Builder clearBoundingBoxMetricsEntries() { + if (boundingBoxMetricsEntriesBuilder_ == null) { + boundingBoxMetricsEntries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + boundingBoxMetricsEntriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. The bounding boxes match metrics for each
+     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * pair.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public Builder removeBoundingBoxMetricsEntries(int index) { + if (boundingBoxMetricsEntriesBuilder_ == null) { + ensureBoundingBoxMetricsEntriesIsMutable(); + boundingBoxMetricsEntries_.remove(index); + onChanged(); + } else { + boundingBoxMetricsEntriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. The bounding boxes match metrics for each
+     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * pair.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder + getBoundingBoxMetricsEntriesBuilder(int index) { + return getBoundingBoxMetricsEntriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. The bounding boxes match metrics for each
+     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * pair.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder + getBoundingBoxMetricsEntriesOrBuilder(int index) { + if (boundingBoxMetricsEntriesBuilder_ == null) { + return boundingBoxMetricsEntries_.get(index); + } else { + return boundingBoxMetricsEntriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. The bounding boxes match metrics for each
+     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * pair.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public java.util.List< + ? extends com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder> + getBoundingBoxMetricsEntriesOrBuilderList() { + if (boundingBoxMetricsEntriesBuilder_ != null) { + return boundingBoxMetricsEntriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(boundingBoxMetricsEntries_); + } + } + /** + * + * + *
+     * Output only. The bounding boxes match metrics for each
+     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * pair.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder + addBoundingBoxMetricsEntriesBuilder() { + return getBoundingBoxMetricsEntriesFieldBuilder() + .addBuilder(com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. The bounding boxes match metrics for each
+     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * pair.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder + addBoundingBoxMetricsEntriesBuilder(int index) { + return getBoundingBoxMetricsEntriesFieldBuilder() + .addBuilder( + index, com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. The bounding boxes match metrics for each
+     * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+     * pair.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + public java.util.List + getBoundingBoxMetricsEntriesBuilderList() { + return getBoundingBoxMetricsEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder> + getBoundingBoxMetricsEntriesFieldBuilder() { + if (boundingBoxMetricsEntriesBuilder_ == null) { + boundingBoxMetricsEntriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.Builder, + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder>( + boundingBoxMetricsEntries_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + boundingBoxMetricsEntries_ = null; + } + return boundingBoxMetricsEntriesBuilder_; + } + + private float boundingBoxMeanAveragePrecision_; + /** + * + * + *
+     * Output only. The single metric for bounding boxes evaluation:
+     * the mean_average_precision averaged over all bounding_box_metrics_entries.
+     * 
+ * + * float bounding_box_mean_average_precision = 3; + */ + public float getBoundingBoxMeanAveragePrecision() { + return boundingBoxMeanAveragePrecision_; + } + /** + * + * + *
+     * Output only. The single metric for bounding boxes evaluation:
+     * the mean_average_precision averaged over all bounding_box_metrics_entries.
+     * 
+ * + * float bounding_box_mean_average_precision = 3; + */ + public Builder setBoundingBoxMeanAveragePrecision(float value) { + + boundingBoxMeanAveragePrecision_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The single metric for bounding boxes evaluation:
+     * the mean_average_precision averaged over all bounding_box_metrics_entries.
+     * 
+ * + * float bounding_box_mean_average_precision = 3; + */ + public Builder clearBoundingBoxMeanAveragePrecision() { + + boundingBoxMeanAveragePrecision_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) + private static final com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics(); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageObjectDetectionEvaluationMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageObjectDetectionEvaluationMetrics(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetricsOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetricsOrBuilder.java new file mode 100644 index 000000000000..e216f821011b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionEvaluationMetricsOrBuilder.java @@ -0,0 +1,113 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/detection.proto + +package com.google.cloud.automl.v1beta1; + +public interface ImageObjectDetectionEvaluationMetricsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The total number of bounding boxes (i.e. summed over all
+   * images) the ground truth used to create this evaluation had.
+   * 
+ * + * int32 evaluated_bounding_box_count = 1; + */ + int getEvaluatedBoundingBoxCount(); + + /** + * + * + *
+   * Output only. The bounding boxes match metrics for each
+   * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+   * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+   * pair.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + java.util.List + getBoundingBoxMetricsEntriesList(); + /** + * + * + *
+   * Output only. The bounding boxes match metrics for each
+   * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+   * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+   * pair.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntry getBoundingBoxMetricsEntries(int index); + /** + * + * + *
+   * Output only. The bounding boxes match metrics for each
+   * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+   * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+   * pair.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + int getBoundingBoxMetricsEntriesCount(); + /** + * + * + *
+   * Output only. The bounding boxes match metrics for each
+   * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+   * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+   * pair.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + java.util.List + getBoundingBoxMetricsEntriesOrBuilderList(); + /** + * + * + *
+   * Output only. The bounding boxes match metrics for each
+   * Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+   * and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
+   * pair.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + * + */ + com.google.cloud.automl.v1beta1.BoundingBoxMetricsEntryOrBuilder + getBoundingBoxMetricsEntriesOrBuilder(int index); + + /** + * + * + *
+   * Output only. The single metric for bounding boxes evaluation:
+   * the mean_average_precision averaged over all bounding_box_metrics_entries.
+   * 
+ * + * float bounding_box_mean_average_precision = 3; + */ + float getBoundingBoxMeanAveragePrecision(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadata.java new file mode 100644 index 000000000000..a6d58a4af53b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadata.java @@ -0,0 +1,560 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/image.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Model deployment metadata specific to Image Object Detection.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata} + */ +public final class ImageObjectDetectionModelDeploymentMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) + ImageObjectDetectionModelDeploymentMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImageObjectDetectionModelDeploymentMetadata.newBuilder() to construct. + private ImageObjectDetectionModelDeploymentMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImageObjectDetectionModelDeploymentMetadata() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ImageObjectDetectionModelDeploymentMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + nodeCount_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelDeploymentMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelDeploymentMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.class, + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.Builder + .class); + } + + public static final int NODE_COUNT_FIELD_NUMBER = 1; + private long nodeCount_; + /** + * + * + *
+   * Input only. The number of nodes to deploy the model on. A node is an
+   * abstraction of a machine resource, which can handle online prediction QPS
+   * as given in the model's
+   * [qps_per_node][google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.qps_per_node].
+   * Must be between 1 and 100, inclusive on both ends.
+   * 
+ * + * int64 node_count = 1; + */ + public long getNodeCount() { + return nodeCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (nodeCount_ != 0L) { + output.writeInt64(1, nodeCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nodeCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, nodeCount_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata other = + (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) obj; + + if (getNodeCount() != other.getNodeCount()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNodeCount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Model deployment metadata specific to Image Object Detection.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelDeploymentMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelDeploymentMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.class, + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + nodeCount_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelDeploymentMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata build() { + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + buildPartial() { + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata result = + new com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata(this); + result.nodeCount_ = nodeCount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) { + return mergeFrom( + (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata other) { + if (other + == com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + .getDefaultInstance()) return this; + if (other.getNodeCount() != 0L) { + setNodeCount(other.getNodeCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long nodeCount_; + /** + * + * + *
+     * Input only. The number of nodes to deploy the model on. A node is an
+     * abstraction of a machine resource, which can handle online prediction QPS
+     * as given in the model's
+     * [qps_per_node][google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.qps_per_node].
+     * Must be between 1 and 100, inclusive on both ends.
+     * 
+ * + * int64 node_count = 1; + */ + public long getNodeCount() { + return nodeCount_; + } + /** + * + * + *
+     * Input only. The number of nodes to deploy the model on. A node is an
+     * abstraction of a machine resource, which can handle online prediction QPS
+     * as given in the model's
+     * [qps_per_node][google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.qps_per_node].
+     * Must be between 1 and 100, inclusive on both ends.
+     * 
+ * + * int64 node_count = 1; + */ + public Builder setNodeCount(long value) { + + nodeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Input only. The number of nodes to deploy the model on. A node is an
+     * abstraction of a machine resource, which can handle online prediction QPS
+     * as given in the model's
+     * [qps_per_node][google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.qps_per_node].
+     * Must be between 1 and 100, inclusive on both ends.
+     * 
+ * + * int64 node_count = 1; + */ + public Builder clearNodeCount() { + + nodeCount_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) + private static final com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata(); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageObjectDetectionModelDeploymentMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageObjectDetectionModelDeploymentMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java new file mode 100644 index 000000000000..db18d4a3fab8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelDeploymentMetadataOrBuilder.java @@ -0,0 +1,25 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/image.proto + +package com.google.cloud.automl.v1beta1; + +public interface ImageObjectDetectionModelDeploymentMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Input only. The number of nodes to deploy the model on. A node is an
+   * abstraction of a machine resource, which can handle online prediction QPS
+   * as given in the model's
+   * [qps_per_node][google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.qps_per_node].
+   * Must be between 1 and 100, inclusive on both ends.
+   * 
+ * + * int64 node_count = 1; + */ + long getNodeCount(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadata.java new file mode 100644 index 000000000000..80f85339b657 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadata.java @@ -0,0 +1,832 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/image.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Model metadata specific to image object detection.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata} + */ +public final class ImageObjectDetectionModelMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) + ImageObjectDetectionModelMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImageObjectDetectionModelMetadata.newBuilder() to construct. + private ImageObjectDetectionModelMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImageObjectDetectionModelMetadata() { + modelType_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ImageObjectDetectionModelMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + modelType_ = s; + break; + } + case 24: + { + nodeCount_ = input.readInt64(); + break; + } + case 33: + { + nodeQps_ = input.readDouble(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.class, + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.Builder.class); + } + + public static final int MODEL_TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object modelType_; + /** + * + * + *
+   * Optional. Type of the model. The available values are:
+   * *   `cloud-high-accuracy-1` - (default) A model to be used via prediction
+   *               calls to AutoML API. Expected to have a higher latency, but
+   *               should also have a higher prediction quality than other
+   *               models.
+   * *   `cloud-low-latency-1` -  A model to be used via prediction
+   *               calls to AutoML API. Expected to have low latency, but may
+   *               have lower prediction quality than other models.
+   * 
+ * + * string model_type = 1; + */ + public java.lang.String getModelType() { + java.lang.Object ref = modelType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelType_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Type of the model. The available values are:
+   * *   `cloud-high-accuracy-1` - (default) A model to be used via prediction
+   *               calls to AutoML API. Expected to have a higher latency, but
+   *               should also have a higher prediction quality than other
+   *               models.
+   * *   `cloud-low-latency-1` -  A model to be used via prediction
+   *               calls to AutoML API. Expected to have low latency, but may
+   *               have lower prediction quality than other models.
+   * 
+ * + * string model_type = 1; + */ + public com.google.protobuf.ByteString getModelTypeBytes() { + java.lang.Object ref = modelType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODE_COUNT_FIELD_NUMBER = 3; + private long nodeCount_; + /** + * + * + *
+   * Output only. The number of nodes this model is deployed on. A node is an
+   * abstraction of a machine resource, which can handle online prediction QPS
+   * as given in the qps_per_node field.
+   * 
+ * + * int64 node_count = 3; + */ + public long getNodeCount() { + return nodeCount_; + } + + public static final int NODE_QPS_FIELD_NUMBER = 4; + private double nodeQps_; + /** + * + * + *
+   * Output only. An approximate number of online prediction QPS that can
+   * be supported by this model per each node on which it is deployed.
+   * 
+ * + * double node_qps = 4; + */ + public double getNodeQps() { + return nodeQps_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getModelTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, modelType_); + } + if (nodeCount_ != 0L) { + output.writeInt64(3, nodeCount_); + } + if (nodeQps_ != 0D) { + output.writeDouble(4, nodeQps_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getModelTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, modelType_); + } + if (nodeCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, nodeCount_); + } + if (nodeQps_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, nodeQps_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata other = + (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) obj; + + if (!getModelType().equals(other.getModelType())) return false; + if (getNodeCount() != other.getNodeCount()) return false; + if (java.lang.Double.doubleToLongBits(getNodeQps()) + != java.lang.Double.doubleToLongBits(other.getNodeQps())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODEL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getModelType().hashCode(); + hash = (37 * hash) + NODE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNodeCount()); + hash = (37 * hash) + NODE_QPS_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getNodeQps())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Model metadata specific to image object detection.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.class, + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + modelType_ = ""; + + nodeCount_ = 0L; + + nodeQps_ = 0D; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.ImageProto + .internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata build() { + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata buildPartial() { + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata result = + new com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata(this); + result.modelType_ = modelType_; + result.nodeCount_ = nodeCount_; + result.nodeQps_ = nodeQps_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) { + return mergeFrom((com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata other) { + if (other + == com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.getDefaultInstance()) + return this; + if (!other.getModelType().isEmpty()) { + modelType_ = other.modelType_; + onChanged(); + } + if (other.getNodeCount() != 0L) { + setNodeCount(other.getNodeCount()); + } + if (other.getNodeQps() != 0D) { + setNodeQps(other.getNodeQps()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object modelType_ = ""; + /** + * + * + *
+     * Optional. Type of the model. The available values are:
+     * *   `cloud-high-accuracy-1` - (default) A model to be used via prediction
+     *               calls to AutoML API. Expected to have a higher latency, but
+     *               should also have a higher prediction quality than other
+     *               models.
+     * *   `cloud-low-latency-1` -  A model to be used via prediction
+     *               calls to AutoML API. Expected to have low latency, but may
+     *               have lower prediction quality than other models.
+     * 
+ * + * string model_type = 1; + */ + public java.lang.String getModelType() { + java.lang.Object ref = modelType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Type of the model. The available values are:
+     * *   `cloud-high-accuracy-1` - (default) A model to be used via prediction
+     *               calls to AutoML API. Expected to have a higher latency, but
+     *               should also have a higher prediction quality than other
+     *               models.
+     * *   `cloud-low-latency-1` -  A model to be used via prediction
+     *               calls to AutoML API. Expected to have low latency, but may
+     *               have lower prediction quality than other models.
+     * 
+ * + * string model_type = 1; + */ + public com.google.protobuf.ByteString getModelTypeBytes() { + java.lang.Object ref = modelType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Type of the model. The available values are:
+     * *   `cloud-high-accuracy-1` - (default) A model to be used via prediction
+     *               calls to AutoML API. Expected to have a higher latency, but
+     *               should also have a higher prediction quality than other
+     *               models.
+     * *   `cloud-low-latency-1` -  A model to be used via prediction
+     *               calls to AutoML API. Expected to have low latency, but may
+     *               have lower prediction quality than other models.
+     * 
+ * + * string model_type = 1; + */ + public Builder setModelType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + modelType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Type of the model. The available values are:
+     * *   `cloud-high-accuracy-1` - (default) A model to be used via prediction
+     *               calls to AutoML API. Expected to have a higher latency, but
+     *               should also have a higher prediction quality than other
+     *               models.
+     * *   `cloud-low-latency-1` -  A model to be used via prediction
+     *               calls to AutoML API. Expected to have low latency, but may
+     *               have lower prediction quality than other models.
+     * 
+ * + * string model_type = 1; + */ + public Builder clearModelType() { + + modelType_ = getDefaultInstance().getModelType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Type of the model. The available values are:
+     * *   `cloud-high-accuracy-1` - (default) A model to be used via prediction
+     *               calls to AutoML API. Expected to have a higher latency, but
+     *               should also have a higher prediction quality than other
+     *               models.
+     * *   `cloud-low-latency-1` -  A model to be used via prediction
+     *               calls to AutoML API. Expected to have low latency, but may
+     *               have lower prediction quality than other models.
+     * 
+ * + * string model_type = 1; + */ + public Builder setModelTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + modelType_ = value; + onChanged(); + return this; + } + + private long nodeCount_; + /** + * + * + *
+     * Output only. The number of nodes this model is deployed on. A node is an
+     * abstraction of a machine resource, which can handle online prediction QPS
+     * as given in the qps_per_node field.
+     * 
+ * + * int64 node_count = 3; + */ + public long getNodeCount() { + return nodeCount_; + } + /** + * + * + *
+     * Output only. The number of nodes this model is deployed on. A node is an
+     * abstraction of a machine resource, which can handle online prediction QPS
+     * as given in the qps_per_node field.
+     * 
+ * + * int64 node_count = 3; + */ + public Builder setNodeCount(long value) { + + nodeCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The number of nodes this model is deployed on. A node is an
+     * abstraction of a machine resource, which can handle online prediction QPS
+     * as given in the qps_per_node field.
+     * 
+ * + * int64 node_count = 3; + */ + public Builder clearNodeCount() { + + nodeCount_ = 0L; + onChanged(); + return this; + } + + private double nodeQps_; + /** + * + * + *
+     * Output only. An approximate number of online prediction QPS that can
+     * be supported by this model per each node on which it is deployed.
+     * 
+ * + * double node_qps = 4; + */ + public double getNodeQps() { + return nodeQps_; + } + /** + * + * + *
+     * Output only. An approximate number of online prediction QPS that can
+     * be supported by this model per each node on which it is deployed.
+     * 
+ * + * double node_qps = 4; + */ + public Builder setNodeQps(double value) { + + nodeQps_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. An approximate number of online prediction QPS that can
+     * be supported by this model per each node on which it is deployed.
+     * 
+ * + * double node_qps = 4; + */ + public Builder clearNodeQps() { + + nodeQps_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) + private static final com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata(); + } + + public static com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageObjectDetectionModelMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageObjectDetectionModelMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadataOrBuilder.java new file mode 100644 index 000000000000..975f7d1ce970 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageObjectDetectionModelMetadataOrBuilder.java @@ -0,0 +1,70 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/image.proto + +package com.google.cloud.automl.v1beta1; + +public interface ImageObjectDetectionModelMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Type of the model. The available values are:
+   * *   `cloud-high-accuracy-1` - (default) A model to be used via prediction
+   *               calls to AutoML API. Expected to have a higher latency, but
+   *               should also have a higher prediction quality than other
+   *               models.
+   * *   `cloud-low-latency-1` -  A model to be used via prediction
+   *               calls to AutoML API. Expected to have low latency, but may
+   *               have lower prediction quality than other models.
+   * 
+ * + * string model_type = 1; + */ + java.lang.String getModelType(); + /** + * + * + *
+   * Optional. Type of the model. The available values are:
+   * *   `cloud-high-accuracy-1` - (default) A model to be used via prediction
+   *               calls to AutoML API. Expected to have a higher latency, but
+   *               should also have a higher prediction quality than other
+   *               models.
+   * *   `cloud-low-latency-1` -  A model to be used via prediction
+   *               calls to AutoML API. Expected to have low latency, but may
+   *               have lower prediction quality than other models.
+   * 
+ * + * string model_type = 1; + */ + com.google.protobuf.ByteString getModelTypeBytes(); + + /** + * + * + *
+   * Output only. The number of nodes this model is deployed on. A node is an
+   * abstraction of a machine resource, which can handle online prediction QPS
+   * as given in the qps_per_node field.
+   * 
+ * + * int64 node_count = 3; + */ + long getNodeCount(); + + /** + * + * + *
+   * Output only. An approximate number of online prediction QPS that can
+   * be supported by this model per each node on which it is deployed.
+   * 
+ * + * double node_qps = 4; + */ + double getNodeQps(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java index dc1eefdf20ca..2b28d3d51b4a 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImageProto.java @@ -16,10 +16,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_ImageClassificationDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionDatasetMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionDatasetMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelDeploymentMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelDeploymentMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -36,14 +48,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rotobuf/timestamp.proto\"r\n\"ImageClassifi" + "cationDatasetMetadata\022L\n\023classification_" + "type\030\001 \001(\0162/.google.cloud.automl.v1beta1" - + ".ClassificationType\"x\n ImageClassificati" + + ".ClassificationType\"%\n#ImageObjectDetect" + + "ionDatasetMetadata\"\214\001\n ImageClassificati" + "onModelMetadata\022\025\n\rbase_model_id\030\001 \001(\t\022\024" + "\n\014train_budget\030\002 \001(\003\022\022\n\ntrain_cost\030\003 \001(\003" - + "\022\023\n\013stop_reason\030\005 \001(\tB\220\001\n\037com.google.clo" - + "ud.automl.v1beta1B\nImageProtoP\001ZAgoogle." - + "golang.org/genproto/googleapis/cloud/aut" - + "oml/v1beta1;automl\312\002\033Google\\Cloud\\AutoMl" - + "\\V1beta1b\006proto3" + + "\022\023\n\013stop_reason\030\005 \001(\t\022\022\n\nmodel_type\030\007 \001(" + + "\t\"]\n!ImageObjectDetectionModelMetadata\022\022" + + "\n\nmodel_type\030\001 \001(\t\022\022\n\nnode_count\030\003 \001(\003\022\020" + + "\n\010node_qps\030\004 \001(\001\"A\n+ImageObjectDetection" + + "ModelDeploymentMetadata\022\022\n\nnode_count\030\001 " + + "\001(\003B\220\001\n\037com.google.cloud.automl.v1beta1B" + + "\nImageProtoP\001ZAgoogle.golang.org/genprot" + + "o/googleapis/cloud/automl/v1beta1;automl" + + "\312\002\033Google\\Cloud\\AutoMl\\V1beta1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -69,13 +86,35 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "ClassificationType", }); - internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_descriptor = + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionDatasetMetadata_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionDatasetMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionDatasetMetadata_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_ImageClassificationModelMetadata_descriptor, new java.lang.String[] { - "BaseModelId", "TrainBudget", "TrainCost", "StopReason", + "BaseModelId", "TrainBudget", "TrainCost", "StopReason", "ModelType", + }); + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelMetadata_descriptor, + new java.lang.String[] { + "ModelType", "NodeCount", "NodeQps", + }); + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelDeploymentMetadata_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelDeploymentMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ImageObjectDetectionModelDeploymentMetadata_descriptor, + new java.lang.String[] { + "NodeCount", }); com.google.api.AnnotationsProto.getDescriptor(); com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(); diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadata.java new file mode 100644 index 000000000000..171ba077e145 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadata.java @@ -0,0 +1,436 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/operations.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Details of ImportData operation.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ImportDataOperationMetadata} + */ +public final class ImportDataOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ImportDataOperationMetadata) + ImportDataOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportDataOperationMetadata.newBuilder() to construct. + private ImportDataOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportDataOperationMetadata() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ImportDataOperationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ImportDataOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ImportDataOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.class, + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.ImportDataOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata other = + (com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ImportDataOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ImportDataOperationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImportDataOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ImportDataOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImportDataOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ImportDataOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImportDataOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ImportDataOperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImportDataOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ImportDataOperationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ImportDataOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ImportDataOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details of ImportData operation.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ImportDataOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ImportDataOperationMetadata) + com.google.cloud.automl.v1beta1.ImportDataOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ImportDataOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ImportDataOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.class, + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_ImportDataOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImportDataOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImportDataOperationMetadata build() { + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImportDataOperationMetadata buildPartial() { + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata result = + new com.google.cloud.automl.v1beta1.ImportDataOperationMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) { + return mergeFrom((com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.ImportDataOperationMetadata other) { + if (other == com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ImportDataOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ImportDataOperationMetadata) + private static final com.google.cloud.automl.v1beta1.ImportDataOperationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ImportDataOperationMetadata(); + } + + public static com.google.cloud.automl.v1beta1.ImportDataOperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportDataOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportDataOperationMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ImportDataOperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..2195a654ebc8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataOperationMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/operations.proto + +package com.google.cloud.automl.v1beta1; + +public interface ImportDataOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ImportDataOperationMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequest.java index 421be2cbdb22..53ac8002ece2 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequest.java @@ -7,8 +7,7 @@ * * *
- * Request message for
- * [AutoMl.ImportData][google.cloud.automl.v1beta1.AutoMl.ImportData].
+ * Request message for [AutoMl.ImportData][google.cloud.automl.v1beta1.AutoMl.ImportData].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ImportDataRequest} @@ -159,7 +158,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Required. The desired input location.
+   * Required. The desired input location and its domain specific semantics,
+   * if any.
    * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 3; @@ -171,7 +171,8 @@ public boolean hasInputConfig() { * * *
-   * Required. The desired input location.
+   * Required. The desired input location and its domain specific semantics,
+   * if any.
    * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 3; @@ -185,7 +186,8 @@ public com.google.cloud.automl.v1beta1.InputConfig getInputConfig() { * * *
-   * Required. The desired input location.
+   * Required. The desired input location and its domain specific semantics,
+   * if any.
    * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 3; @@ -371,8 +373,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for
-   * [AutoMl.ImportData][google.cloud.automl.v1beta1.AutoMl.ImportData].
+   * Request message for [AutoMl.ImportData][google.cloud.automl.v1beta1.AutoMl.ImportData].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ImportDataRequest} @@ -650,7 +651,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The desired input location.
+     * Required. The desired input location and its domain specific semantics,
+     * if any.
      * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 3; @@ -662,7 +664,8 @@ public boolean hasInputConfig() { * * *
-     * Required. The desired input location.
+     * Required. The desired input location and its domain specific semantics,
+     * if any.
      * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 3; @@ -680,7 +683,8 @@ public com.google.cloud.automl.v1beta1.InputConfig getInputConfig() { * * *
-     * Required. The desired input location.
+     * Required. The desired input location and its domain specific semantics,
+     * if any.
      * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 3; @@ -702,7 +706,8 @@ public Builder setInputConfig(com.google.cloud.automl.v1beta1.InputConfig value) * * *
-     * Required. The desired input location.
+     * Required. The desired input location and its domain specific semantics,
+     * if any.
      * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 3; @@ -722,7 +727,8 @@ public Builder setInputConfig( * * *
-     * Required. The desired input location.
+     * Required. The desired input location and its domain specific semantics,
+     * if any.
      * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 3; @@ -748,7 +754,8 @@ public Builder mergeInputConfig(com.google.cloud.automl.v1beta1.InputConfig valu * * *
-     * Required. The desired input location.
+     * Required. The desired input location and its domain specific semantics,
+     * if any.
      * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 3; @@ -768,7 +775,8 @@ public Builder clearInputConfig() { * * *
-     * Required. The desired input location.
+     * Required. The desired input location and its domain specific semantics,
+     * if any.
      * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 3; @@ -782,7 +790,8 @@ public com.google.cloud.automl.v1beta1.InputConfig.Builder getInputConfigBuilder * * *
-     * Required. The desired input location.
+     * Required. The desired input location and its domain specific semantics,
+     * if any.
      * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 3; @@ -800,7 +809,8 @@ public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigOrBuil * * *
-     * Required. The desired input location.
+     * Required. The desired input location and its domain specific semantics,
+     * if any.
      * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 3; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequestOrBuilder.java index 08311b3960f9..a22c4e2a841a 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ImportDataRequestOrBuilder.java @@ -35,7 +35,8 @@ public interface ImportDataRequestOrBuilder * * *
-   * Required. The desired input location.
+   * Required. The desired input location and its domain specific semantics,
+   * if any.
    * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 3; @@ -45,7 +46,8 @@ public interface ImportDataRequestOrBuilder * * *
-   * Required. The desired input location.
+   * Required. The desired input location and its domain specific semantics,
+   * if any.
    * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 3; @@ -55,7 +57,8 @@ public interface ImportDataRequestOrBuilder * * *
-   * Required. The desired input location.
+   * Required. The desired input location and its domain specific semantics,
+   * if any.
    * 
* * .google.cloud.automl.v1beta1.InputConfig input_config = 3; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfig.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfig.java index 92fc9220a63f..aba86545b2a7 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfig.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfig.java @@ -7,7 +7,217 @@ * * *
- * Input configuration.
+ * Input configuration for ImportData Action.
+ * The format of input depends on dataset_metadata the Dataset into which
+ * the import is happening has. As input source the
+ * [gcs_source][google.cloud.automl.v1beta1.InputConfig.gcs_source]
+ * is expected, unless specified otherwise. If a file with identical content
+ * (even if it had different GCS_FILE_PATH) is mentioned multiple times , then
+ * its label, bounding boxes etc. are appended. The same file should be always
+ * provided with the same ML_USE and GCS_FILE_PATH, if it is not then
+ * these values are nondeterministically selected from the given ones.
+ * The formats are represented in EBNF with commas being literal and with
+ * non-terminal symbols defined near the end of this comment. The formats are:
+ *  *  For Image Object Detection:
+ *         CSV file(s) with each line in format:
+ *           ML_USE,GCS_FILE_PATH,LABEL,BOUNDING_BOX
+ *           GCS_FILE_PATH leads to image of up to 30MB in size. Supported
+ *           extensions: .JPEG, .GIF, .PNG.
+ *           Each image is assumed to be exhaustively labeled. The
+ *           minimum allowed BOUNDING_BOX edge length is 0.01, and no more than
+ *           500 BOUNDING_BOX-es per image are allowed.
+ *         Three sample rows:
+ *           TRAIN,gs://folder/image1.png,car,0.1,0.1,,,0.3,0.3,,
+ *           TRAIN,gs://folder/image1.png,bike,.7,.6,,,.8,.9,,
+ *           TEST,gs://folder/im2.png,car,0.1,0.1,0.2,0.1,0.2,0.3,0.1,0.3
+ *  *  For Video Classification:
+ *         CSV file(s) with each line in format:
+ *           ML_USE,GCS_FILE_PATH
+ *           where ML_USE VALIDATE value should not be used. The GCS_FILE_PATH
+ *           should lead to another .csv file which describes examples that have
+ *           given ML_USE, using the following row format:
+ *           GCS_FILE_PATH,LABEL,TIME_SEGMENT_START,TIME_SEGMENT_END
+ *           Here GCS_FILE_PATH leads to a video of up to 50GB in size and up
+ *           to 3h duration. Supported extensions: .MOV, .MPEG4, .MP4, .AVI.
+ *           TIME_SEGMENT_START and TIME_SEGMENT_END must be within the
+ *           length of the video, and end has to be after the start. Any segment
+ *           of a video which has one or more labels on it, is considered a
+ *           hard negative for all other labels. Any segment with no labels on
+ *           it is considered to be unknown.
+ *         Sample top level CSV file:
+ *           TRAIN,gs://folder/train_videos.csv
+ *           TEST,gs://folder/test_videos.csv
+ *           UNASSIGNED,gs://folder/other_videos.csv
+ *         Three sample rows of a CSV file for a particular ML_USE:
+ *           gs://folder/video1.avi,car,120,180.000021
+ *           gs://folder/video1.avi,bike,150,180.000021
+ *           gs://folder/vid2.avi,car,0,60.5
+ *  *  For Text Extraction:
+ *         CSV file(s) with each line in format:
+ *           ML_USE,GCS_FILE_PATH
+ *           GCS_FILE_PATH leads to a .JSONL (i.e. JSON Lines) file which either
+ *           imports text in-line or as documents.
+ *           The in-line .JSONL file contains, per line, a proto that wraps a
+ *             TextSnippet proto (in json representation) followed by one or
+ *             more AnnotationPayload protos (called annotations), which have
+ *             display_name and text_extraction detail populated.
+ *             Given text is expected to be annotated exhaustively, e.g. if you
+ *             look for animals and text contains "dolphin" that is not labeled,
+ *             then "dolphin" will be assumed to not be an animal.
+ *             Any given text snippet content must have 30,000 characters or
+ *             less, and also be UTF-8 NFC encoded (ASCII already is).
+ *           The document .JSONL file contains, per line, a proto that wraps a
+ *             Document proto with input_config set. Only PDF documents are
+ *             supported now, and each document may be up to 2MB large.
+ *             Currently annotations on documents cannot be specified at import.
+ *           Any given .JSONL file must be 100MB or smaller.
+ *         Three sample CSV rows:
+ *           TRAIN,gs://folder/file1.jsonl
+ *           VALIDATE,gs://folder/file2.jsonl
+ *           TEST,gs://folder/file3.jsonl
+ *         Sample in-line JSON Lines file (presented here with artificial line
+ *         breaks, but the only actual line break is denoted by \n).:
+ *           {
+ *             "text_snippet": {
+ *               "content": "dog car cat"
+ *             },
+ *             "annotations": [
+ *                {
+ *                  "display_name": "animal",
+ *                  "text_extraction": {
+ *                    "text_segment": {"start_offset": 0, "end_offset": 2}
+ *                  }
+ *                },
+ *                {
+ *                  "display_name": "vehicle",
+ *                  "text_extraction": {
+ *                    "text_segment": {"start_offset": 4, "end_offset": 6}
+ *                  }
+ *                },
+ *                {
+ *                  "display_name": "animal",
+ *                  "text_extraction": {
+ *                    "text_segment": {"start_offset": 8, "end_offset": 10}
+ *                  }
+ *                }
+ *             ]
+ *           }\n
+ *           {
+ *              "text_snippet": {
+ *                "content": "This dog is good."
+ *              },
+ *              "annotations": [
+ *                 {
+ *                   "display_name": "animal",
+ *                   "text_extraction": {
+ *                     "text_segment": {"start_offset": 5, "end_offset": 7}
+ *                   }
+ *                 }
+ *              ]
+ *           }
+ *         Sample document JSON Lines file (presented here with artificial line
+ *         breaks, but the only actual line break is denoted by \n).:
+ *           {
+ *             "document": {
+ *               "input_config": {
+ *                 "gcs_source": { "input_uris": [ "gs://folder/document1.pdf" ]
+ *                 }
+ *               }
+ *             }
+ *           }\n
+ *           {
+ *             "document": {
+ *               "input_config": {
+ *                 "gcs_source": { "input_uris": [ "gs://folder/document2.pdf" ]
+ *                 }
+ *               }
+ *             }
+ *           }
+ *   *  For Tables:
+ *         Either
+ *         [gcs_source][google.cloud.automl.v1beta1.InputConfig.gcs_source] or
+ * [bigquery_source][google.cloud.automl.v1beta1.InputConfig.bigquery_source]
+ *         can be used. All inputs will be concatenated into a single
+ * [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_name]
+ *         For gcs_source:
+ *           CSV file(s), where first file must have a header containing unique
+ *           column names, other files may have such header line too, and all
+ *           other lines contain values for the header columns. Each line must
+ *           have 1,000,000 or fewer characters.
+ *           First three sample rows of a CSV file:
+ *           "Id","First Name","Last Name","Dob","Addresses"
+ * "1","John","Doe","1968-01-22","[{"status":"current","address":"123_First_Avenue","city":"Seattle","state":"WA","zip":"11111","numberOfYears":"1"},{"status":"previous","address":"456_Main_Street","city":"Portland","state":"OR","zip":"22222","numberOfYears":"5"}]"
+ * "2","Jane","Doe","1980-10-16","[{"status":"current","address":"789_Any_Avenue","city":"Albany","state":"NY","zip":"33333","numberOfYears":"2"},{"status":"previous","address":"321_Main_Street","city":"Hoboken","state":"NJ","zip":"44444","numberOfYears":"3"}]}
+ *         For bigquery_source:
+ *           An URI of a BigQuery table.
+ *         An imported table must have between 2 and 1,000 columns, inclusive,
+ *         and between 1,000 and 10,000,000 rows, inclusive.
+ *  *  For Text Sentiment:
+ *         CSV file(s) with each line in format:
+ *           ML_USE,TEXT_SNIPPET,SENTIMENT
+ *           TEXT_SNIPPET must have up to 500 characters.
+ *         Three sample rows:
+ *         TRAIN,"@freewrytin God is way too good for Claritin",2
+ *         TRAIN,"I need Claritin so bad",3
+ *         TEST,"Thank god for Claritin.",4
+ *  Definitions:
+ *  ML_USE = "TRAIN" | "VALIDATE" | "TEST" | "UNASSIGNED"
+ *           Describes how the given example (file) should be used for model
+ *           training. "UNASSIGNED" can be used when user has no preference.
+ *  GCS_FILE_PATH = A path to file on GCS, e.g. "gs://folder/image1.png".
+ *  LABEL = A display name of an object on an image, video etc., e.g. "dog".
+ *          Must be up to 32 characters long and can consist only of ASCII
+ *          Latin letters A-Z and a-z, underscores(_), and ASCII digits 0-9.
+ *          For each label an AnnotationSpec is created which display_name
+ *          becomes the label; AnnotationSpecs are given back in predictions.
+ *  INSTANCE_ID = A positive integer that identifies a specific instance of a
+ *                labeled entity on an example. Used e.g. to track two cars on
+ *                a video while being able to tell apart which one is which.
+ *  BOUNDING_BOX = VERTEX,VERTEX,VERTEX,VERTEX | VERTEX,,,VERTEX,,
+ *                 A rectangle parallel to the frame of the example (image,
+ *                 video). If 4 vertices are given they are connected by edges
+ *                 in the order provided, if 2 are given they are recognized
+ *                 as diagonally opposite vertices of the rectangle.
+ *  VERTEX = COORDINATE,COORDINATE
+ *           First coordinate is horizontal (x), the second is vertical (y).
+ *  COORDINATE = A float in 0 to 1 range, relative to total length of
+ *               image or video in given dimension. For fractions the
+ *               leading non-decimal 0 can be omitted (i.e. 0.3 = .3).
+ *               Point 0,0 is in top left.
+ *  TIME_SEGMENT_START = TIME_OFFSET
+ *                       Expresses a beginning, inclusive, of a time segment
+ *                       within an example that has a time dimension
+ *                       (e.g. video).
+ *  TIME_SEGMENT_END = TIME_OFFSET
+ *                     Expresses an end, exclusive, of a time segment within
+ *                     an example that has a time dimension (e.g. video).
+ *  TIME_OFFSET = A number of seconds as measured from the start of an
+ *                example (e.g. video). Fractions are allowed, up to a
+ *                microsecond precision. "inf" is allowed, and it means the end
+ *                of the example.
+ *  TEXT_SNIPPET = A content of a text snippet, UTF-8 encoded.
+ *  SENTIMENT = An integer between 0 and
+ *              Dataset.text_sentiment_dataset_metadata.sentiment_max
+ *              (inclusive). Describes the ordinal of the sentiment - higher
+ *              value means a more positive sentiment. All the values are
+ *              completely relative, i.e. neither 0 needs to mean a negative or
+ *              neutral sentiment nor sentiment_max needs to mean a positive one
+ *              - it is just required that 0 is the least positive sentiment
+ *              in the data, and sentiment_max is the  most positive one.
+ *              The SENTIMENT shouldn't be confused with "score" or "magnitude"
+ *              from the previous Natural Language Sentiment Analysis API.
+ *              All SENTIMENT values between 0 and sentiment_max must be
+ *              represented in the imported data. On prediction the same 0 to
+ *              sentiment_max range will be used. The difference between
+ *              neighboring sentiment values needs not to be uniform, e.g. 1 and
+ *              2 may be similar whereas the difference between 2 and 3 may be
+ *              huge.
+ *  Errors:
+ *  If any of the provided CSV files can't be parsed or if more than certain
+ *  percent of CSV rows cannot be processed then the operation fails and
+ *  nothing is imported. Regardless of overall success or failure the per-row
+ *  failures, up to a certain count cap, will be listed in
+ *  Operation.metadata.partial_failures.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.InputConfig} @@ -64,6 +274,35 @@ private InputConfig( sourceCase_ = 1; break; } + case 18: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + params_ = + com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry params__ = + input.readMessage( + ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + params_.getMutableMap().put(params__.getKey(), params__.getValue()); + break; + } + case 26: + { + com.google.cloud.automl.v1beta1.BigQuerySource.Builder subBuilder = null; + if (sourceCase_ == 3) { + subBuilder = ((com.google.cloud.automl.v1beta1.BigQuerySource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.automl.v1beta1.BigQuerySource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.BigQuerySource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 3; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -88,6 +327,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 2: + return internalGetParams(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -98,11 +348,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.automl.v1beta1.InputConfig.Builder.class); } + private int bitField0_; private int sourceCase_ = 0; private java.lang.Object source_; public enum SourceCase implements com.google.protobuf.Internal.EnumLite { GCS_SOURCE(1), + BIGQUERY_SOURCE(3), SOURCE_NOT_SET(0); private final int value; @@ -119,6 +371,8 @@ public static SourceCase forNumber(int value) { switch (value) { case 1: return GCS_SOURCE; + case 3: + return BIGQUERY_SOURCE; case 0: return SOURCE_NOT_SET; default: @@ -140,7 +394,7 @@ public SourceCase getSourceCase() { * * *
-   * The GCS location for the input content.
+   * The Google Cloud Storage location for the input content.
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; @@ -152,7 +406,7 @@ public boolean hasGcsSource() { * * *
-   * The GCS location for the input content.
+   * The Google Cloud Storage location for the input content.
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; @@ -167,7 +421,7 @@ public com.google.cloud.automl.v1beta1.GcsSource getGcsSource() { * * *
-   * The GCS location for the input content.
+   * The Google Cloud Storage location for the input content.
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; @@ -179,6 +433,171 @@ public com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder( return com.google.cloud.automl.v1beta1.GcsSource.getDefaultInstance(); } + public static final int BIGQUERY_SOURCE_FIELD_NUMBER = 3; + /** + * + * + *
+   * The BigQuery location for the input content.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; + */ + public boolean hasBigquerySource() { + return sourceCase_ == 3; + } + /** + * + * + *
+   * The BigQuery location for the input content.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; + */ + public com.google.cloud.automl.v1beta1.BigQuerySource getBigquerySource() { + if (sourceCase_ == 3) { + return (com.google.cloud.automl.v1beta1.BigQuerySource) source_; + } + return com.google.cloud.automl.v1beta1.BigQuerySource.getDefaultInstance(); + } + /** + * + * + *
+   * The BigQuery location for the input content.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; + */ + public com.google.cloud.automl.v1beta1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() { + if (sourceCase_ == 3) { + return (com.google.cloud.automl.v1beta1.BigQuerySource) source_; + } + return com.google.cloud.automl.v1beta1.BigQuerySource.getDefaultInstance(); + } + + public static final int PARAMS_FIELD_NUMBER = 2; + + private static final class ParamsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_InputConfig_ParamsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { + if (params_ == null) { + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + } + return params_; + } + + public int getParamsCount() { + return internalGetParams().getMap().size(); + } + /** + * + * + *
+   * Additional domain-specific parameters describing the semantic of the
+   * imported data, any string must be up to 25000
+   * characters long.
+   * *  For Tables:
+   *    `schema_inference_version` - (integer) Required. The version of the
+   *        algorithm that should be used for the initial inference of the
+   *        schema (columns' DataTypes) of the table the data is being imported
+   *        into. Allowed values: "1".
+   * 
+ * + * map<string, string> params = 2; + */ + public boolean containsParams(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetParams().getMap().containsKey(key); + } + /** Use {@link #getParamsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getParams() { + return getParamsMap(); + } + /** + * + * + *
+   * Additional domain-specific parameters describing the semantic of the
+   * imported data, any string must be up to 25000
+   * characters long.
+   * *  For Tables:
+   *    `schema_inference_version` - (integer) Required. The version of the
+   *        algorithm that should be used for the initial inference of the
+   *        schema (columns' DataTypes) of the table the data is being imported
+   *        into. Allowed values: "1".
+   * 
+ * + * map<string, string> params = 2; + */ + public java.util.Map getParamsMap() { + return internalGetParams().getMap(); + } + /** + * + * + *
+   * Additional domain-specific parameters describing the semantic of the
+   * imported data, any string must be up to 25000
+   * characters long.
+   * *  For Tables:
+   *    `schema_inference_version` - (integer) Required. The version of the
+   *        algorithm that should be used for the initial inference of the
+   *        schema (columns' DataTypes) of the table the data is being imported
+   *        into. Allowed values: "1".
+   * 
+ * + * map<string, string> params = 2; + */ + public java.lang.String getParamsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetParams().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Additional domain-specific parameters describing the semantic of the
+   * imported data, any string must be up to 25000
+   * characters long.
+   * *  For Tables:
+   *    `schema_inference_version` - (integer) Required. The version of the
+   *        algorithm that should be used for the initial inference of the
+   *        schema (columns' DataTypes) of the table the data is being imported
+   *        into. Allowed values: "1".
+   * 
+ * + * map<string, string> params = 2; + */ + public java.lang.String getParamsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetParams().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -196,6 +615,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sourceCase_ == 1) { output.writeMessage(1, (com.google.cloud.automl.v1beta1.GcsSource) source_); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 2); + if (sourceCase_ == 3) { + output.writeMessage(3, (com.google.cloud.automl.v1beta1.BigQuerySource) source_); + } unknownFields.writeTo(output); } @@ -210,6 +634,21 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, (com.google.cloud.automl.v1beta1.GcsSource) source_); } + for (java.util.Map.Entry entry : + internalGetParams().getMap().entrySet()) { + com.google.protobuf.MapEntry params__ = + ParamsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, params__); + } + if (sourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.automl.v1beta1.BigQuerySource) source_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -226,11 +665,15 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.automl.v1beta1.InputConfig other = (com.google.cloud.automl.v1beta1.InputConfig) obj; + if (!internalGetParams().equals(other.internalGetParams())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: if (!getGcsSource().equals(other.getGcsSource())) return false; break; + case 3: + if (!getBigquerySource().equals(other.getBigquerySource())) return false; + break; case 0: default: } @@ -245,11 +688,19 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetParams().getMap().isEmpty()) { + hash = (37 * hash) + PARAMS_FIELD_NUMBER; + hash = (53 * hash) + internalGetParams().hashCode(); + } switch (sourceCase_) { case 1: hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getGcsSource().hashCode(); break; + case 3: + hash = (37 * hash) + BIGQUERY_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getBigquerySource().hashCode(); + break; case 0: default: } @@ -357,7 +808,217 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Input configuration.
+   * Input configuration for ImportData Action.
+   * The format of input depends on dataset_metadata the Dataset into which
+   * the import is happening has. As input source the
+   * [gcs_source][google.cloud.automl.v1beta1.InputConfig.gcs_source]
+   * is expected, unless specified otherwise. If a file with identical content
+   * (even if it had different GCS_FILE_PATH) is mentioned multiple times , then
+   * its label, bounding boxes etc. are appended. The same file should be always
+   * provided with the same ML_USE and GCS_FILE_PATH, if it is not then
+   * these values are nondeterministically selected from the given ones.
+   * The formats are represented in EBNF with commas being literal and with
+   * non-terminal symbols defined near the end of this comment. The formats are:
+   *  *  For Image Object Detection:
+   *         CSV file(s) with each line in format:
+   *           ML_USE,GCS_FILE_PATH,LABEL,BOUNDING_BOX
+   *           GCS_FILE_PATH leads to image of up to 30MB in size. Supported
+   *           extensions: .JPEG, .GIF, .PNG.
+   *           Each image is assumed to be exhaustively labeled. The
+   *           minimum allowed BOUNDING_BOX edge length is 0.01, and no more than
+   *           500 BOUNDING_BOX-es per image are allowed.
+   *         Three sample rows:
+   *           TRAIN,gs://folder/image1.png,car,0.1,0.1,,,0.3,0.3,,
+   *           TRAIN,gs://folder/image1.png,bike,.7,.6,,,.8,.9,,
+   *           TEST,gs://folder/im2.png,car,0.1,0.1,0.2,0.1,0.2,0.3,0.1,0.3
+   *  *  For Video Classification:
+   *         CSV file(s) with each line in format:
+   *           ML_USE,GCS_FILE_PATH
+   *           where ML_USE VALIDATE value should not be used. The GCS_FILE_PATH
+   *           should lead to another .csv file which describes examples that have
+   *           given ML_USE, using the following row format:
+   *           GCS_FILE_PATH,LABEL,TIME_SEGMENT_START,TIME_SEGMENT_END
+   *           Here GCS_FILE_PATH leads to a video of up to 50GB in size and up
+   *           to 3h duration. Supported extensions: .MOV, .MPEG4, .MP4, .AVI.
+   *           TIME_SEGMENT_START and TIME_SEGMENT_END must be within the
+   *           length of the video, and end has to be after the start. Any segment
+   *           of a video which has one or more labels on it, is considered a
+   *           hard negative for all other labels. Any segment with no labels on
+   *           it is considered to be unknown.
+   *         Sample top level CSV file:
+   *           TRAIN,gs://folder/train_videos.csv
+   *           TEST,gs://folder/test_videos.csv
+   *           UNASSIGNED,gs://folder/other_videos.csv
+   *         Three sample rows of a CSV file for a particular ML_USE:
+   *           gs://folder/video1.avi,car,120,180.000021
+   *           gs://folder/video1.avi,bike,150,180.000021
+   *           gs://folder/vid2.avi,car,0,60.5
+   *  *  For Text Extraction:
+   *         CSV file(s) with each line in format:
+   *           ML_USE,GCS_FILE_PATH
+   *           GCS_FILE_PATH leads to a .JSONL (i.e. JSON Lines) file which either
+   *           imports text in-line or as documents.
+   *           The in-line .JSONL file contains, per line, a proto that wraps a
+   *             TextSnippet proto (in json representation) followed by one or
+   *             more AnnotationPayload protos (called annotations), which have
+   *             display_name and text_extraction detail populated.
+   *             Given text is expected to be annotated exhaustively, e.g. if you
+   *             look for animals and text contains "dolphin" that is not labeled,
+   *             then "dolphin" will be assumed to not be an animal.
+   *             Any given text snippet content must have 30,000 characters or
+   *             less, and also be UTF-8 NFC encoded (ASCII already is).
+   *           The document .JSONL file contains, per line, a proto that wraps a
+   *             Document proto with input_config set. Only PDF documents are
+   *             supported now, and each document may be up to 2MB large.
+   *             Currently annotations on documents cannot be specified at import.
+   *           Any given .JSONL file must be 100MB or smaller.
+   *         Three sample CSV rows:
+   *           TRAIN,gs://folder/file1.jsonl
+   *           VALIDATE,gs://folder/file2.jsonl
+   *           TEST,gs://folder/file3.jsonl
+   *         Sample in-line JSON Lines file (presented here with artificial line
+   *         breaks, but the only actual line break is denoted by \n).:
+   *           {
+   *             "text_snippet": {
+   *               "content": "dog car cat"
+   *             },
+   *             "annotations": [
+   *                {
+   *                  "display_name": "animal",
+   *                  "text_extraction": {
+   *                    "text_segment": {"start_offset": 0, "end_offset": 2}
+   *                  }
+   *                },
+   *                {
+   *                  "display_name": "vehicle",
+   *                  "text_extraction": {
+   *                    "text_segment": {"start_offset": 4, "end_offset": 6}
+   *                  }
+   *                },
+   *                {
+   *                  "display_name": "animal",
+   *                  "text_extraction": {
+   *                    "text_segment": {"start_offset": 8, "end_offset": 10}
+   *                  }
+   *                }
+   *             ]
+   *           }\n
+   *           {
+   *              "text_snippet": {
+   *                "content": "This dog is good."
+   *              },
+   *              "annotations": [
+   *                 {
+   *                   "display_name": "animal",
+   *                   "text_extraction": {
+   *                     "text_segment": {"start_offset": 5, "end_offset": 7}
+   *                   }
+   *                 }
+   *              ]
+   *           }
+   *         Sample document JSON Lines file (presented here with artificial line
+   *         breaks, but the only actual line break is denoted by \n).:
+   *           {
+   *             "document": {
+   *               "input_config": {
+   *                 "gcs_source": { "input_uris": [ "gs://folder/document1.pdf" ]
+   *                 }
+   *               }
+   *             }
+   *           }\n
+   *           {
+   *             "document": {
+   *               "input_config": {
+   *                 "gcs_source": { "input_uris": [ "gs://folder/document2.pdf" ]
+   *                 }
+   *               }
+   *             }
+   *           }
+   *   *  For Tables:
+   *         Either
+   *         [gcs_source][google.cloud.automl.v1beta1.InputConfig.gcs_source] or
+   * [bigquery_source][google.cloud.automl.v1beta1.InputConfig.bigquery_source]
+   *         can be used. All inputs will be concatenated into a single
+   * [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_name]
+   *         For gcs_source:
+   *           CSV file(s), where first file must have a header containing unique
+   *           column names, other files may have such header line too, and all
+   *           other lines contain values for the header columns. Each line must
+   *           have 1,000,000 or fewer characters.
+   *           First three sample rows of a CSV file:
+   *           "Id","First Name","Last Name","Dob","Addresses"
+   * "1","John","Doe","1968-01-22","[{"status":"current","address":"123_First_Avenue","city":"Seattle","state":"WA","zip":"11111","numberOfYears":"1"},{"status":"previous","address":"456_Main_Street","city":"Portland","state":"OR","zip":"22222","numberOfYears":"5"}]"
+   * "2","Jane","Doe","1980-10-16","[{"status":"current","address":"789_Any_Avenue","city":"Albany","state":"NY","zip":"33333","numberOfYears":"2"},{"status":"previous","address":"321_Main_Street","city":"Hoboken","state":"NJ","zip":"44444","numberOfYears":"3"}]}
+   *         For bigquery_source:
+   *           An URI of a BigQuery table.
+   *         An imported table must have between 2 and 1,000 columns, inclusive,
+   *         and between 1,000 and 10,000,000 rows, inclusive.
+   *  *  For Text Sentiment:
+   *         CSV file(s) with each line in format:
+   *           ML_USE,TEXT_SNIPPET,SENTIMENT
+   *           TEXT_SNIPPET must have up to 500 characters.
+   *         Three sample rows:
+   *         TRAIN,"@freewrytin God is way too good for Claritin",2
+   *         TRAIN,"I need Claritin so bad",3
+   *         TEST,"Thank god for Claritin.",4
+   *  Definitions:
+   *  ML_USE = "TRAIN" | "VALIDATE" | "TEST" | "UNASSIGNED"
+   *           Describes how the given example (file) should be used for model
+   *           training. "UNASSIGNED" can be used when user has no preference.
+   *  GCS_FILE_PATH = A path to file on GCS, e.g. "gs://folder/image1.png".
+   *  LABEL = A display name of an object on an image, video etc., e.g. "dog".
+   *          Must be up to 32 characters long and can consist only of ASCII
+   *          Latin letters A-Z and a-z, underscores(_), and ASCII digits 0-9.
+   *          For each label an AnnotationSpec is created which display_name
+   *          becomes the label; AnnotationSpecs are given back in predictions.
+   *  INSTANCE_ID = A positive integer that identifies a specific instance of a
+   *                labeled entity on an example. Used e.g. to track two cars on
+   *                a video while being able to tell apart which one is which.
+   *  BOUNDING_BOX = VERTEX,VERTEX,VERTEX,VERTEX | VERTEX,,,VERTEX,,
+   *                 A rectangle parallel to the frame of the example (image,
+   *                 video). If 4 vertices are given they are connected by edges
+   *                 in the order provided, if 2 are given they are recognized
+   *                 as diagonally opposite vertices of the rectangle.
+   *  VERTEX = COORDINATE,COORDINATE
+   *           First coordinate is horizontal (x), the second is vertical (y).
+   *  COORDINATE = A float in 0 to 1 range, relative to total length of
+   *               image or video in given dimension. For fractions the
+   *               leading non-decimal 0 can be omitted (i.e. 0.3 = .3).
+   *               Point 0,0 is in top left.
+   *  TIME_SEGMENT_START = TIME_OFFSET
+   *                       Expresses a beginning, inclusive, of a time segment
+   *                       within an example that has a time dimension
+   *                       (e.g. video).
+   *  TIME_SEGMENT_END = TIME_OFFSET
+   *                     Expresses an end, exclusive, of a time segment within
+   *                     an example that has a time dimension (e.g. video).
+   *  TIME_OFFSET = A number of seconds as measured from the start of an
+   *                example (e.g. video). Fractions are allowed, up to a
+   *                microsecond precision. "inf" is allowed, and it means the end
+   *                of the example.
+   *  TEXT_SNIPPET = A content of a text snippet, UTF-8 encoded.
+   *  SENTIMENT = An integer between 0 and
+   *              Dataset.text_sentiment_dataset_metadata.sentiment_max
+   *              (inclusive). Describes the ordinal of the sentiment - higher
+   *              value means a more positive sentiment. All the values are
+   *              completely relative, i.e. neither 0 needs to mean a negative or
+   *              neutral sentiment nor sentiment_max needs to mean a positive one
+   *              - it is just required that 0 is the least positive sentiment
+   *              in the data, and sentiment_max is the  most positive one.
+   *              The SENTIMENT shouldn't be confused with "score" or "magnitude"
+   *              from the previous Natural Language Sentiment Analysis API.
+   *              All SENTIMENT values between 0 and sentiment_max must be
+   *              represented in the imported data. On prediction the same 0 to
+   *              sentiment_max range will be used. The difference between
+   *              neighboring sentiment values needs not to be uniform, e.g. 1 and
+   *              2 may be similar whereas the difference between 2 and 3 may be
+   *              huge.
+   *  Errors:
+   *  If any of the provided CSV files can't be parsed or if more than certain
+   *  percent of CSV rows cannot be processed then the operation fails and
+   *  nothing is imported. Regardless of overall success or failure the per-row
+   *  failures, up to a certain count cap, will be listed in
+   *  Operation.metadata.partial_failures.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.InputConfig} @@ -371,6 +1032,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 2: + return internalGetParams(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 2: + return internalGetMutableParams(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -398,6 +1079,7 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + internalGetMutableParams().clear(); sourceCase_ = 0; source_ = null; return this; @@ -427,6 +1109,8 @@ public com.google.cloud.automl.v1beta1.InputConfig build() { public com.google.cloud.automl.v1beta1.InputConfig buildPartial() { com.google.cloud.automl.v1beta1.InputConfig result = new com.google.cloud.automl.v1beta1.InputConfig(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (sourceCase_ == 1) { if (gcsSourceBuilder_ == null) { result.source_ = source_; @@ -434,6 +1118,16 @@ public com.google.cloud.automl.v1beta1.InputConfig buildPartial() { result.source_ = gcsSourceBuilder_.build(); } } + if (sourceCase_ == 3) { + if (bigquerySourceBuilder_ == null) { + result.source_ = source_; + } else { + result.source_ = bigquerySourceBuilder_.build(); + } + } + result.params_ = internalGetParams(); + result.params_.makeImmutable(); + result.bitField0_ = to_bitField0_; result.sourceCase_ = sourceCase_; onBuilt(); return result; @@ -484,12 +1178,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.automl.v1beta1.InputConfig other) { if (other == com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance()) return this; + internalGetMutableParams().mergeFrom(other.internalGetParams()); switch (other.getSourceCase()) { case GCS_SOURCE: { mergeGcsSource(other.getGcsSource()); break; } + case BIGQUERY_SOURCE: + { + mergeBigquerySource(other.getBigquerySource()); + break; + } case SOURCE_NOT_SET: { break; @@ -538,6 +1238,8 @@ public Builder clearSource() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.automl.v1beta1.GcsSource, com.google.cloud.automl.v1beta1.GcsSource.Builder, @@ -547,7 +1249,7 @@ public Builder clearSource() { * * *
-     * The GCS location for the input content.
+     * The Google Cloud Storage location for the input content.
      * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; @@ -559,7 +1261,7 @@ public boolean hasGcsSource() { * * *
-     * The GCS location for the input content.
+     * The Google Cloud Storage location for the input content.
      * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; @@ -581,7 +1283,7 @@ public com.google.cloud.automl.v1beta1.GcsSource getGcsSource() { * * *
-     * The GCS location for the input content.
+     * The Google Cloud Storage location for the input content.
      * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; @@ -603,7 +1305,7 @@ public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource value) { * * *
-     * The GCS location for the input content.
+     * The Google Cloud Storage location for the input content.
      * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; @@ -622,7 +1324,7 @@ public Builder setGcsSource(com.google.cloud.automl.v1beta1.GcsSource.Builder bu * * *
-     * The GCS location for the input content.
+     * The Google Cloud Storage location for the input content.
      * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; @@ -653,7 +1355,7 @@ public Builder mergeGcsSource(com.google.cloud.automl.v1beta1.GcsSource value) { * * *
-     * The GCS location for the input content.
+     * The Google Cloud Storage location for the input content.
      * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; @@ -678,7 +1380,7 @@ public Builder clearGcsSource() { * * *
-     * The GCS location for the input content.
+     * The Google Cloud Storage location for the input content.
      * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; @@ -690,7 +1392,7 @@ public com.google.cloud.automl.v1beta1.GcsSource.Builder getGcsSourceBuilder() { * * *
-     * The GCS location for the input content.
+     * The Google Cloud Storage location for the input content.
      * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; @@ -709,7 +1411,7 @@ public com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder( * * *
-     * The GCS location for the input content.
+     * The Google Cloud Storage location for the input content.
      * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; @@ -739,6 +1441,409 @@ public com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder( return gcsSourceBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BigQuerySource, + com.google.cloud.automl.v1beta1.BigQuerySource.Builder, + com.google.cloud.automl.v1beta1.BigQuerySourceOrBuilder> + bigquerySourceBuilder_; + /** + * + * + *
+     * The BigQuery location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; + */ + public boolean hasBigquerySource() { + return sourceCase_ == 3; + } + /** + * + * + *
+     * The BigQuery location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; + */ + public com.google.cloud.automl.v1beta1.BigQuerySource getBigquerySource() { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 3) { + return (com.google.cloud.automl.v1beta1.BigQuerySource) source_; + } + return com.google.cloud.automl.v1beta1.BigQuerySource.getDefaultInstance(); + } else { + if (sourceCase_ == 3) { + return bigquerySourceBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.BigQuerySource.getDefaultInstance(); + } + } + /** + * + * + *
+     * The BigQuery location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; + */ + public Builder setBigquerySource(com.google.cloud.automl.v1beta1.BigQuerySource value) { + if (bigquerySourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + bigquerySourceBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
+     * The BigQuery location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; + */ + public Builder setBigquerySource( + com.google.cloud.automl.v1beta1.BigQuerySource.Builder builderForValue) { + if (bigquerySourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + bigquerySourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
+     * The BigQuery location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; + */ + public Builder mergeBigquerySource(com.google.cloud.automl.v1beta1.BigQuerySource value) { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 3 + && source_ != com.google.cloud.automl.v1beta1.BigQuerySource.getDefaultInstance()) { + source_ = + com.google.cloud.automl.v1beta1.BigQuerySource.newBuilder( + (com.google.cloud.automl.v1beta1.BigQuerySource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 3) { + bigquerySourceBuilder_.mergeFrom(value); + } + bigquerySourceBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
+     * The BigQuery location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; + */ + public Builder clearBigquerySource() { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + bigquerySourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The BigQuery location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; + */ + public com.google.cloud.automl.v1beta1.BigQuerySource.Builder getBigquerySourceBuilder() { + return getBigquerySourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The BigQuery location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; + */ + public com.google.cloud.automl.v1beta1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() { + if ((sourceCase_ == 3) && (bigquerySourceBuilder_ != null)) { + return bigquerySourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (com.google.cloud.automl.v1beta1.BigQuerySource) source_; + } + return com.google.cloud.automl.v1beta1.BigQuerySource.getDefaultInstance(); + } + } + /** + * + * + *
+     * The BigQuery location for the input content.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BigQuerySource, + com.google.cloud.automl.v1beta1.BigQuerySource.Builder, + com.google.cloud.automl.v1beta1.BigQuerySourceOrBuilder> + getBigquerySourceFieldBuilder() { + if (bigquerySourceBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = com.google.cloud.automl.v1beta1.BigQuerySource.getDefaultInstance(); + } + bigquerySourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BigQuerySource, + com.google.cloud.automl.v1beta1.BigQuerySource.Builder, + com.google.cloud.automl.v1beta1.BigQuerySourceOrBuilder>( + (com.google.cloud.automl.v1beta1.BigQuerySource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; + onChanged(); + ; + return bigquerySourceBuilder_; + } + + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { + if (params_ == null) { + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + } + return params_; + } + + private com.google.protobuf.MapField + internalGetMutableParams() { + onChanged(); + ; + if (params_ == null) { + params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + } + if (!params_.isMutable()) { + params_ = params_.copy(); + } + return params_; + } + + public int getParamsCount() { + return internalGetParams().getMap().size(); + } + /** + * + * + *
+     * Additional domain-specific parameters describing the semantic of the
+     * imported data, any string must be up to 25000
+     * characters long.
+     * *  For Tables:
+     *    `schema_inference_version` - (integer) Required. The version of the
+     *        algorithm that should be used for the initial inference of the
+     *        schema (columns' DataTypes) of the table the data is being imported
+     *        into. Allowed values: "1".
+     * 
+ * + * map<string, string> params = 2; + */ + public boolean containsParams(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetParams().getMap().containsKey(key); + } + /** Use {@link #getParamsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getParams() { + return getParamsMap(); + } + /** + * + * + *
+     * Additional domain-specific parameters describing the semantic of the
+     * imported data, any string must be up to 25000
+     * characters long.
+     * *  For Tables:
+     *    `schema_inference_version` - (integer) Required. The version of the
+     *        algorithm that should be used for the initial inference of the
+     *        schema (columns' DataTypes) of the table the data is being imported
+     *        into. Allowed values: "1".
+     * 
+ * + * map<string, string> params = 2; + */ + public java.util.Map getParamsMap() { + return internalGetParams().getMap(); + } + /** + * + * + *
+     * Additional domain-specific parameters describing the semantic of the
+     * imported data, any string must be up to 25000
+     * characters long.
+     * *  For Tables:
+     *    `schema_inference_version` - (integer) Required. The version of the
+     *        algorithm that should be used for the initial inference of the
+     *        schema (columns' DataTypes) of the table the data is being imported
+     *        into. Allowed values: "1".
+     * 
+ * + * map<string, string> params = 2; + */ + public java.lang.String getParamsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetParams().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Additional domain-specific parameters describing the semantic of the
+     * imported data, any string must be up to 25000
+     * characters long.
+     * *  For Tables:
+     *    `schema_inference_version` - (integer) Required. The version of the
+     *        algorithm that should be used for the initial inference of the
+     *        schema (columns' DataTypes) of the table the data is being imported
+     *        into. Allowed values: "1".
+     * 
+ * + * map<string, string> params = 2; + */ + public java.lang.String getParamsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetParams().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearParams() { + internalGetMutableParams().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Additional domain-specific parameters describing the semantic of the
+     * imported data, any string must be up to 25000
+     * characters long.
+     * *  For Tables:
+     *    `schema_inference_version` - (integer) Required. The version of the
+     *        algorithm that should be used for the initial inference of the
+     *        schema (columns' DataTypes) of the table the data is being imported
+     *        into. Allowed values: "1".
+     * 
+ * + * map<string, string> params = 2; + */ + public Builder removeParams(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableParams().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableParams() { + return internalGetMutableParams().getMutableMap(); + } + /** + * + * + *
+     * Additional domain-specific parameters describing the semantic of the
+     * imported data, any string must be up to 25000
+     * characters long.
+     * *  For Tables:
+     *    `schema_inference_version` - (integer) Required. The version of the
+     *        algorithm that should be used for the initial inference of the
+     *        schema (columns' DataTypes) of the table the data is being imported
+     *        into. Allowed values: "1".
+     * 
+ * + * map<string, string> params = 2; + */ + public Builder putParams(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableParams().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Additional domain-specific parameters describing the semantic of the
+     * imported data, any string must be up to 25000
+     * characters long.
+     * *  For Tables:
+     *    `schema_inference_version` - (integer) Required. The version of the
+     *        algorithm that should be used for the initial inference of the
+     *        schema (columns' DataTypes) of the table the data is being imported
+     *        into. Allowed values: "1".
+     * 
+ * + * map<string, string> params = 2; + */ + public Builder putAllParams(java.util.Map values) { + internalGetMutableParams().getMutableMap().putAll(values); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfigOrBuilder.java index 79432434d401..8f3de9d26094 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfigOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/InputConfigOrBuilder.java @@ -12,7 +12,7 @@ public interface InputConfigOrBuilder * * *
-   * The GCS location for the input content.
+   * The Google Cloud Storage location for the input content.
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; @@ -22,7 +22,7 @@ public interface InputConfigOrBuilder * * *
-   * The GCS location for the input content.
+   * The Google Cloud Storage location for the input content.
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; @@ -32,12 +32,132 @@ public interface InputConfigOrBuilder * * *
-   * The GCS location for the input content.
+   * The Google Cloud Storage location for the input content.
    * 
* * .google.cloud.automl.v1beta1.GcsSource gcs_source = 1; */ com.google.cloud.automl.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(); + /** + * + * + *
+   * The BigQuery location for the input content.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; + */ + boolean hasBigquerySource(); + /** + * + * + *
+   * The BigQuery location for the input content.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; + */ + com.google.cloud.automl.v1beta1.BigQuerySource getBigquerySource(); + /** + * + * + *
+   * The BigQuery location for the input content.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQuerySource bigquery_source = 3; + */ + com.google.cloud.automl.v1beta1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder(); + + /** + * + * + *
+   * Additional domain-specific parameters describing the semantic of the
+   * imported data, any string must be up to 25000
+   * characters long.
+   * *  For Tables:
+   *    `schema_inference_version` - (integer) Required. The version of the
+   *        algorithm that should be used for the initial inference of the
+   *        schema (columns' DataTypes) of the table the data is being imported
+   *        into. Allowed values: "1".
+   * 
+ * + * map<string, string> params = 2; + */ + int getParamsCount(); + /** + * + * + *
+   * Additional domain-specific parameters describing the semantic of the
+   * imported data, any string must be up to 25000
+   * characters long.
+   * *  For Tables:
+   *    `schema_inference_version` - (integer) Required. The version of the
+   *        algorithm that should be used for the initial inference of the
+   *        schema (columns' DataTypes) of the table the data is being imported
+   *        into. Allowed values: "1".
+   * 
+ * + * map<string, string> params = 2; + */ + boolean containsParams(java.lang.String key); + /** Use {@link #getParamsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getParams(); + /** + * + * + *
+   * Additional domain-specific parameters describing the semantic of the
+   * imported data, any string must be up to 25000
+   * characters long.
+   * *  For Tables:
+   *    `schema_inference_version` - (integer) Required. The version of the
+   *        algorithm that should be used for the initial inference of the
+   *        schema (columns' DataTypes) of the table the data is being imported
+   *        into. Allowed values: "1".
+   * 
+ * + * map<string, string> params = 2; + */ + java.util.Map getParamsMap(); + /** + * + * + *
+   * Additional domain-specific parameters describing the semantic of the
+   * imported data, any string must be up to 25000
+   * characters long.
+   * *  For Tables:
+   *    `schema_inference_version` - (integer) Required. The version of the
+   *        algorithm that should be used for the initial inference of the
+   *        schema (columns' DataTypes) of the table the data is being imported
+   *        into. Allowed values: "1".
+   * 
+ * + * map<string, string> params = 2; + */ + java.lang.String getParamsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Additional domain-specific parameters describing the semantic of the
+   * imported data, any string must be up to 25000
+   * characters long.
+   * *  For Tables:
+   *    `schema_inference_version` - (integer) Required. The version of the
+   *        algorithm that should be used for the initial inference of the
+   *        schema (columns' DataTypes) of the table the data is being imported
+   *        into. Allowed values: "1".
+   * 
+ * + * map<string, string> params = 2; + */ + java.lang.String getParamsOrThrow(java.lang.String key); + public com.google.cloud.automl.v1beta1.InputConfig.SourceCase getSourceCase(); } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java index 267c1c01b5b6..956dd09a8802 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Io.java @@ -16,18 +16,58 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_InputConfig_ParamsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_InputConfig_ParamsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_BatchPredictInputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_BatchPredictInputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_DocumentInputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_DocumentInputConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_automl_v1beta1_OutputConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_BatchPredictOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_BatchPredictOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ModelExportOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ModelExportOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ModelExportOutputConfig_ParamsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ModelExportOutputConfig_ParamsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOutputConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_automl_v1beta1_GcsSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_BigQuerySource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_BigQuerySource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_automl_v1beta1_GcsDestination_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_BigQueryDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_BigQueryDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_GcrDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_GcrDestination_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -39,17 +79,50 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n$google/cloud/automl/v1beta1/io.proto\022\033" + "google.cloud.automl.v1beta1\032\034google/api/" - + "annotations.proto\"U\n\013InputConfig\022<\n\ngcs_" - + "source\030\001 \001(\0132&.google.cloud.automl.v1bet" - + "a1.GcsSourceH\000B\010\n\006source\"e\n\014OutputConfig" - + "\022F\n\017gcs_destination\030\001 \001(\0132+.google.cloud" - + ".automl.v1beta1.GcsDestinationH\000B\r\n\013dest" - + "ination\"\037\n\tGcsSource\022\022\n\ninput_uris\030\001 \003(\t" - + "\"+\n\016GcsDestination\022\031\n\021output_uri_prefix\030" - + "\001 \001(\tB\204\001\n\037com.google.cloud.automl.v1beta" - + "1P\001ZAgoogle.golang.org/genproto/googleap" - + "is/cloud/automl/v1beta1;automl\312\002\033Google\\" - + "Cloud\\AutoMl\\V1beta1b\006proto3" + + "annotations.proto\"\222\002\n\013InputConfig\022<\n\ngcs" + + "_source\030\001 \001(\0132&.google.cloud.automl.v1be" + + "ta1.GcsSourceH\000\022F\n\017bigquery_source\030\003 \001(\013" + + "2+.google.cloud.automl.v1beta1.BigQueryS" + + "ourceH\000\022D\n\006params\030\002 \003(\01324.google.cloud.a" + + "utoml.v1beta1.InputConfig.ParamsEntry\032-\n" + + "\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001B\010\n\006source\"\251\001\n\027BatchPredictInputConf" + + "ig\022<\n\ngcs_source\030\001 \001(\0132&.google.cloud.au" + + "toml.v1beta1.GcsSourceH\000\022F\n\017bigquery_sou" + + "rce\030\002 \001(\0132+.google.cloud.automl.v1beta1." + + "BigQuerySourceH\000B\010\n\006source\"Q\n\023DocumentIn" + + "putConfig\022:\n\ngcs_source\030\001 \001(\0132&.google.c" + + "loud.automl.v1beta1.GcsSource\"\267\001\n\014Output" + + "Config\022F\n\017gcs_destination\030\001 \001(\0132+.google" + + ".cloud.automl.v1beta1.GcsDestinationH\000\022P" + + "\n\024bigquery_destination\030\002 \001(\01320.google.cl" + + "oud.automl.v1beta1.BigQueryDestinationH\000" + + "B\r\n\013destination\"\303\001\n\030BatchPredictOutputCo" + + "nfig\022F\n\017gcs_destination\030\001 \001(\0132+.google.c" + + "loud.automl.v1beta1.GcsDestinationH\000\022P\n\024" + + "bigquery_destination\030\002 \001(\01320.google.clou" + + "d.automl.v1beta1.BigQueryDestinationH\000B\r" + + "\n\013destination\"\317\002\n\027ModelExportOutputConfi" + + "g\022F\n\017gcs_destination\030\001 \001(\0132+.google.clou" + + "d.automl.v1beta1.GcsDestinationH\000\022F\n\017gcr" + + "_destination\030\003 \001(\0132+.google.cloud.automl" + + ".v1beta1.GcrDestinationH\000\022\024\n\014model_forma" + + "t\030\004 \001(\t\022P\n\006params\030\002 \003(\0132@.google.cloud.a" + + "utoml.v1beta1.ModelExportOutputConfig.Pa" + + "ramsEntry\032-\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001B\r\n\013destination\"\206\001\n#Expo" + + "rtEvaluatedExamplesOutputConfig\022P\n\024bigqu" + + "ery_destination\030\002 \001(\01320.google.cloud.aut" + + "oml.v1beta1.BigQueryDestinationH\000B\r\n\013des" + + "tination\"\037\n\tGcsSource\022\022\n\ninput_uris\030\001 \003(" + + "\t\"#\n\016BigQuerySource\022\021\n\tinput_uri\030\001 \001(\t\"+" + + "\n\016GcsDestination\022\031\n\021output_uri_prefix\030\001 " + + "\001(\t\")\n\023BigQueryDestination\022\022\n\noutput_uri" + + "\030\001 \001(\t\"$\n\016GcrDestination\022\022\n\noutput_uri\030\001" + + " \001(\tB\204\001\n\037com.google.cloud.automl.v1beta1" + + "P\001ZAgoogle.golang.org/genproto/googleapi" + + "s/cloud/automl/v1beta1;automl\312\002\033Google\\C" + + "loud\\AutoMl\\V1beta1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -71,32 +144,114 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor, new java.lang.String[] { - "GcsSource", "Source", + "GcsSource", "BigquerySource", "Params", "Source", }); - internal_static_google_cloud_automl_v1beta1_OutputConfig_descriptor = + internal_static_google_cloud_automl_v1beta1_InputConfig_ParamsEntry_descriptor = + internal_static_google_cloud_automl_v1beta1_InputConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_automl_v1beta1_InputConfig_ParamsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_InputConfig_ParamsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_automl_v1beta1_BatchPredictInputConfig_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_BatchPredictInputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_BatchPredictInputConfig_descriptor, + new java.lang.String[] { + "GcsSource", "BigquerySource", "Source", + }); + internal_static_google_cloud_automl_v1beta1_DocumentInputConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_automl_v1beta1_DocumentInputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_DocumentInputConfig_descriptor, + new java.lang.String[] { + "GcsSource", + }); + internal_static_google_cloud_automl_v1beta1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_automl_v1beta1_OutputConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_OutputConfig_descriptor, new java.lang.String[] { - "GcsDestination", "Destination", + "GcsDestination", "BigqueryDestination", "Destination", + }); + internal_static_google_cloud_automl_v1beta1_BatchPredictOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_automl_v1beta1_BatchPredictOutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_BatchPredictOutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "BigqueryDestination", "Destination", + }); + internal_static_google_cloud_automl_v1beta1_ModelExportOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_automl_v1beta1_ModelExportOutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ModelExportOutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "GcrDestination", "ModelFormat", "Params", "Destination", + }); + internal_static_google_cloud_automl_v1beta1_ModelExportOutputConfig_ParamsEntry_descriptor = + internal_static_google_cloud_automl_v1beta1_ModelExportOutputConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_automl_v1beta1_ModelExportOutputConfig_ParamsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ModelExportOutputConfig_ParamsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOutputConfig_descriptor, + new java.lang.String[] { + "BigqueryDestination", "Destination", }); internal_static_google_cloud_automl_v1beta1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_automl_v1beta1_GcsSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_GcsSource_descriptor, new java.lang.String[] { "InputUris", }); + internal_static_google_cloud_automl_v1beta1_BigQuerySource_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_automl_v1beta1_BigQuerySource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_BigQuerySource_descriptor, + new java.lang.String[] { + "InputUri", + }); internal_static_google_cloud_automl_v1beta1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_automl_v1beta1_GcsDestination_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_GcsDestination_descriptor, new java.lang.String[] { "OutputUriPrefix", }); + internal_static_google_cloud_automl_v1beta1_BigQueryDestination_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_automl_v1beta1_BigQueryDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_BigQueryDestination_descriptor, + new java.lang.String[] { + "OutputUri", + }); + internal_static_google_cloud_automl_v1beta1_GcrDestination_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_automl_v1beta1_GcrDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_GcrDestination_descriptor, + new java.lang.String[] { + "OutputUri", + }); com.google.api.AnnotationsProto.getDescriptor(); } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequest.java new file mode 100644 index 000000000000..38365aec0312 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequest.java @@ -0,0 +1,1282 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Request message for [AutoMl.ListColumnSpecs][google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs].
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ListColumnSpecsRequest} + */ +public final class ListColumnSpecsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ListColumnSpecsRequest) + ListColumnSpecsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListColumnSpecsRequest.newBuilder() to construct. + private ListColumnSpecsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListColumnSpecsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListColumnSpecsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); + } + fieldMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 32: + { + pageSize_ = input.readInt32(); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListColumnSpecsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListColumnSpecsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest.class, + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The resource name of the table spec to list column specs from.
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * The resource name of the table spec to list column specs from.
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIELD_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask fieldMask_; + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public boolean hasFieldMask() { + return fieldMask_ != null; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public com.google.protobuf.FieldMask getFieldMask() { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + return getFieldMask(); + } + + public static final int FILTER_FIELD_NUMBER = 3; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Filter expression, see go/filtering.
+   * 
+ * + * string filter = 3; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Filter expression, see go/filtering.
+   * 
+ * + * string filter = 3; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 4; + private int pageSize_; + /** + * + * + *
+   * Requested page size. The server can return fewer results than requested.
+   * If unspecified, the server will pick a default size.
+   * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 6; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A token identifying a page of results for the server to return.
+   * Typically obtained from the
+   * [ListColumnSpecsResponse.next_page_token][google.cloud.automl.v1beta1.ListColumnSpecsResponse.next_page_token] field of the previous
+   * [AutoMl.ListColumnSpecs][google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs] call.
+   * 
+ * + * string page_token = 6; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token identifying a page of results for the server to return.
+   * Typically obtained from the
+   * [ListColumnSpecsResponse.next_page_token][google.cloud.automl.v1beta1.ListColumnSpecsResponse.next_page_token] field of the previous
+   * [AutoMl.ListColumnSpecs][google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs] call.
+   * 
+ * + * string page_token = 6; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (fieldMask_ != null) { + output.writeMessage(2, getFieldMask()); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(4, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (fieldMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFieldMask()); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.ListColumnSpecsRequest)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest other = + (com.google.cloud.automl.v1beta1.ListColumnSpecsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasFieldMask() != other.hasFieldMask()) return false; + if (hasFieldMask()) { + if (!getFieldMask().equals(other.getFieldMask())) return false; + } + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasFieldMask()) { + hash = (37 * hash) + FIELD_MASK_FIELD_NUMBER; + hash = (53 * hash) + getFieldMask().hashCode(); + } + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [AutoMl.ListColumnSpecs][google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs].
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ListColumnSpecsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ListColumnSpecsRequest) + com.google.cloud.automl.v1beta1.ListColumnSpecsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListColumnSpecsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListColumnSpecsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest.class, + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.ListColumnSpecsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (fieldMaskBuilder_ == null) { + fieldMask_ = null; + } else { + fieldMask_ = null; + fieldMaskBuilder_ = null; + } + filter_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListColumnSpecsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ListColumnSpecsRequest getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ListColumnSpecsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ListColumnSpecsRequest build() { + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ListColumnSpecsRequest buildPartial() { + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest result = + new com.google.cloud.automl.v1beta1.ListColumnSpecsRequest(this); + result.parent_ = parent_; + if (fieldMaskBuilder_ == null) { + result.fieldMask_ = fieldMask_; + } else { + result.fieldMask_ = fieldMaskBuilder_.build(); + } + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.ListColumnSpecsRequest) { + return mergeFrom((com.google.cloud.automl.v1beta1.ListColumnSpecsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListColumnSpecsRequest other) { + if (other == com.google.cloud.automl.v1beta1.ListColumnSpecsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasFieldMask()) { + mergeFieldMask(other.getFieldMask()); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ListColumnSpecsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ListColumnSpecsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * The resource name of the table spec to list column specs from.
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name of the table spec to list column specs from.
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource name of the table spec to list column specs from.
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the table spec to list column specs from.
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the table spec to list column specs from.
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask fieldMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + fieldMaskBuilder_; + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public boolean hasFieldMask() { + return fieldMaskBuilder_ != null || fieldMask_ != null; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public com.google.protobuf.FieldMask getFieldMask() { + if (fieldMaskBuilder_ == null) { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } else { + return fieldMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fieldMask_ = value; + onChanged(); + } else { + fieldMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (fieldMaskBuilder_ == null) { + fieldMask_ = builderForValue.build(); + onChanged(); + } else { + fieldMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (fieldMask_ != null) { + fieldMask_ = + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + } else { + fieldMask_ = value; + } + onChanged(); + } else { + fieldMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public Builder clearFieldMask() { + if (fieldMaskBuilder_ == null) { + fieldMask_ = null; + onChanged(); + } else { + fieldMask_ = null; + fieldMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { + + onChanged(); + return getFieldMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + if (fieldMaskBuilder_ != null) { + return fieldMaskBuilder_.getMessageOrBuilder(); + } else { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getFieldMaskFieldBuilder() { + if (fieldMaskBuilder_ == null) { + fieldMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getFieldMask(), getParentForChildren(), isClean()); + fieldMask_ = null; + } + return fieldMaskBuilder_; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Filter expression, see go/filtering.
+     * 
+ * + * string filter = 3; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Filter expression, see go/filtering.
+     * 
+ * + * string filter = 3; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Filter expression, see go/filtering.
+     * 
+ * + * string filter = 3; + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Filter expression, see go/filtering.
+     * 
+ * + * string filter = 3; + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Filter expression, see go/filtering.
+     * 
+ * + * string filter = 3; + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Requested page size. The server can return fewer results than requested.
+     * If unspecified, the server will pick a default size.
+     * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Requested page size. The server can return fewer results than requested.
+     * If unspecified, the server will pick a default size.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Requested page size. The server can return fewer results than requested.
+     * If unspecified, the server will pick a default size.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results for the server to return.
+     * Typically obtained from the
+     * [ListColumnSpecsResponse.next_page_token][google.cloud.automl.v1beta1.ListColumnSpecsResponse.next_page_token] field of the previous
+     * [AutoMl.ListColumnSpecs][google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs] call.
+     * 
+ * + * string page_token = 6; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results for the server to return.
+     * Typically obtained from the
+     * [ListColumnSpecsResponse.next_page_token][google.cloud.automl.v1beta1.ListColumnSpecsResponse.next_page_token] field of the previous
+     * [AutoMl.ListColumnSpecs][google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs] call.
+     * 
+ * + * string page_token = 6; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results for the server to return.
+     * Typically obtained from the
+     * [ListColumnSpecsResponse.next_page_token][google.cloud.automl.v1beta1.ListColumnSpecsResponse.next_page_token] field of the previous
+     * [AutoMl.ListColumnSpecs][google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs] call.
+     * 
+ * + * string page_token = 6; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results for the server to return.
+     * Typically obtained from the
+     * [ListColumnSpecsResponse.next_page_token][google.cloud.automl.v1beta1.ListColumnSpecsResponse.next_page_token] field of the previous
+     * [AutoMl.ListColumnSpecs][google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs] call.
+     * 
+ * + * string page_token = 6; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results for the server to return.
+     * Typically obtained from the
+     * [ListColumnSpecsResponse.next_page_token][google.cloud.automl.v1beta1.ListColumnSpecsResponse.next_page_token] field of the previous
+     * [AutoMl.ListColumnSpecs][google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs] call.
+     * 
+ * + * string page_token = 6; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ListColumnSpecsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListColumnSpecsRequest) + private static final com.google.cloud.automl.v1beta1.ListColumnSpecsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ListColumnSpecsRequest(); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListColumnSpecsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListColumnSpecsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ListColumnSpecsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequestOrBuilder.java new file mode 100644 index 000000000000..3a0592a098a3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsRequestOrBuilder.java @@ -0,0 +1,122 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface ListColumnSpecsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ListColumnSpecsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name of the table spec to list column specs from.
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * The resource name of the table spec to list column specs from.
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + boolean hasFieldMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + com.google.protobuf.FieldMask getFieldMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); + + /** + * + * + *
+   * Filter expression, see go/filtering.
+   * 
+ * + * string filter = 3; + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Filter expression, see go/filtering.
+   * 
+ * + * string filter = 3; + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Requested page size. The server can return fewer results than requested.
+   * If unspecified, the server will pick a default size.
+   * 
+ * + * int32 page_size = 4; + */ + int getPageSize(); + + /** + * + * + *
+   * A token identifying a page of results for the server to return.
+   * Typically obtained from the
+   * [ListColumnSpecsResponse.next_page_token][google.cloud.automl.v1beta1.ListColumnSpecsResponse.next_page_token] field of the previous
+   * [AutoMl.ListColumnSpecs][google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs] call.
+   * 
+ * + * string page_token = 6; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A token identifying a page of results for the server to return.
+   * Typically obtained from the
+   * [ListColumnSpecsResponse.next_page_token][google.cloud.automl.v1beta1.ListColumnSpecsResponse.next_page_token] field of the previous
+   * [AutoMl.ListColumnSpecs][google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs] call.
+   * 
+ * + * string page_token = 6; + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponse.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponse.java new file mode 100644 index 000000000000..4ac0d538149f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponse.java @@ -0,0 +1,1098 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Response message for [AutoMl.ListColumnSpecs][google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs].
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ListColumnSpecsResponse} + */ +public final class ListColumnSpecsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ListColumnSpecsResponse) + ListColumnSpecsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListColumnSpecsResponse.newBuilder() to construct. + private ListColumnSpecsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListColumnSpecsResponse() { + columnSpecs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListColumnSpecsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + columnSpecs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + columnSpecs_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.ColumnSpec.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + columnSpecs_ = java.util.Collections.unmodifiableList(columnSpecs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListColumnSpecsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListColumnSpecsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.class, + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.Builder.class); + } + + private int bitField0_; + public static final int COLUMN_SPECS_FIELD_NUMBER = 1; + private java.util.List columnSpecs_; + /** + * + * + *
+   * The column specs read.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public java.util.List getColumnSpecsList() { + return columnSpecs_; + } + /** + * + * + *
+   * The column specs read.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public java.util.List + getColumnSpecsOrBuilderList() { + return columnSpecs_; + } + /** + * + * + *
+   * The column specs read.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public int getColumnSpecsCount() { + return columnSpecs_.size(); + } + /** + * + * + *
+   * The column specs read.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpecs(int index) { + return columnSpecs_.get(index); + } + /** + * + * + *
+   * The column specs read.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getColumnSpecsOrBuilder(int index) { + return columnSpecs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [ListColumnSpecsRequest.page_token][google.cloud.automl.v1beta1.ListColumnSpecsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [ListColumnSpecsRequest.page_token][google.cloud.automl.v1beta1.ListColumnSpecsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < columnSpecs_.size(); i++) { + output.writeMessage(1, columnSpecs_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < columnSpecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, columnSpecs_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.ListColumnSpecsResponse)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse other = + (com.google.cloud.automl.v1beta1.ListColumnSpecsResponse) obj; + + if (!getColumnSpecsList().equals(other.getColumnSpecsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getColumnSpecsCount() > 0) { + hash = (37 * hash) + COLUMN_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getColumnSpecsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for [AutoMl.ListColumnSpecs][google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs].
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ListColumnSpecsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ListColumnSpecsResponse) + com.google.cloud.automl.v1beta1.ListColumnSpecsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListColumnSpecsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListColumnSpecsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.class, + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getColumnSpecsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (columnSpecsBuilder_ == null) { + columnSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + columnSpecsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListColumnSpecsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ListColumnSpecsResponse getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ListColumnSpecsResponse build() { + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ListColumnSpecsResponse buildPartial() { + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse result = + new com.google.cloud.automl.v1beta1.ListColumnSpecsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (columnSpecsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + columnSpecs_ = java.util.Collections.unmodifiableList(columnSpecs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.columnSpecs_ = columnSpecs_; + } else { + result.columnSpecs_ = columnSpecsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.ListColumnSpecsResponse) { + return mergeFrom((com.google.cloud.automl.v1beta1.ListColumnSpecsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListColumnSpecsResponse other) { + if (other == com.google.cloud.automl.v1beta1.ListColumnSpecsResponse.getDefaultInstance()) + return this; + if (columnSpecsBuilder_ == null) { + if (!other.columnSpecs_.isEmpty()) { + if (columnSpecs_.isEmpty()) { + columnSpecs_ = other.columnSpecs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureColumnSpecsIsMutable(); + columnSpecs_.addAll(other.columnSpecs_); + } + onChanged(); + } + } else { + if (!other.columnSpecs_.isEmpty()) { + if (columnSpecsBuilder_.isEmpty()) { + columnSpecsBuilder_.dispose(); + columnSpecsBuilder_ = null; + columnSpecs_ = other.columnSpecs_; + bitField0_ = (bitField0_ & ~0x00000001); + columnSpecsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getColumnSpecsFieldBuilder() + : null; + } else { + columnSpecsBuilder_.addAllMessages(other.columnSpecs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ListColumnSpecsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ListColumnSpecsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List columnSpecs_ = + java.util.Collections.emptyList(); + + private void ensureColumnSpecsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + columnSpecs_ = + new java.util.ArrayList(columnSpecs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.ColumnSpec, + com.google.cloud.automl.v1beta1.ColumnSpec.Builder, + com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder> + columnSpecsBuilder_; + + /** + * + * + *
+     * The column specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public java.util.List getColumnSpecsList() { + if (columnSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(columnSpecs_); + } else { + return columnSpecsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The column specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public int getColumnSpecsCount() { + if (columnSpecsBuilder_ == null) { + return columnSpecs_.size(); + } else { + return columnSpecsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The column specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpecs(int index) { + if (columnSpecsBuilder_ == null) { + return columnSpecs_.get(index); + } else { + return columnSpecsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The column specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public Builder setColumnSpecs(int index, com.google.cloud.automl.v1beta1.ColumnSpec value) { + if (columnSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnSpecsIsMutable(); + columnSpecs_.set(index, value); + onChanged(); + } else { + columnSpecsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The column specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public Builder setColumnSpecs( + int index, com.google.cloud.automl.v1beta1.ColumnSpec.Builder builderForValue) { + if (columnSpecsBuilder_ == null) { + ensureColumnSpecsIsMutable(); + columnSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + columnSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The column specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public Builder addColumnSpecs(com.google.cloud.automl.v1beta1.ColumnSpec value) { + if (columnSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnSpecsIsMutable(); + columnSpecs_.add(value); + onChanged(); + } else { + columnSpecsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The column specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public Builder addColumnSpecs(int index, com.google.cloud.automl.v1beta1.ColumnSpec value) { + if (columnSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnSpecsIsMutable(); + columnSpecs_.add(index, value); + onChanged(); + } else { + columnSpecsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The column specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public Builder addColumnSpecs( + com.google.cloud.automl.v1beta1.ColumnSpec.Builder builderForValue) { + if (columnSpecsBuilder_ == null) { + ensureColumnSpecsIsMutable(); + columnSpecs_.add(builderForValue.build()); + onChanged(); + } else { + columnSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The column specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public Builder addColumnSpecs( + int index, com.google.cloud.automl.v1beta1.ColumnSpec.Builder builderForValue) { + if (columnSpecsBuilder_ == null) { + ensureColumnSpecsIsMutable(); + columnSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + columnSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The column specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public Builder addAllColumnSpecs( + java.lang.Iterable values) { + if (columnSpecsBuilder_ == null) { + ensureColumnSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columnSpecs_); + onChanged(); + } else { + columnSpecsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The column specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public Builder clearColumnSpecs() { + if (columnSpecsBuilder_ == null) { + columnSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + columnSpecsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The column specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public Builder removeColumnSpecs(int index) { + if (columnSpecsBuilder_ == null) { + ensureColumnSpecsIsMutable(); + columnSpecs_.remove(index); + onChanged(); + } else { + columnSpecsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The column specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public com.google.cloud.automl.v1beta1.ColumnSpec.Builder getColumnSpecsBuilder(int index) { + return getColumnSpecsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The column specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getColumnSpecsOrBuilder(int index) { + if (columnSpecsBuilder_ == null) { + return columnSpecs_.get(index); + } else { + return columnSpecsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The column specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public java.util.List + getColumnSpecsOrBuilderList() { + if (columnSpecsBuilder_ != null) { + return columnSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(columnSpecs_); + } + } + /** + * + * + *
+     * The column specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public com.google.cloud.automl.v1beta1.ColumnSpec.Builder addColumnSpecsBuilder() { + return getColumnSpecsFieldBuilder() + .addBuilder(com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance()); + } + /** + * + * + *
+     * The column specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public com.google.cloud.automl.v1beta1.ColumnSpec.Builder addColumnSpecsBuilder(int index) { + return getColumnSpecsFieldBuilder() + .addBuilder(index, com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance()); + } + /** + * + * + *
+     * The column specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + public java.util.List + getColumnSpecsBuilderList() { + return getColumnSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.ColumnSpec, + com.google.cloud.automl.v1beta1.ColumnSpec.Builder, + com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder> + getColumnSpecsFieldBuilder() { + if (columnSpecsBuilder_ == null) { + columnSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.ColumnSpec, + com.google.cloud.automl.v1beta1.ColumnSpec.Builder, + com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder>( + columnSpecs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + columnSpecs_ = null; + } + return columnSpecsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [ListColumnSpecsRequest.page_token][google.cloud.automl.v1beta1.ListColumnSpecsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [ListColumnSpecsRequest.page_token][google.cloud.automl.v1beta1.ListColumnSpecsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [ListColumnSpecsRequest.page_token][google.cloud.automl.v1beta1.ListColumnSpecsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [ListColumnSpecsRequest.page_token][google.cloud.automl.v1beta1.ListColumnSpecsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [ListColumnSpecsRequest.page_token][google.cloud.automl.v1beta1.ListColumnSpecsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ListColumnSpecsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListColumnSpecsResponse) + private static final com.google.cloud.automl.v1beta1.ListColumnSpecsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ListColumnSpecsResponse(); + } + + public static com.google.cloud.automl.v1beta1.ListColumnSpecsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListColumnSpecsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListColumnSpecsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ListColumnSpecsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponseOrBuilder.java new file mode 100644 index 000000000000..edaa21785b86 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListColumnSpecsResponseOrBuilder.java @@ -0,0 +1,85 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface ListColumnSpecsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ListColumnSpecsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The column specs read.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + java.util.List getColumnSpecsList(); + /** + * + * + *
+   * The column specs read.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpecs(int index); + /** + * + * + *
+   * The column specs read.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + int getColumnSpecsCount(); + /** + * + * + *
+   * The column specs read.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + java.util.List + getColumnSpecsOrBuilderList(); + /** + * + * + *
+   * The column specs read.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec column_specs = 1; + */ + com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getColumnSpecsOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [ListColumnSpecsRequest.page_token][google.cloud.automl.v1beta1.ListColumnSpecsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [ListColumnSpecsRequest.page_token][google.cloud.automl.v1beta1.ListColumnSpecsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequest.java index e1b63362c182..42f3d7cf53ef 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequest.java @@ -7,8 +7,7 @@ * * *
- * Request message for
- * [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets].
+ * Request message for [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListDatasetsRequest} @@ -163,8 +162,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * An expression for filtering the results of the request.
-   *   * `dataset_metadata` - for existence of the case.
-   * An example of using the filter is:
+   *   * `dataset_metadata` - for existence of the case (e.g.
+   *             image_classification_dataset_metadata:*). Some examples of using the filter are:
    *   * `translation_dataset_metadata:*` --> The dataset has
    *                                          translation_dataset_metadata.
    * 
@@ -187,8 +186,8 @@ public java.lang.String getFilter() { * *
    * An expression for filtering the results of the request.
-   *   * `dataset_metadata` - for existence of the case.
-   * An example of using the filter is:
+   *   * `dataset_metadata` - for existence of the case (e.g.
+   *             image_classification_dataset_metadata:*). Some examples of using the filter are:
    *   * `translation_dataset_metadata:*` --> The dataset has
    *                                          translation_dataset_metadata.
    * 
@@ -231,10 +230,8 @@ public int getPageSize() { *
    * A token identifying a page of results for the server to return
    * Typically obtained via
-   * [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token]
-   * of the previous
-   * [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets]
-   * call.
+   * [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token] of the previous
+   * [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets] call.
    * 
* * string page_token = 6; @@ -256,10 +253,8 @@ public java.lang.String getPageToken() { *
    * A token identifying a page of results for the server to return
    * Typically obtained via
-   * [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token]
-   * of the previous
-   * [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets]
-   * call.
+   * [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token] of the previous
+   * [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets] call.
    * 
* * string page_token = 6; @@ -466,8 +461,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for
-   * [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets].
+   * Request message for [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListDatasetsRequest} @@ -742,8 +736,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * An expression for filtering the results of the request.
-     *   * `dataset_metadata` - for existence of the case.
-     * An example of using the filter is:
+     *   * `dataset_metadata` - for existence of the case (e.g.
+     *             image_classification_dataset_metadata:*). Some examples of using the filter are:
      *   * `translation_dataset_metadata:*` --> The dataset has
      *                                          translation_dataset_metadata.
      * 
@@ -766,8 +760,8 @@ public java.lang.String getFilter() { * *
      * An expression for filtering the results of the request.
-     *   * `dataset_metadata` - for existence of the case.
-     * An example of using the filter is:
+     *   * `dataset_metadata` - for existence of the case (e.g.
+     *             image_classification_dataset_metadata:*). Some examples of using the filter are:
      *   * `translation_dataset_metadata:*` --> The dataset has
      *                                          translation_dataset_metadata.
      * 
@@ -790,8 +784,8 @@ public com.google.protobuf.ByteString getFilterBytes() { * *
      * An expression for filtering the results of the request.
-     *   * `dataset_metadata` - for existence of the case.
-     * An example of using the filter is:
+     *   * `dataset_metadata` - for existence of the case (e.g.
+     *             image_classification_dataset_metadata:*). Some examples of using the filter are:
      *   * `translation_dataset_metadata:*` --> The dataset has
      *                                          translation_dataset_metadata.
      * 
@@ -812,8 +806,8 @@ public Builder setFilter(java.lang.String value) { * *
      * An expression for filtering the results of the request.
-     *   * `dataset_metadata` - for existence of the case.
-     * An example of using the filter is:
+     *   * `dataset_metadata` - for existence of the case (e.g.
+     *             image_classification_dataset_metadata:*). Some examples of using the filter are:
      *   * `translation_dataset_metadata:*` --> The dataset has
      *                                          translation_dataset_metadata.
      * 
@@ -831,8 +825,8 @@ public Builder clearFilter() { * *
      * An expression for filtering the results of the request.
-     *   * `dataset_metadata` - for existence of the case.
-     * An example of using the filter is:
+     *   * `dataset_metadata` - for existence of the case (e.g.
+     *             image_classification_dataset_metadata:*). Some examples of using the filter are:
      *   * `translation_dataset_metadata:*` --> The dataset has
      *                                          translation_dataset_metadata.
      * 
@@ -904,10 +898,8 @@ public Builder clearPageSize() { *
      * A token identifying a page of results for the server to return
      * Typically obtained via
-     * [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token]
-     * of the previous
-     * [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets]
-     * call.
+     * [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token] of the previous
+     * [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets] call.
      * 
* * string page_token = 6; @@ -929,10 +921,8 @@ public java.lang.String getPageToken() { *
      * A token identifying a page of results for the server to return
      * Typically obtained via
-     * [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token]
-     * of the previous
-     * [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets]
-     * call.
+     * [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token] of the previous
+     * [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets] call.
      * 
* * string page_token = 6; @@ -954,10 +944,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { *
      * A token identifying a page of results for the server to return
      * Typically obtained via
-     * [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token]
-     * of the previous
-     * [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets]
-     * call.
+     * [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token] of the previous
+     * [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets] call.
      * 
* * string page_token = 6; @@ -977,10 +965,8 @@ public Builder setPageToken(java.lang.String value) { *
      * A token identifying a page of results for the server to return
      * Typically obtained via
-     * [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token]
-     * of the previous
-     * [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets]
-     * call.
+     * [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token] of the previous
+     * [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets] call.
      * 
* * string page_token = 6; @@ -997,10 +983,8 @@ public Builder clearPageToken() { *
      * A token identifying a page of results for the server to return
      * Typically obtained via
-     * [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token]
-     * of the previous
-     * [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets]
-     * call.
+     * [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token] of the previous
+     * [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets] call.
      * 
* * string page_token = 6; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequestOrBuilder.java index 4ee5bc85c4d8..aa7b8abe8d64 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsRequestOrBuilder.java @@ -34,8 +34,8 @@ public interface ListDatasetsRequestOrBuilder * *
    * An expression for filtering the results of the request.
-   *   * `dataset_metadata` - for existence of the case.
-   * An example of using the filter is:
+   *   * `dataset_metadata` - for existence of the case (e.g.
+   *             image_classification_dataset_metadata:*). Some examples of using the filter are:
    *   * `translation_dataset_metadata:*` --> The dataset has
    *                                          translation_dataset_metadata.
    * 
@@ -48,8 +48,8 @@ public interface ListDatasetsRequestOrBuilder * *
    * An expression for filtering the results of the request.
-   *   * `dataset_metadata` - for existence of the case.
-   * An example of using the filter is:
+   *   * `dataset_metadata` - for existence of the case (e.g.
+   *             image_classification_dataset_metadata:*). Some examples of using the filter are:
    *   * `translation_dataset_metadata:*` --> The dataset has
    *                                          translation_dataset_metadata.
    * 
@@ -76,10 +76,8 @@ public interface ListDatasetsRequestOrBuilder *
    * A token identifying a page of results for the server to return
    * Typically obtained via
-   * [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token]
-   * of the previous
-   * [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets]
-   * call.
+   * [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token] of the previous
+   * [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets] call.
    * 
* * string page_token = 6; @@ -91,10 +89,8 @@ public interface ListDatasetsRequestOrBuilder *
    * A token identifying a page of results for the server to return
    * Typically obtained via
-   * [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token]
-   * of the previous
-   * [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets]
-   * call.
+   * [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token] of the previous
+   * [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets] call.
    * 
* * string page_token = 6; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponse.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponse.java index 1f1135ac0685..1615cb5099f3 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponse.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponse.java @@ -7,8 +7,7 @@ * * *
- * Response message for
- * [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets].
+ * Response message for [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListDatasetsResponse} @@ -179,9 +178,7 @@ public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetsOrBuilder(int * *
    * A token to retrieve next page of results.
-   * Pass to
-   * [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token]
-   * to obtain that page.
+   * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; @@ -202,9 +199,7 @@ public java.lang.String getNextPageToken() { * *
    * A token to retrieve next page of results.
-   * Pass to
-   * [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token]
-   * to obtain that page.
+   * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; @@ -395,8 +390,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for
-   * [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets].
+   * Response message for [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListDatasetsResponse} @@ -955,9 +949,7 @@ public com.google.cloud.automl.v1beta1.Dataset.Builder addDatasetsBuilder(int in * *
      * A token to retrieve next page of results.
-     * Pass to
-     * [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token]
-     * to obtain that page.
+     * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; @@ -978,9 +970,7 @@ public java.lang.String getNextPageToken() { * *
      * A token to retrieve next page of results.
-     * Pass to
-     * [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token]
-     * to obtain that page.
+     * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; @@ -1001,9 +991,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * *
      * A token to retrieve next page of results.
-     * Pass to
-     * [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token]
-     * to obtain that page.
+     * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; @@ -1022,9 +1010,7 @@ public Builder setNextPageToken(java.lang.String value) { * *
      * A token to retrieve next page of results.
-     * Pass to
-     * [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token]
-     * to obtain that page.
+     * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; @@ -1040,9 +1026,7 @@ public Builder clearNextPageToken() { * *
      * A token to retrieve next page of results.
-     * Pass to
-     * [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token]
-     * to obtain that page.
+     * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponseOrBuilder.java index e18c8bf00e80..a8cf02992d69 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListDatasetsResponseOrBuilder.java @@ -65,9 +65,7 @@ public interface ListDatasetsResponseOrBuilder * *
    * A token to retrieve next page of results.
-   * Pass to
-   * [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token]
-   * to obtain that page.
+   * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; @@ -78,9 +76,7 @@ public interface ListDatasetsResponseOrBuilder * *
    * A token to retrieve next page of results.
-   * Pass to
-   * [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token]
-   * to obtain that page.
+   * Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequest.java index e342e1380c6c..d76f31195677 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequest.java @@ -7,8 +7,7 @@ * * *
- * Request message for
- * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations].
+ * Request message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelEvaluationsRequest} @@ -240,9 +239,8 @@ public int getPageSize() { *
    * A token identifying a page of results for the server to return.
    * Typically obtained via
-   * `ListModelEvaluationsResponse.next_page_token` of the previous
-   * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations]
-   * call.
+   * [ListModelEvaluationsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelEvaluationsResponse.next_page_token] of the previous
+   * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] call.
    * 
* * string page_token = 6; @@ -264,9 +262,8 @@ public java.lang.String getPageToken() { *
    * A token identifying a page of results for the server to return.
    * Typically obtained via
-   * `ListModelEvaluationsResponse.next_page_token` of the previous
-   * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations]
-   * call.
+   * [ListModelEvaluationsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelEvaluationsResponse.next_page_token] of the previous
+   * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] call.
    * 
* * string page_token = 6; @@ -474,8 +471,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for
-   * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations].
+   * Request message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelEvaluationsRequest} @@ -934,9 +930,8 @@ public Builder clearPageSize() { *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
-     * `ListModelEvaluationsResponse.next_page_token` of the previous
-     * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations]
-     * call.
+     * [ListModelEvaluationsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelEvaluationsResponse.next_page_token] of the previous
+     * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] call.
      * 
* * string page_token = 6; @@ -958,9 +953,8 @@ public java.lang.String getPageToken() { *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
-     * `ListModelEvaluationsResponse.next_page_token` of the previous
-     * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations]
-     * call.
+     * [ListModelEvaluationsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelEvaluationsResponse.next_page_token] of the previous
+     * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] call.
      * 
* * string page_token = 6; @@ -982,9 +976,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
-     * `ListModelEvaluationsResponse.next_page_token` of the previous
-     * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations]
-     * call.
+     * [ListModelEvaluationsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelEvaluationsResponse.next_page_token] of the previous
+     * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] call.
      * 
* * string page_token = 6; @@ -1004,9 +997,8 @@ public Builder setPageToken(java.lang.String value) { *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
-     * `ListModelEvaluationsResponse.next_page_token` of the previous
-     * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations]
-     * call.
+     * [ListModelEvaluationsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelEvaluationsResponse.next_page_token] of the previous
+     * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] call.
      * 
* * string page_token = 6; @@ -1023,9 +1015,8 @@ public Builder clearPageToken() { *
      * A token identifying a page of results for the server to return.
      * Typically obtained via
-     * `ListModelEvaluationsResponse.next_page_token` of the previous
-     * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations]
-     * call.
+     * [ListModelEvaluationsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelEvaluationsResponse.next_page_token] of the previous
+     * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] call.
      * 
* * string page_token = 6; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequestOrBuilder.java index 749e05185f59..095d28fdb401 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsRequestOrBuilder.java @@ -85,9 +85,8 @@ public interface ListModelEvaluationsRequestOrBuilder *
    * A token identifying a page of results for the server to return.
    * Typically obtained via
-   * `ListModelEvaluationsResponse.next_page_token` of the previous
-   * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations]
-   * call.
+   * [ListModelEvaluationsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelEvaluationsResponse.next_page_token] of the previous
+   * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] call.
    * 
* * string page_token = 6; @@ -99,9 +98,8 @@ public interface ListModelEvaluationsRequestOrBuilder *
    * A token identifying a page of results for the server to return.
    * Typically obtained via
-   * `ListModelEvaluationsResponse.next_page_token` of the previous
-   * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations]
-   * call.
+   * [ListModelEvaluationsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelEvaluationsResponse.next_page_token] of the previous
+   * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] call.
    * 
* * string page_token = 6; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponse.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponse.java index b17bcef44c79..dcb332ebbd49 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponse.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponse.java @@ -7,8 +7,7 @@ * * *
- * Response message for
- * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations].
+ * Response message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelEvaluationsResponse} @@ -181,7 +180,8 @@ public com.google.cloud.automl.v1beta1.ModelEvaluationOrBuilder getModelEvaluati * *
    * A token to retrieve next page of results.
-   * Pass to [ListModelEvaluations.page_token][] to obtain that page.
+   * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
+   * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] request to obtain that page.
    * 
* * string next_page_token = 2; @@ -202,7 +202,8 @@ public java.lang.String getNextPageToken() { * *
    * A token to retrieve next page of results.
-   * Pass to [ListModelEvaluations.page_token][] to obtain that page.
+   * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
+   * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] request to obtain that page.
    * 
* * string next_page_token = 2; @@ -394,8 +395,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for
-   * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations].
+   * Response message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelEvaluationsResponse} @@ -968,7 +968,8 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation.Builder addModelEvaluatio * *
      * A token to retrieve next page of results.
-     * Pass to [ListModelEvaluations.page_token][] to obtain that page.
+     * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
+     * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] request to obtain that page.
      * 
* * string next_page_token = 2; @@ -989,7 +990,8 @@ public java.lang.String getNextPageToken() { * *
      * A token to retrieve next page of results.
-     * Pass to [ListModelEvaluations.page_token][] to obtain that page.
+     * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
+     * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] request to obtain that page.
      * 
* * string next_page_token = 2; @@ -1010,7 +1012,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * *
      * A token to retrieve next page of results.
-     * Pass to [ListModelEvaluations.page_token][] to obtain that page.
+     * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
+     * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] request to obtain that page.
      * 
* * string next_page_token = 2; @@ -1029,7 +1032,8 @@ public Builder setNextPageToken(java.lang.String value) { * *
      * A token to retrieve next page of results.
-     * Pass to [ListModelEvaluations.page_token][] to obtain that page.
+     * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
+     * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] request to obtain that page.
      * 
* * string next_page_token = 2; @@ -1045,7 +1049,8 @@ public Builder clearNextPageToken() { * *
      * A token to retrieve next page of results.
-     * Pass to [ListModelEvaluations.page_token][] to obtain that page.
+     * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
+     * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] request to obtain that page.
      * 
* * string next_page_token = 2; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponseOrBuilder.java index 7befe7cf8391..cd1d1ac71c5a 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelEvaluationsResponseOrBuilder.java @@ -65,7 +65,8 @@ public interface ListModelEvaluationsResponseOrBuilder * *
    * A token to retrieve next page of results.
-   * Pass to [ListModelEvaluations.page_token][] to obtain that page.
+   * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
+   * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] request to obtain that page.
    * 
* * string next_page_token = 2; @@ -76,7 +77,8 @@ public interface ListModelEvaluationsResponseOrBuilder * *
    * A token to retrieve next page of results.
-   * Pass to [ListModelEvaluations.page_token][] to obtain that page.
+   * Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new
+   * [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] request to obtain that page.
    * 
* * string next_page_token = 2; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequest.java index 3046a374872f..1bd44d98b6f8 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequest.java @@ -7,8 +7,7 @@ * * *
- * Request message for
- * [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels].
+ * Request message for [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelsRequest} @@ -163,13 +162,12 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * An expression for filtering the results of the request.
-   *   * `model_metadata` - for existence of the case.
-   *   * `dataset_id` - for = or !=.
-   * Some examples of using the filter are:
+   *   * `model_metadata` - for existence of the case (e.g.
+   *             video_classification_model_metadata:*).
+   *   * `dataset_id` - for = or !=. Some examples of using the filter are:
    *   * `image_classification_model_metadata:*` --> The model has
    *                                        image_classification_model_metadata.
-   *   * `dataset_id=5` --> The model was created from a sibling dataset with
-   *                    ID 5.
+   *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
    * 
* * string filter = 3; @@ -190,13 +188,12 @@ public java.lang.String getFilter() { * *
    * An expression for filtering the results of the request.
-   *   * `model_metadata` - for existence of the case.
-   *   * `dataset_id` - for = or !=.
-   * Some examples of using the filter are:
+   *   * `model_metadata` - for existence of the case (e.g.
+   *             video_classification_model_metadata:*).
+   *   * `dataset_id` - for = or !=. Some examples of using the filter are:
    *   * `image_classification_model_metadata:*` --> The model has
    *                                        image_classification_model_metadata.
-   *   * `dataset_id=5` --> The model was created from a sibling dataset with
-   *                    ID 5.
+   *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
    * 
* * string filter = 3; @@ -236,8 +233,7 @@ public int getPageSize() { *
    * A token identifying a page of results for the server to return
    * Typically obtained via
-   * [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token]
-   * of the previous
+   * [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token] of the previous
    * [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels] call.
    * 
* @@ -260,8 +256,7 @@ public java.lang.String getPageToken() { *
    * A token identifying a page of results for the server to return
    * Typically obtained via
-   * [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token]
-   * of the previous
+   * [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token] of the previous
    * [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels] call.
    * 
* @@ -469,8 +464,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for
-   * [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels].
+   * Request message for [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelsRequest} @@ -745,13 +739,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * An expression for filtering the results of the request.
-     *   * `model_metadata` - for existence of the case.
-     *   * `dataset_id` - for = or !=.
-     * Some examples of using the filter are:
+     *   * `model_metadata` - for existence of the case (e.g.
+     *             video_classification_model_metadata:*).
+     *   * `dataset_id` - for = or !=. Some examples of using the filter are:
      *   * `image_classification_model_metadata:*` --> The model has
      *                                        image_classification_model_metadata.
-     *   * `dataset_id=5` --> The model was created from a sibling dataset with
-     *                    ID 5.
+     *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
      * 
* * string filter = 3; @@ -772,13 +765,12 @@ public java.lang.String getFilter() { * *
      * An expression for filtering the results of the request.
-     *   * `model_metadata` - for existence of the case.
-     *   * `dataset_id` - for = or !=.
-     * Some examples of using the filter are:
+     *   * `model_metadata` - for existence of the case (e.g.
+     *             video_classification_model_metadata:*).
+     *   * `dataset_id` - for = or !=. Some examples of using the filter are:
      *   * `image_classification_model_metadata:*` --> The model has
      *                                        image_classification_model_metadata.
-     *   * `dataset_id=5` --> The model was created from a sibling dataset with
-     *                    ID 5.
+     *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
      * 
* * string filter = 3; @@ -799,13 +791,12 @@ public com.google.protobuf.ByteString getFilterBytes() { * *
      * An expression for filtering the results of the request.
-     *   * `model_metadata` - for existence of the case.
-     *   * `dataset_id` - for = or !=.
-     * Some examples of using the filter are:
+     *   * `model_metadata` - for existence of the case (e.g.
+     *             video_classification_model_metadata:*).
+     *   * `dataset_id` - for = or !=. Some examples of using the filter are:
      *   * `image_classification_model_metadata:*` --> The model has
      *                                        image_classification_model_metadata.
-     *   * `dataset_id=5` --> The model was created from a sibling dataset with
-     *                    ID 5.
+     *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
      * 
* * string filter = 3; @@ -824,13 +815,12 @@ public Builder setFilter(java.lang.String value) { * *
      * An expression for filtering the results of the request.
-     *   * `model_metadata` - for existence of the case.
-     *   * `dataset_id` - for = or !=.
-     * Some examples of using the filter are:
+     *   * `model_metadata` - for existence of the case (e.g.
+     *             video_classification_model_metadata:*).
+     *   * `dataset_id` - for = or !=. Some examples of using the filter are:
      *   * `image_classification_model_metadata:*` --> The model has
      *                                        image_classification_model_metadata.
-     *   * `dataset_id=5` --> The model was created from a sibling dataset with
-     *                    ID 5.
+     *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
      * 
* * string filter = 3; @@ -846,13 +836,12 @@ public Builder clearFilter() { * *
      * An expression for filtering the results of the request.
-     *   * `model_metadata` - for existence of the case.
-     *   * `dataset_id` - for = or !=.
-     * Some examples of using the filter are:
+     *   * `model_metadata` - for existence of the case (e.g.
+     *             video_classification_model_metadata:*).
+     *   * `dataset_id` - for = or !=. Some examples of using the filter are:
      *   * `image_classification_model_metadata:*` --> The model has
      *                                        image_classification_model_metadata.
-     *   * `dataset_id=5` --> The model was created from a sibling dataset with
-     *                    ID 5.
+     *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
      * 
* * string filter = 3; @@ -919,8 +908,7 @@ public Builder clearPageSize() { *
      * A token identifying a page of results for the server to return
      * Typically obtained via
-     * [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token]
-     * of the previous
+     * [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token] of the previous
      * [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels] call.
      * 
* @@ -943,8 +931,7 @@ public java.lang.String getPageToken() { *
      * A token identifying a page of results for the server to return
      * Typically obtained via
-     * [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token]
-     * of the previous
+     * [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token] of the previous
      * [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels] call.
      * 
* @@ -967,8 +954,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { *
      * A token identifying a page of results for the server to return
      * Typically obtained via
-     * [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token]
-     * of the previous
+     * [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token] of the previous
      * [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels] call.
      * 
* @@ -989,8 +975,7 @@ public Builder setPageToken(java.lang.String value) { *
      * A token identifying a page of results for the server to return
      * Typically obtained via
-     * [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token]
-     * of the previous
+     * [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token] of the previous
      * [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels] call.
      * 
* @@ -1008,8 +993,7 @@ public Builder clearPageToken() { *
      * A token identifying a page of results for the server to return
      * Typically obtained via
-     * [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token]
-     * of the previous
+     * [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token] of the previous
      * [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels] call.
      * 
* diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequestOrBuilder.java index a35ec3a3caf9..ee307557b22e 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsRequestOrBuilder.java @@ -34,13 +34,12 @@ public interface ListModelsRequestOrBuilder * *
    * An expression for filtering the results of the request.
-   *   * `model_metadata` - for existence of the case.
-   *   * `dataset_id` - for = or !=.
-   * Some examples of using the filter are:
+   *   * `model_metadata` - for existence of the case (e.g.
+   *             video_classification_model_metadata:*).
+   *   * `dataset_id` - for = or !=. Some examples of using the filter are:
    *   * `image_classification_model_metadata:*` --> The model has
    *                                        image_classification_model_metadata.
-   *   * `dataset_id=5` --> The model was created from a sibling dataset with
-   *                    ID 5.
+   *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
    * 
* * string filter = 3; @@ -51,13 +50,12 @@ public interface ListModelsRequestOrBuilder * *
    * An expression for filtering the results of the request.
-   *   * `model_metadata` - for existence of the case.
-   *   * `dataset_id` - for = or !=.
-   * Some examples of using the filter are:
+   *   * `model_metadata` - for existence of the case (e.g.
+   *             video_classification_model_metadata:*).
+   *   * `dataset_id` - for = or !=. Some examples of using the filter are:
    *   * `image_classification_model_metadata:*` --> The model has
    *                                        image_classification_model_metadata.
-   *   * `dataset_id=5` --> The model was created from a sibling dataset with
-   *                    ID 5.
+   *   * `dataset_id=5` --> The model was created from a dataset with ID 5.
    * 
* * string filter = 3; @@ -81,8 +79,7 @@ public interface ListModelsRequestOrBuilder *
    * A token identifying a page of results for the server to return
    * Typically obtained via
-   * [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token]
-   * of the previous
+   * [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token] of the previous
    * [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels] call.
    * 
* @@ -95,8 +92,7 @@ public interface ListModelsRequestOrBuilder *
    * A token identifying a page of results for the server to return
    * Typically obtained via
-   * [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token]
-   * of the previous
+   * [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token] of the previous
    * [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels] call.
    * 
* diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponse.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponse.java index a62e4e7edd8b..4bd608396675 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponse.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponse.java @@ -7,8 +7,7 @@ * * *
- * Response message for
- * [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels].
+ * Response message for [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelsResponse} @@ -179,7 +178,7 @@ public com.google.cloud.automl.v1beta1.ModelOrBuilder getModelOrBuilder(int inde * *
    * A token to retrieve next page of results.
-   * Pass to [ListModels.page_token][] to obtain that page.
+   * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; @@ -200,7 +199,7 @@ public java.lang.String getNextPageToken() { * *
    * A token to retrieve next page of results.
-   * Pass to [ListModels.page_token][] to obtain that page.
+   * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; @@ -391,8 +390,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for
-   * [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels].
+   * Response message for [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.ListModelsResponse} @@ -950,7 +948,7 @@ public java.util.List getModelBui * *
      * A token to retrieve next page of results.
-     * Pass to [ListModels.page_token][] to obtain that page.
+     * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; @@ -971,7 +969,7 @@ public java.lang.String getNextPageToken() { * *
      * A token to retrieve next page of results.
-     * Pass to [ListModels.page_token][] to obtain that page.
+     * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; @@ -992,7 +990,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * *
      * A token to retrieve next page of results.
-     * Pass to [ListModels.page_token][] to obtain that page.
+     * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; @@ -1011,7 +1009,7 @@ public Builder setNextPageToken(java.lang.String value) { * *
      * A token to retrieve next page of results.
-     * Pass to [ListModels.page_token][] to obtain that page.
+     * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; @@ -1027,7 +1025,7 @@ public Builder clearNextPageToken() { * *
      * A token to retrieve next page of results.
-     * Pass to [ListModels.page_token][] to obtain that page.
+     * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
      * 
* * string next_page_token = 2; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponseOrBuilder.java index b2d1d915f4d8..1a90866e6523 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListModelsResponseOrBuilder.java @@ -64,7 +64,7 @@ public interface ListModelsResponseOrBuilder * *
    * A token to retrieve next page of results.
-   * Pass to [ListModels.page_token][] to obtain that page.
+   * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; @@ -75,7 +75,7 @@ public interface ListModelsResponseOrBuilder * *
    * A token to retrieve next page of results.
-   * Pass to [ListModels.page_token][] to obtain that page.
+   * Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page.
    * 
* * string next_page_token = 2; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequest.java new file mode 100644 index 000000000000..58da1ec33de5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequest.java @@ -0,0 +1,1282 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Request message for [AutoMl.ListTableSpecs][google.cloud.automl.v1beta1.AutoMl.ListTableSpecs].
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ListTableSpecsRequest} + */ +public final class ListTableSpecsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ListTableSpecsRequest) + ListTableSpecsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTableSpecsRequest.newBuilder() to construct. + private ListTableSpecsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTableSpecsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListTableSpecsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (fieldMask_ != null) { + subBuilder = fieldMask_.toBuilder(); + } + fieldMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fieldMask_); + fieldMask_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 32: + { + pageSize_ = input.readInt32(); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListTableSpecsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListTableSpecsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ListTableSpecsRequest.class, + com.google.cloud.automl.v1beta1.ListTableSpecsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * The resource name of the dataset to list table specs from.
+   * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * The resource name of the dataset to list table specs from.
+   * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIELD_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask fieldMask_; + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public boolean hasFieldMask() { + return fieldMask_ != null; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public com.google.protobuf.FieldMask getFieldMask() { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + return getFieldMask(); + } + + public static final int FILTER_FIELD_NUMBER = 3; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Filter expression, see go/filtering.
+   * 
+ * + * string filter = 3; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Filter expression, see go/filtering.
+   * 
+ * + * string filter = 3; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 4; + private int pageSize_; + /** + * + * + *
+   * Requested page size. The server can return fewer results than requested.
+   * If unspecified, the server will pick a default size.
+   * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 6; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A token identifying a page of results for the server to return.
+   * Typically obtained from the
+   * [ListTableSpecsResponse.next_page_token][google.cloud.automl.v1beta1.ListTableSpecsResponse.next_page_token] field of the previous
+   * [AutoMl.ListTableSpecs][google.cloud.automl.v1beta1.AutoMl.ListTableSpecs] call.
+   * 
+ * + * string page_token = 6; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token identifying a page of results for the server to return.
+   * Typically obtained from the
+   * [ListTableSpecsResponse.next_page_token][google.cloud.automl.v1beta1.ListTableSpecsResponse.next_page_token] field of the previous
+   * [AutoMl.ListTableSpecs][google.cloud.automl.v1beta1.AutoMl.ListTableSpecs] call.
+   * 
+ * + * string page_token = 6; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (fieldMask_ != null) { + output.writeMessage(2, getFieldMask()); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(4, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (fieldMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFieldMask()); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.ListTableSpecsRequest)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ListTableSpecsRequest other = + (com.google.cloud.automl.v1beta1.ListTableSpecsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasFieldMask() != other.hasFieldMask()) return false; + if (hasFieldMask()) { + if (!getFieldMask().equals(other.getFieldMask())) return false; + } + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasFieldMask()) { + hash = (37 * hash) + FIELD_MASK_FIELD_NUMBER; + hash = (53 * hash) + getFieldMask().hashCode(); + } + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ListTableSpecsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [AutoMl.ListTableSpecs][google.cloud.automl.v1beta1.AutoMl.ListTableSpecs].
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ListTableSpecsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ListTableSpecsRequest) + com.google.cloud.automl.v1beta1.ListTableSpecsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListTableSpecsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListTableSpecsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ListTableSpecsRequest.class, + com.google.cloud.automl.v1beta1.ListTableSpecsRequest.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.ListTableSpecsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (fieldMaskBuilder_ == null) { + fieldMask_ = null; + } else { + fieldMask_ = null; + fieldMaskBuilder_ = null; + } + filter_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListTableSpecsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ListTableSpecsRequest getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ListTableSpecsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ListTableSpecsRequest build() { + com.google.cloud.automl.v1beta1.ListTableSpecsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ListTableSpecsRequest buildPartial() { + com.google.cloud.automl.v1beta1.ListTableSpecsRequest result = + new com.google.cloud.automl.v1beta1.ListTableSpecsRequest(this); + result.parent_ = parent_; + if (fieldMaskBuilder_ == null) { + result.fieldMask_ = fieldMask_; + } else { + result.fieldMask_ = fieldMaskBuilder_.build(); + } + result.filter_ = filter_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.ListTableSpecsRequest) { + return mergeFrom((com.google.cloud.automl.v1beta1.ListTableSpecsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListTableSpecsRequest other) { + if (other == com.google.cloud.automl.v1beta1.ListTableSpecsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasFieldMask()) { + mergeFieldMask(other.getFieldMask()); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ListTableSpecsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ListTableSpecsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * The resource name of the dataset to list table specs from.
+     * 
+ * + * string parent = 1; + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name of the dataset to list table specs from.
+     * 
+ * + * string parent = 1; + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource name of the dataset to list table specs from.
+     * 
+ * + * string parent = 1; + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the dataset to list table specs from.
+     * 
+ * + * string parent = 1; + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name of the dataset to list table specs from.
+     * 
+ * + * string parent = 1; + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask fieldMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + fieldMaskBuilder_; + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public boolean hasFieldMask() { + return fieldMaskBuilder_ != null || fieldMask_ != null; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public com.google.protobuf.FieldMask getFieldMask() { + if (fieldMaskBuilder_ == null) { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } else { + return fieldMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fieldMask_ = value; + onChanged(); + } else { + fieldMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (fieldMaskBuilder_ == null) { + fieldMask_ = builderForValue.build(); + onChanged(); + } else { + fieldMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { + if (fieldMaskBuilder_ == null) { + if (fieldMask_ != null) { + fieldMask_ = + com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + } else { + fieldMask_ = value; + } + onChanged(); + } else { + fieldMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public Builder clearFieldMask() { + if (fieldMaskBuilder_ == null) { + fieldMask_ = null; + onChanged(); + } else { + fieldMask_ = null; + fieldMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { + + onChanged(); + return getFieldMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { + if (fieldMaskBuilder_ != null) { + return fieldMaskBuilder_.getMessageOrBuilder(); + } else { + return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getFieldMaskFieldBuilder() { + if (fieldMaskBuilder_ == null) { + fieldMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getFieldMask(), getParentForChildren(), isClean()); + fieldMask_ = null; + } + return fieldMaskBuilder_; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Filter expression, see go/filtering.
+     * 
+ * + * string filter = 3; + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Filter expression, see go/filtering.
+     * 
+ * + * string filter = 3; + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Filter expression, see go/filtering.
+     * 
+ * + * string filter = 3; + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Filter expression, see go/filtering.
+     * 
+ * + * string filter = 3; + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Filter expression, see go/filtering.
+     * 
+ * + * string filter = 3; + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Requested page size. The server can return fewer results than requested.
+     * If unspecified, the server will pick a default size.
+     * 
+ * + * int32 page_size = 4; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Requested page size. The server can return fewer results than requested.
+     * If unspecified, the server will pick a default size.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Requested page size. The server can return fewer results than requested.
+     * If unspecified, the server will pick a default size.
+     * 
+ * + * int32 page_size = 4; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A token identifying a page of results for the server to return.
+     * Typically obtained from the
+     * [ListTableSpecsResponse.next_page_token][google.cloud.automl.v1beta1.ListTableSpecsResponse.next_page_token] field of the previous
+     * [AutoMl.ListTableSpecs][google.cloud.automl.v1beta1.AutoMl.ListTableSpecs] call.
+     * 
+ * + * string page_token = 6; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results for the server to return.
+     * Typically obtained from the
+     * [ListTableSpecsResponse.next_page_token][google.cloud.automl.v1beta1.ListTableSpecsResponse.next_page_token] field of the previous
+     * [AutoMl.ListTableSpecs][google.cloud.automl.v1beta1.AutoMl.ListTableSpecs] call.
+     * 
+ * + * string page_token = 6; + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token identifying a page of results for the server to return.
+     * Typically obtained from the
+     * [ListTableSpecsResponse.next_page_token][google.cloud.automl.v1beta1.ListTableSpecsResponse.next_page_token] field of the previous
+     * [AutoMl.ListTableSpecs][google.cloud.automl.v1beta1.AutoMl.ListTableSpecs] call.
+     * 
+ * + * string page_token = 6; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results for the server to return.
+     * Typically obtained from the
+     * [ListTableSpecsResponse.next_page_token][google.cloud.automl.v1beta1.ListTableSpecsResponse.next_page_token] field of the previous
+     * [AutoMl.ListTableSpecs][google.cloud.automl.v1beta1.AutoMl.ListTableSpecs] call.
+     * 
+ * + * string page_token = 6; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token identifying a page of results for the server to return.
+     * Typically obtained from the
+     * [ListTableSpecsResponse.next_page_token][google.cloud.automl.v1beta1.ListTableSpecsResponse.next_page_token] field of the previous
+     * [AutoMl.ListTableSpecs][google.cloud.automl.v1beta1.AutoMl.ListTableSpecs] call.
+     * 
+ * + * string page_token = 6; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ListTableSpecsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListTableSpecsRequest) + private static final com.google.cloud.automl.v1beta1.ListTableSpecsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ListTableSpecsRequest(); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTableSpecsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTableSpecsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ListTableSpecsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequestOrBuilder.java new file mode 100644 index 000000000000..1844ab600906 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsRequestOrBuilder.java @@ -0,0 +1,122 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface ListTableSpecsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ListTableSpecsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name of the dataset to list table specs from.
+   * 
+ * + * string parent = 1; + */ + java.lang.String getParent(); + /** + * + * + *
+   * The resource name of the dataset to list table specs from.
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + boolean hasFieldMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + com.google.protobuf.FieldMask getFieldMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask field_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); + + /** + * + * + *
+   * Filter expression, see go/filtering.
+   * 
+ * + * string filter = 3; + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Filter expression, see go/filtering.
+   * 
+ * + * string filter = 3; + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Requested page size. The server can return fewer results than requested.
+   * If unspecified, the server will pick a default size.
+   * 
+ * + * int32 page_size = 4; + */ + int getPageSize(); + + /** + * + * + *
+   * A token identifying a page of results for the server to return.
+   * Typically obtained from the
+   * [ListTableSpecsResponse.next_page_token][google.cloud.automl.v1beta1.ListTableSpecsResponse.next_page_token] field of the previous
+   * [AutoMl.ListTableSpecs][google.cloud.automl.v1beta1.AutoMl.ListTableSpecs] call.
+   * 
+ * + * string page_token = 6; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A token identifying a page of results for the server to return.
+   * Typically obtained from the
+   * [ListTableSpecsResponse.next_page_token][google.cloud.automl.v1beta1.ListTableSpecsResponse.next_page_token] field of the previous
+   * [AutoMl.ListTableSpecs][google.cloud.automl.v1beta1.AutoMl.ListTableSpecs] call.
+   * 
+ * + * string page_token = 6; + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponse.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponse.java new file mode 100644 index 000000000000..792e3803a725 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponse.java @@ -0,0 +1,1097 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Response message for [AutoMl.ListTableSpecs][google.cloud.automl.v1beta1.AutoMl.ListTableSpecs].
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ListTableSpecsResponse} + */ +public final class ListTableSpecsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ListTableSpecsResponse) + ListTableSpecsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTableSpecsResponse.newBuilder() to construct. + private ListTableSpecsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTableSpecsResponse() { + tableSpecs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListTableSpecsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + tableSpecs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tableSpecs_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.TableSpec.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + tableSpecs_ = java.util.Collections.unmodifiableList(tableSpecs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListTableSpecsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListTableSpecsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ListTableSpecsResponse.class, + com.google.cloud.automl.v1beta1.ListTableSpecsResponse.Builder.class); + } + + private int bitField0_; + public static final int TABLE_SPECS_FIELD_NUMBER = 1; + private java.util.List tableSpecs_; + /** + * + * + *
+   * The table specs read.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public java.util.List getTableSpecsList() { + return tableSpecs_; + } + /** + * + * + *
+   * The table specs read.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public java.util.List + getTableSpecsOrBuilderList() { + return tableSpecs_; + } + /** + * + * + *
+   * The table specs read.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public int getTableSpecsCount() { + return tableSpecs_.size(); + } + /** + * + * + *
+   * The table specs read.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public com.google.cloud.automl.v1beta1.TableSpec getTableSpecs(int index) { + return tableSpecs_.get(index); + } + /** + * + * + *
+   * The table specs read.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public com.google.cloud.automl.v1beta1.TableSpecOrBuilder getTableSpecsOrBuilder(int index) { + return tableSpecs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [ListTableSpecsRequest.page_token][google.cloud.automl.v1beta1.ListTableSpecsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [ListTableSpecsRequest.page_token][google.cloud.automl.v1beta1.ListTableSpecsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < tableSpecs_.size(); i++) { + output.writeMessage(1, tableSpecs_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tableSpecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tableSpecs_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.ListTableSpecsResponse)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ListTableSpecsResponse other = + (com.google.cloud.automl.v1beta1.ListTableSpecsResponse) obj; + + if (!getTableSpecsList().equals(other.getTableSpecsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTableSpecsCount() > 0) { + hash = (37 * hash) + TABLE_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getTableSpecsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ListTableSpecsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for [AutoMl.ListTableSpecs][google.cloud.automl.v1beta1.AutoMl.ListTableSpecs].
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ListTableSpecsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ListTableSpecsResponse) + com.google.cloud.automl.v1beta1.ListTableSpecsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListTableSpecsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListTableSpecsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ListTableSpecsResponse.class, + com.google.cloud.automl.v1beta1.ListTableSpecsResponse.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.ListTableSpecsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTableSpecsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (tableSpecsBuilder_ == null) { + tableSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + tableSpecsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_ListTableSpecsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ListTableSpecsResponse getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ListTableSpecsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ListTableSpecsResponse build() { + com.google.cloud.automl.v1beta1.ListTableSpecsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ListTableSpecsResponse buildPartial() { + com.google.cloud.automl.v1beta1.ListTableSpecsResponse result = + new com.google.cloud.automl.v1beta1.ListTableSpecsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (tableSpecsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tableSpecs_ = java.util.Collections.unmodifiableList(tableSpecs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tableSpecs_ = tableSpecs_; + } else { + result.tableSpecs_ = tableSpecsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.ListTableSpecsResponse) { + return mergeFrom((com.google.cloud.automl.v1beta1.ListTableSpecsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.ListTableSpecsResponse other) { + if (other == com.google.cloud.automl.v1beta1.ListTableSpecsResponse.getDefaultInstance()) + return this; + if (tableSpecsBuilder_ == null) { + if (!other.tableSpecs_.isEmpty()) { + if (tableSpecs_.isEmpty()) { + tableSpecs_ = other.tableSpecs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTableSpecsIsMutable(); + tableSpecs_.addAll(other.tableSpecs_); + } + onChanged(); + } + } else { + if (!other.tableSpecs_.isEmpty()) { + if (tableSpecsBuilder_.isEmpty()) { + tableSpecsBuilder_.dispose(); + tableSpecsBuilder_ = null; + tableSpecs_ = other.tableSpecs_; + bitField0_ = (bitField0_ & ~0x00000001); + tableSpecsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTableSpecsFieldBuilder() + : null; + } else { + tableSpecsBuilder_.addAllMessages(other.tableSpecs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ListTableSpecsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ListTableSpecsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List tableSpecs_ = + java.util.Collections.emptyList(); + + private void ensureTableSpecsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tableSpecs_ = + new java.util.ArrayList(tableSpecs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.TableSpec, + com.google.cloud.automl.v1beta1.TableSpec.Builder, + com.google.cloud.automl.v1beta1.TableSpecOrBuilder> + tableSpecsBuilder_; + + /** + * + * + *
+     * The table specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public java.util.List getTableSpecsList() { + if (tableSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tableSpecs_); + } else { + return tableSpecsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The table specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public int getTableSpecsCount() { + if (tableSpecsBuilder_ == null) { + return tableSpecs_.size(); + } else { + return tableSpecsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The table specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public com.google.cloud.automl.v1beta1.TableSpec getTableSpecs(int index) { + if (tableSpecsBuilder_ == null) { + return tableSpecs_.get(index); + } else { + return tableSpecsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The table specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public Builder setTableSpecs(int index, com.google.cloud.automl.v1beta1.TableSpec value) { + if (tableSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTableSpecsIsMutable(); + tableSpecs_.set(index, value); + onChanged(); + } else { + tableSpecsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The table specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public Builder setTableSpecs( + int index, com.google.cloud.automl.v1beta1.TableSpec.Builder builderForValue) { + if (tableSpecsBuilder_ == null) { + ensureTableSpecsIsMutable(); + tableSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + tableSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The table specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public Builder addTableSpecs(com.google.cloud.automl.v1beta1.TableSpec value) { + if (tableSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTableSpecsIsMutable(); + tableSpecs_.add(value); + onChanged(); + } else { + tableSpecsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The table specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public Builder addTableSpecs(int index, com.google.cloud.automl.v1beta1.TableSpec value) { + if (tableSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTableSpecsIsMutable(); + tableSpecs_.add(index, value); + onChanged(); + } else { + tableSpecsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The table specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public Builder addTableSpecs( + com.google.cloud.automl.v1beta1.TableSpec.Builder builderForValue) { + if (tableSpecsBuilder_ == null) { + ensureTableSpecsIsMutable(); + tableSpecs_.add(builderForValue.build()); + onChanged(); + } else { + tableSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The table specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public Builder addTableSpecs( + int index, com.google.cloud.automl.v1beta1.TableSpec.Builder builderForValue) { + if (tableSpecsBuilder_ == null) { + ensureTableSpecsIsMutable(); + tableSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + tableSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The table specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public Builder addAllTableSpecs( + java.lang.Iterable values) { + if (tableSpecsBuilder_ == null) { + ensureTableSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tableSpecs_); + onChanged(); + } else { + tableSpecsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The table specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public Builder clearTableSpecs() { + if (tableSpecsBuilder_ == null) { + tableSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tableSpecsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The table specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public Builder removeTableSpecs(int index) { + if (tableSpecsBuilder_ == null) { + ensureTableSpecsIsMutable(); + tableSpecs_.remove(index); + onChanged(); + } else { + tableSpecsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The table specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public com.google.cloud.automl.v1beta1.TableSpec.Builder getTableSpecsBuilder(int index) { + return getTableSpecsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The table specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public com.google.cloud.automl.v1beta1.TableSpecOrBuilder getTableSpecsOrBuilder(int index) { + if (tableSpecsBuilder_ == null) { + return tableSpecs_.get(index); + } else { + return tableSpecsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The table specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public java.util.List + getTableSpecsOrBuilderList() { + if (tableSpecsBuilder_ != null) { + return tableSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tableSpecs_); + } + } + /** + * + * + *
+     * The table specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public com.google.cloud.automl.v1beta1.TableSpec.Builder addTableSpecsBuilder() { + return getTableSpecsFieldBuilder() + .addBuilder(com.google.cloud.automl.v1beta1.TableSpec.getDefaultInstance()); + } + /** + * + * + *
+     * The table specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public com.google.cloud.automl.v1beta1.TableSpec.Builder addTableSpecsBuilder(int index) { + return getTableSpecsFieldBuilder() + .addBuilder(index, com.google.cloud.automl.v1beta1.TableSpec.getDefaultInstance()); + } + /** + * + * + *
+     * The table specs read.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + public java.util.List + getTableSpecsBuilderList() { + return getTableSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.TableSpec, + com.google.cloud.automl.v1beta1.TableSpec.Builder, + com.google.cloud.automl.v1beta1.TableSpecOrBuilder> + getTableSpecsFieldBuilder() { + if (tableSpecsBuilder_ == null) { + tableSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.TableSpec, + com.google.cloud.automl.v1beta1.TableSpec.Builder, + com.google.cloud.automl.v1beta1.TableSpecOrBuilder>( + tableSpecs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + tableSpecs_ = null; + } + return tableSpecsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [ListTableSpecsRequest.page_token][google.cloud.automl.v1beta1.ListTableSpecsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [ListTableSpecsRequest.page_token][google.cloud.automl.v1beta1.ListTableSpecsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [ListTableSpecsRequest.page_token][google.cloud.automl.v1beta1.ListTableSpecsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [ListTableSpecsRequest.page_token][google.cloud.automl.v1beta1.ListTableSpecsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [ListTableSpecsRequest.page_token][google.cloud.automl.v1beta1.ListTableSpecsRequest.page_token] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ListTableSpecsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ListTableSpecsResponse) + private static final com.google.cloud.automl.v1beta1.ListTableSpecsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ListTableSpecsResponse(); + } + + public static com.google.cloud.automl.v1beta1.ListTableSpecsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTableSpecsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTableSpecsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ListTableSpecsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponseOrBuilder.java new file mode 100644 index 000000000000..5e35622eb33a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ListTableSpecsResponseOrBuilder.java @@ -0,0 +1,85 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface ListTableSpecsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ListTableSpecsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The table specs read.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + java.util.List getTableSpecsList(); + /** + * + * + *
+   * The table specs read.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + com.google.cloud.automl.v1beta1.TableSpec getTableSpecs(int index); + /** + * + * + *
+   * The table specs read.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + int getTableSpecsCount(); + /** + * + * + *
+   * The table specs read.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + java.util.List + getTableSpecsOrBuilderList(); + /** + * + * + *
+   * The table specs read.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TableSpec table_specs = 1; + */ + com.google.cloud.automl.v1beta1.TableSpecOrBuilder getTableSpecsOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [ListTableSpecsRequest.page_token][google.cloud.automl.v1beta1.ListTableSpecsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [ListTableSpecsRequest.page_token][google.cloud.automl.v1beta1.ListTableSpecsRequest.page_token] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Model.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Model.java index 66fe9ab9a55d..1c9473aa76f0 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Model.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Model.java @@ -177,6 +177,112 @@ private Model( modelMetadataCase_ = 15; break; } + case 154: + { + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.Builder subBuilder = null; + if (modelMetadataCase_ == 19) { + subBuilder = + ((com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) modelMetadata_) + .toBuilder(); + } + modelMetadata_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); + } + modelMetadataCase_ = 19; + break; + } + case 162: + { + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.Builder subBuilder = + null; + if (modelMetadataCase_ == 20) { + subBuilder = + ((com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) + modelMetadata_) + .toBuilder(); + } + modelMetadata_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) + modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); + } + modelMetadataCase_ = 20; + break; + } + case 178: + { + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder subBuilder = null; + if (modelMetadataCase_ == 22) { + subBuilder = + ((com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_) + .toBuilder(); + } + modelMetadata_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); + } + modelMetadataCase_ = 22; + break; + } + case 186: + { + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.Builder subBuilder = + null; + if (modelMetadataCase_ == 23) { + subBuilder = + ((com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) + modelMetadata_) + .toBuilder(); + } + modelMetadata_ = + input.readMessage( + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) + modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); + } + modelMetadataCase_ = 23; + break; + } + case 194: + { + com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder subBuilder = null; + if (modelMetadataCase_ == 24) { + subBuilder = + ((com.google.cloud.automl.v1beta1.TablesModelMetadata) modelMetadata_) + .toBuilder(); + } + modelMetadata_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TablesModelMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.TablesModelMetadata) modelMetadata_); + modelMetadata_ = subBuilder.buildPartial(); + } + modelMetadataCase_ = 24; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -362,9 +468,14 @@ private DeploymentState(int value) { private java.lang.Object modelMetadata_; public enum ModelMetadataCase implements com.google.protobuf.Internal.EnumLite { + TRANSLATION_MODEL_METADATA(15), IMAGE_CLASSIFICATION_MODEL_METADATA(13), TEXT_CLASSIFICATION_MODEL_METADATA(14), - TRANSLATION_MODEL_METADATA(15), + IMAGE_OBJECT_DETECTION_MODEL_METADATA(20), + VIDEO_CLASSIFICATION_MODEL_METADATA(23), + TEXT_EXTRACTION_MODEL_METADATA(19), + TABLES_MODEL_METADATA(24), + TEXT_SENTIMENT_MODEL_METADATA(22), MODELMETADATA_NOT_SET(0); private final int value; @@ -379,12 +490,22 @@ public static ModelMetadataCase valueOf(int value) { public static ModelMetadataCase forNumber(int value) { switch (value) { + case 15: + return TRANSLATION_MODEL_METADATA; case 13: return IMAGE_CLASSIFICATION_MODEL_METADATA; case 14: return TEXT_CLASSIFICATION_MODEL_METADATA; - case 15: - return TRANSLATION_MODEL_METADATA; + case 20: + return IMAGE_OBJECT_DETECTION_MODEL_METADATA; + case 23: + return VIDEO_CLASSIFICATION_MODEL_METADATA; + case 19: + return TEXT_EXTRACTION_MODEL_METADATA; + case 24: + return TABLES_MODEL_METADATA; + case 22: + return TEXT_SENTIMENT_MODEL_METADATA; case 0: return MODELMETADATA_NOT_SET; default: @@ -401,6 +522,54 @@ public ModelMetadataCase getModelMetadataCase() { return ModelMetadataCase.forNumber(modelMetadataCase_); } + public static final int TRANSLATION_MODEL_METADATA_FIELD_NUMBER = 15; + /** + * + * + *
+   * Metadata for translation models.
+   * 
+ * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + */ + public boolean hasTranslationModelMetadata() { + return modelMetadataCase_ == 15; + } + /** + * + * + *
+   * Metadata for translation models.
+   * 
+ * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + */ + public com.google.cloud.automl.v1beta1.TranslationModelMetadata getTranslationModelMetadata() { + if (modelMetadataCase_ == 15) { + return (com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_; + } + return com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance(); + } + /** + * + * + *
+   * Metadata for translation models.
+   * 
+ * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + */ + public com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder + getTranslationModelMetadataOrBuilder() { + if (modelMetadataCase_ == 15) { + return (com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_; + } + return com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance(); + } + public static final int IMAGE_CLASSIFICATION_MODEL_METADATA_FIELD_NUMBER = 13; /** * @@ -505,233 +674,436 @@ public boolean hasTextClassificationModelMetadata() { return com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.getDefaultInstance(); } - public static final int TRANSLATION_MODEL_METADATA_FIELD_NUMBER = 15; + public static final int IMAGE_OBJECT_DETECTION_MODEL_METADATA_FIELD_NUMBER = 20; /** * * *
-   * Metadata for translation models.
+   * Metadata for image object detection models.
    * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; * */ - public boolean hasTranslationModelMetadata() { - return modelMetadataCase_ == 15; + public boolean hasImageObjectDetectionModelMetadata() { + return modelMetadataCase_ == 20; } /** * * *
-   * Metadata for translation models.
+   * Metadata for image object detection models.
    * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; * */ - public com.google.cloud.automl.v1beta1.TranslationModelMetadata getTranslationModelMetadata() { - if (modelMetadataCase_ == 15) { - return (com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_; + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata + getImageObjectDetectionModelMetadata() { + if (modelMetadataCase_ == 20) { + return (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) modelMetadata_; } - return com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.getDefaultInstance(); } /** * * *
-   * Metadata for translation models.
+   * Metadata for image object detection models.
    * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; * */ - public com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder - getTranslationModelMetadataOrBuilder() { - if (modelMetadataCase_ == 15) { - return (com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_; + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadataOrBuilder + getImageObjectDetectionModelMetadataOrBuilder() { + if (modelMetadataCase_ == 20) { + return (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) modelMetadata_; } - return com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.getDefaultInstance(); } - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + public static final int VIDEO_CLASSIFICATION_MODEL_METADATA_FIELD_NUMBER = 23; /** * * *
-   * Output only.
-   * Resource name of the model.
-   * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
+   * Metadata for video classification models.
    * 
* - * string name = 1; + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } + public boolean hasVideoClassificationModelMetadata() { + return modelMetadataCase_ == 23; } /** * * *
-   * Output only.
-   * Resource name of the model.
-   * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
+   * Metadata for video classification models.
    * 
* - * string name = 1; + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata + getVideoClassificationModelMetadata() { + if (modelMetadataCase_ == 23) { + return (com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) modelMetadata_; } + return com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.getDefaultInstance(); } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; /** * * *
-   * Required. The name of the model to show in the interface. The name can be
-   * up to 32 characters
-   * long and can consist only of ASCII Latin letters A-Z and a-z, underscores
-   * (_), and ASCII digits 0-9.
+   * Metadata for video classification models.
    * 
* - * string display_name = 2; + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; + public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadataOrBuilder + getVideoClassificationModelMetadataOrBuilder() { + if (modelMetadataCase_ == 23) { + return (com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) modelMetadata_; } + return com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.getDefaultInstance(); } + + public static final int TEXT_EXTRACTION_MODEL_METADATA_FIELD_NUMBER = 19; /** * * *
-   * Required. The name of the model to show in the interface. The name can be
-   * up to 32 characters
-   * long and can consist only of ASCII Latin letters A-Z and a-z, underscores
-   * (_), and ASCII digits 0-9.
+   * Metadata for text extraction models.
    * 
* - * string display_name = 2; + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public boolean hasTextExtractionModelMetadata() { + return modelMetadataCase_ == 19; } - - public static final int DATASET_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object datasetId_; /** * * *
-   * Required.
-   * The resource ID of the dataset used to create the model. The dataset must
-   * come from the
-   * same ancestor project and location.
+   * Metadata for text extraction models.
    * 
* - * string dataset_id = 3; + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * */ - public java.lang.String getDatasetId() { - java.lang.Object ref = datasetId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - datasetId_ = s; - return s; + public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata + getTextExtractionModelMetadata() { + if (modelMetadataCase_ == 19) { + return (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) modelMetadata_; } + return com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.getDefaultInstance(); } /** * * *
-   * Required.
-   * The resource ID of the dataset used to create the model. The dataset must
-   * come from the
-   * same ancestor project and location.
+   * Metadata for text extraction models.
    * 
* - * string dataset_id = 3; + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * */ - public com.google.protobuf.ByteString getDatasetIdBytes() { - java.lang.Object ref = datasetId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - datasetId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public com.google.cloud.automl.v1beta1.TextExtractionModelMetadataOrBuilder + getTextExtractionModelMetadataOrBuilder() { + if (modelMetadataCase_ == 19) { + return (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) modelMetadata_; } + return com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.getDefaultInstance(); } - public static final int CREATE_TIME_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp createTime_; + public static final int TABLES_MODEL_METADATA_FIELD_NUMBER = 24; /** * * *
-   * Output only.
-   * Timestamp when this model was created.
+   * Metadata for Tables models.
    * 
* - * .google.protobuf.Timestamp create_time = 7; + * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ - public boolean hasCreateTime() { - return createTime_ != null; + public boolean hasTablesModelMetadata() { + return modelMetadataCase_ == 24; } /** * * *
-   * Output only.
-   * Timestamp when this model was created.
+   * Metadata for Tables models.
    * 
* - * .google.protobuf.Timestamp create_time = 7; + * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + public com.google.cloud.automl.v1beta1.TablesModelMetadata getTablesModelMetadata() { + if (modelMetadataCase_ == 24) { + return (com.google.cloud.automl.v1beta1.TablesModelMetadata) modelMetadata_; + } + return com.google.cloud.automl.v1beta1.TablesModelMetadata.getDefaultInstance(); } /** * * *
-   * Output only.
-   * Timestamp when this model was created.
+   * Metadata for Tables models.
+   * 
+ * + * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; + */ + public com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder + getTablesModelMetadataOrBuilder() { + if (modelMetadataCase_ == 24) { + return (com.google.cloud.automl.v1beta1.TablesModelMetadata) modelMetadata_; + } + return com.google.cloud.automl.v1beta1.TablesModelMetadata.getDefaultInstance(); + } + + public static final int TEXT_SENTIMENT_MODEL_METADATA_FIELD_NUMBER = 22; + /** + * + * + *
+   * Metadata for text sentiment models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + */ + public boolean hasTextSentimentModelMetadata() { + return modelMetadataCase_ == 22; + } + /** + * + * + *
+   * Metadata for text sentiment models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + */ + public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata + getTextSentimentModelMetadata() { + if (modelMetadataCase_ == 22) { + return (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_; + } + return com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.getDefaultInstance(); + } + /** + * + * + *
+   * Metadata for text sentiment models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + */ + public com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder + getTextSentimentModelMetadataOrBuilder() { + if (modelMetadataCase_ == 22) { + return (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_; + } + return com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only.
+   * Resource name of the model.
+   * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only.
+   * Resource name of the model.
+   * Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Required. The name of the model to show in the interface. The name can be
+   * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+   * and a-z, underscores
+   * (_), and ASCII digits 0-9. It must start with a letter.
+   * 
+ * + * string display_name = 2; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the model to show in the interface. The name can be
+   * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+   * and a-z, underscores
+   * (_), and ASCII digits 0-9. It must start with a letter.
+   * 
+ * + * string display_name = 2; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATASET_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object datasetId_; + /** + * + * + *
+   * Required.
+   * The resource ID of the dataset used to create the model. The dataset must
+   * come from the same ancestor project and location.
+   * 
+ * + * string dataset_id = 3; + */ + public java.lang.String getDatasetId() { + java.lang.Object ref = datasetId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datasetId_ = s; + return s; + } + } + /** + * + * + *
+   * Required.
+   * The resource ID of the dataset used to create the model. The dataset must
+   * come from the same ancestor project and location.
+   * 
+ * + * string dataset_id = 3; + */ + public com.google.protobuf.ByteString getDatasetIdBytes() { + java.lang.Object ref = datasetId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only.
+   * Timestamp when this model was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only.
+   * Timestamp when this model was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7; + */ + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only.
+   * Timestamp when this model was created.
    * 
* * .google.protobuf.Timestamp create_time = 7; @@ -788,7 +1160,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-   * Output only. Deployment state of the model.
+   * Output only. Deployment state of the model. A model can only serve
+   * prediction requests after it gets deployed.
    * 
* * .google.cloud.automl.v1beta1.Model.DeploymentState deployment_state = 8; @@ -800,7 +1173,8 @@ public int getDeploymentStateValue() { * * *
-   * Output only. Deployment state of the model.
+   * Output only. Deployment state of the model. A model can only serve
+   * prediction requests after it gets deployed.
    * 
* * .google.cloud.automl.v1beta1.Model.DeploymentState deployment_state = 8; @@ -860,6 +1234,25 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 15, (com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_); } + if (modelMetadataCase_ == 19) { + output.writeMessage( + 19, (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) modelMetadata_); + } + if (modelMetadataCase_ == 20) { + output.writeMessage( + 20, (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) modelMetadata_); + } + if (modelMetadataCase_ == 22) { + output.writeMessage( + 22, (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_); + } + if (modelMetadataCase_ == 23) { + output.writeMessage( + 23, (com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) modelMetadata_); + } + if (modelMetadataCase_ == 24) { + output.writeMessage(24, (com.google.cloud.automl.v1beta1.TablesModelMetadata) modelMetadata_); + } unknownFields.writeTo(output); } @@ -905,6 +1298,33 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 15, (com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_); } + if (modelMetadataCase_ == 19) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 19, (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) modelMetadata_); + } + if (modelMetadataCase_ == 20) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 20, + (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) modelMetadata_); + } + if (modelMetadataCase_ == 22) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_); + } + if (modelMetadataCase_ == 23) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 23, + (com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) modelMetadata_); + } + if (modelMetadataCase_ == 24) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 24, (com.google.cloud.automl.v1beta1.TablesModelMetadata) modelMetadata_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -934,6 +1354,10 @@ public boolean equals(final java.lang.Object obj) { if (deploymentState_ != other.deploymentState_) return false; if (!getModelMetadataCase().equals(other.getModelMetadataCase())) return false; switch (modelMetadataCase_) { + case 15: + if (!getTranslationModelMetadata().equals(other.getTranslationModelMetadata())) + return false; + break; case 13: if (!getImageClassificationModelMetadata() .equals(other.getImageClassificationModelMetadata())) return false; @@ -942,8 +1366,23 @@ public boolean equals(final java.lang.Object obj) { if (!getTextClassificationModelMetadata() .equals(other.getTextClassificationModelMetadata())) return false; break; - case 15: - if (!getTranslationModelMetadata().equals(other.getTranslationModelMetadata())) + case 20: + if (!getImageObjectDetectionModelMetadata() + .equals(other.getImageObjectDetectionModelMetadata())) return false; + break; + case 23: + if (!getVideoClassificationModelMetadata() + .equals(other.getVideoClassificationModelMetadata())) return false; + break; + case 19: + if (!getTextExtractionModelMetadata().equals(other.getTextExtractionModelMetadata())) + return false; + break; + case 24: + if (!getTablesModelMetadata().equals(other.getTablesModelMetadata())) return false; + break; + case 22: + if (!getTextSentimentModelMetadata().equals(other.getTextSentimentModelMetadata())) return false; break; case 0: @@ -977,6 +1416,10 @@ public int hashCode() { hash = (37 * hash) + DEPLOYMENT_STATE_FIELD_NUMBER; hash = (53 * hash) + deploymentState_; switch (modelMetadataCase_) { + case 15: + hash = (37 * hash) + TRANSLATION_MODEL_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTranslationModelMetadata().hashCode(); + break; case 13: hash = (37 * hash) + IMAGE_CLASSIFICATION_MODEL_METADATA_FIELD_NUMBER; hash = (53 * hash) + getImageClassificationModelMetadata().hashCode(); @@ -985,9 +1428,25 @@ public int hashCode() { hash = (37 * hash) + TEXT_CLASSIFICATION_MODEL_METADATA_FIELD_NUMBER; hash = (53 * hash) + getTextClassificationModelMetadata().hashCode(); break; - case 15: - hash = (37 * hash) + TRANSLATION_MODEL_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getTranslationModelMetadata().hashCode(); + case 20: + hash = (37 * hash) + IMAGE_OBJECT_DETECTION_MODEL_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getImageObjectDetectionModelMetadata().hashCode(); + break; + case 23: + hash = (37 * hash) + VIDEO_CLASSIFICATION_MODEL_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getVideoClassificationModelMetadata().hashCode(); + break; + case 19: + hash = (37 * hash) + TEXT_EXTRACTION_MODEL_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTextExtractionModelMetadata().hashCode(); + break; + case 24: + hash = (37 * hash) + TABLES_MODEL_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTablesModelMetadata().hashCode(); + break; + case 22: + hash = (37 * hash) + TEXT_SENTIMENT_MODEL_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTextSentimentModelMetadata().hashCode(); break; case 0: default: @@ -1185,8 +1644,15 @@ public com.google.cloud.automl.v1beta1.Model build() { public com.google.cloud.automl.v1beta1.Model buildPartial() { com.google.cloud.automl.v1beta1.Model result = new com.google.cloud.automl.v1beta1.Model(this); - if (modelMetadataCase_ == 13) { - if (imageClassificationModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 15) { + if (translationModelMetadataBuilder_ == null) { + result.modelMetadata_ = modelMetadata_; + } else { + result.modelMetadata_ = translationModelMetadataBuilder_.build(); + } + } + if (modelMetadataCase_ == 13) { + if (imageClassificationModelMetadataBuilder_ == null) { result.modelMetadata_ = modelMetadata_; } else { result.modelMetadata_ = imageClassificationModelMetadataBuilder_.build(); @@ -1199,11 +1665,39 @@ public com.google.cloud.automl.v1beta1.Model buildPartial() { result.modelMetadata_ = textClassificationModelMetadataBuilder_.build(); } } - if (modelMetadataCase_ == 15) { - if (translationModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 20) { + if (imageObjectDetectionModelMetadataBuilder_ == null) { result.modelMetadata_ = modelMetadata_; } else { - result.modelMetadata_ = translationModelMetadataBuilder_.build(); + result.modelMetadata_ = imageObjectDetectionModelMetadataBuilder_.build(); + } + } + if (modelMetadataCase_ == 23) { + if (videoClassificationModelMetadataBuilder_ == null) { + result.modelMetadata_ = modelMetadata_; + } else { + result.modelMetadata_ = videoClassificationModelMetadataBuilder_.build(); + } + } + if (modelMetadataCase_ == 19) { + if (textExtractionModelMetadataBuilder_ == null) { + result.modelMetadata_ = modelMetadata_; + } else { + result.modelMetadata_ = textExtractionModelMetadataBuilder_.build(); + } + } + if (modelMetadataCase_ == 24) { + if (tablesModelMetadataBuilder_ == null) { + result.modelMetadata_ = modelMetadata_; + } else { + result.modelMetadata_ = tablesModelMetadataBuilder_.build(); + } + } + if (modelMetadataCase_ == 22) { + if (textSentimentModelMetadataBuilder_ == null) { + result.modelMetadata_ = modelMetadata_; + } else { + result.modelMetadata_ = textSentimentModelMetadataBuilder_.build(); } } result.name_ = name_; @@ -1292,6 +1786,11 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.Model other) { setDeploymentStateValue(other.getDeploymentStateValue()); } switch (other.getModelMetadataCase()) { + case TRANSLATION_MODEL_METADATA: + { + mergeTranslationModelMetadata(other.getTranslationModelMetadata()); + break; + } case IMAGE_CLASSIFICATION_MODEL_METADATA: { mergeImageClassificationModelMetadata(other.getImageClassificationModelMetadata()); @@ -1302,9 +1801,29 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.Model other) { mergeTextClassificationModelMetadata(other.getTextClassificationModelMetadata()); break; } - case TRANSLATION_MODEL_METADATA: + case IMAGE_OBJECT_DETECTION_MODEL_METADATA: { - mergeTranslationModelMetadata(other.getTranslationModelMetadata()); + mergeImageObjectDetectionModelMetadata(other.getImageObjectDetectionModelMetadata()); + break; + } + case VIDEO_CLASSIFICATION_MODEL_METADATA: + { + mergeVideoClassificationModelMetadata(other.getVideoClassificationModelMetadata()); + break; + } + case TEXT_EXTRACTION_MODEL_METADATA: + { + mergeTextExtractionModelMetadata(other.getTextExtractionModelMetadata()); + break; + } + case TABLES_MODEL_METADATA: + { + mergeTablesModelMetadata(other.getTablesModelMetadata()); + break; + } + case TEXT_SENTIMENT_MODEL_METADATA: + { + mergeTextSentimentModelMetadata(other.getTextSentimentModelMetadata()); break; } case MODELMETADATA_NOT_SET: @@ -1356,120 +1875,1260 @@ public Builder clearModelMetadata() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata, - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder, - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadataOrBuilder> - imageClassificationModelMetadataBuilder_; + com.google.cloud.automl.v1beta1.TranslationModelMetadata, + com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder, + com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder> + translationModelMetadataBuilder_; /** * * *
-     * Metadata for image classification models.
+     * Metadata for translation models.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; * */ - public boolean hasImageClassificationModelMetadata() { - return modelMetadataCase_ == 13; + public boolean hasTranslationModelMetadata() { + return modelMetadataCase_ == 15; } /** * * *
-     * Metadata for image classification models.
+     * Metadata for translation models.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; * */ - public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata - getImageClassificationModelMetadata() { - if (imageClassificationModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 13) { - return (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_; + public com.google.cloud.automl.v1beta1.TranslationModelMetadata getTranslationModelMetadata() { + if (translationModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 15) { + return (com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_; } - return com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance(); } else { - if (modelMetadataCase_ == 13) { - return imageClassificationModelMetadataBuilder_.getMessage(); + if (modelMetadataCase_ == 15) { + return translationModelMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance(); } } /** * * *
-     * Metadata for image classification models.
+     * Metadata for translation models.
      * 
* - * - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; * */ - public Builder setImageClassificationModelMetadata( - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata value) { - if (imageClassificationModelMetadataBuilder_ == null) { + public Builder setTranslationModelMetadata( + com.google.cloud.automl.v1beta1.TranslationModelMetadata value) { + if (translationModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } modelMetadata_ = value; onChanged(); } else { - imageClassificationModelMetadataBuilder_.setMessage(value); + translationModelMetadataBuilder_.setMessage(value); + } + modelMetadataCase_ = 15; + return this; + } + /** + * + * + *
+     * Metadata for translation models.
+     * 
+ * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + */ + public Builder setTranslationModelMetadata( + com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder builderForValue) { + if (translationModelMetadataBuilder_ == null) { + modelMetadata_ = builderForValue.build(); + onChanged(); + } else { + translationModelMetadataBuilder_.setMessage(builderForValue.build()); + } + modelMetadataCase_ = 15; + return this; + } + /** + * + * + *
+     * Metadata for translation models.
+     * 
+ * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + */ + public Builder mergeTranslationModelMetadata( + com.google.cloud.automl.v1beta1.TranslationModelMetadata value) { + if (translationModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 15 + && modelMetadata_ + != com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance()) { + modelMetadata_ = + com.google.cloud.automl.v1beta1.TranslationModelMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + modelMetadata_ = value; + } + onChanged(); + } else { + if (modelMetadataCase_ == 15) { + translationModelMetadataBuilder_.mergeFrom(value); + } + translationModelMetadataBuilder_.setMessage(value); + } + modelMetadataCase_ = 15; + return this; + } + /** + * + * + *
+     * Metadata for translation models.
+     * 
+ * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + */ + public Builder clearTranslationModelMetadata() { + if (translationModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 15) { + modelMetadataCase_ = 0; + modelMetadata_ = null; + onChanged(); + } + } else { + if (modelMetadataCase_ == 15) { + modelMetadataCase_ = 0; + modelMetadata_ = null; + } + translationModelMetadataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Metadata for translation models.
+     * 
+ * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + */ + public com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder + getTranslationModelMetadataBuilder() { + return getTranslationModelMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Metadata for translation models.
+     * 
+ * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + */ + public com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder + getTranslationModelMetadataOrBuilder() { + if ((modelMetadataCase_ == 15) && (translationModelMetadataBuilder_ != null)) { + return translationModelMetadataBuilder_.getMessageOrBuilder(); + } else { + if (modelMetadataCase_ == 15) { + return (com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_; + } + return com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance(); + } + } + /** + * + * + *
+     * Metadata for translation models.
+     * 
+ * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TranslationModelMetadata, + com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder, + com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder> + getTranslationModelMetadataFieldBuilder() { + if (translationModelMetadataBuilder_ == null) { + if (!(modelMetadataCase_ == 15)) { + modelMetadata_ = + com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance(); + } + translationModelMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TranslationModelMetadata, + com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder, + com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_, + getParentForChildren(), + isClean()); + modelMetadata_ = null; + } + modelMetadataCase_ = 15; + onChanged(); + ; + return translationModelMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata, + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder, + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadataOrBuilder> + imageClassificationModelMetadataBuilder_; + /** + * + * + *
+     * Metadata for image classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + */ + public boolean hasImageClassificationModelMetadata() { + return modelMetadataCase_ == 13; + } + /** + * + * + *
+     * Metadata for image classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + */ + public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata + getImageClassificationModelMetadata() { + if (imageClassificationModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 13) { + return (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_; + } + return com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata + .getDefaultInstance(); + } else { + if (modelMetadataCase_ == 13) { + return imageClassificationModelMetadataBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Metadata for image classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + */ + public Builder setImageClassificationModelMetadata( + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata value) { + if (imageClassificationModelMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelMetadata_ = value; + onChanged(); + } else { + imageClassificationModelMetadataBuilder_.setMessage(value); + } + modelMetadataCase_ = 13; + return this; + } + /** + * + * + *
+     * Metadata for image classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + */ + public Builder setImageClassificationModelMetadata( + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder builderForValue) { + if (imageClassificationModelMetadataBuilder_ == null) { + modelMetadata_ = builderForValue.build(); + onChanged(); + } else { + imageClassificationModelMetadataBuilder_.setMessage(builderForValue.build()); + } + modelMetadataCase_ = 13; + return this; + } + /** + * + * + *
+     * Metadata for image classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + */ + public Builder mergeImageClassificationModelMetadata( + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata value) { + if (imageClassificationModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 13 + && modelMetadata_ + != com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata + .getDefaultInstance()) { + modelMetadata_ = + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) + modelMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + modelMetadata_ = value; + } + onChanged(); + } else { + if (modelMetadataCase_ == 13) { + imageClassificationModelMetadataBuilder_.mergeFrom(value); + } + imageClassificationModelMetadataBuilder_.setMessage(value); + } + modelMetadataCase_ = 13; + return this; + } + /** + * + * + *
+     * Metadata for image classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + */ + public Builder clearImageClassificationModelMetadata() { + if (imageClassificationModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 13) { + modelMetadataCase_ = 0; + modelMetadata_ = null; + onChanged(); + } + } else { + if (modelMetadataCase_ == 13) { + modelMetadataCase_ = 0; + modelMetadata_ = null; + } + imageClassificationModelMetadataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Metadata for image classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + */ + public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder + getImageClassificationModelMetadataBuilder() { + return getImageClassificationModelMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Metadata for image classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + */ + public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadataOrBuilder + getImageClassificationModelMetadataOrBuilder() { + if ((modelMetadataCase_ == 13) && (imageClassificationModelMetadataBuilder_ != null)) { + return imageClassificationModelMetadataBuilder_.getMessageOrBuilder(); + } else { + if (modelMetadataCase_ == 13) { + return (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_; + } + return com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Metadata for image classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata, + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder, + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadataOrBuilder> + getImageClassificationModelMetadataFieldBuilder() { + if (imageClassificationModelMetadataBuilder_ == null) { + if (!(modelMetadataCase_ == 13)) { + modelMetadata_ = + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.getDefaultInstance(); + } + imageClassificationModelMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata, + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder, + com.google.cloud.automl.v1beta1.ImageClassificationModelMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_, + getParentForChildren(), + isClean()); + modelMetadata_ = null; + } + modelMetadataCase_ = 13; + onChanged(); + ; + return imageClassificationModelMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata, + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder, + com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder> + textClassificationModelMetadataBuilder_; + /** + * + * + *
+     * Metadata for text classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + */ + public boolean hasTextClassificationModelMetadata() { + return modelMetadataCase_ == 14; + } + /** + * + * + *
+     * Metadata for text classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + */ + public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata + getTextClassificationModelMetadata() { + if (textClassificationModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 14) { + return (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_; + } + return com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.getDefaultInstance(); + } else { + if (modelMetadataCase_ == 14) { + return textClassificationModelMetadataBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.getDefaultInstance(); + } + } + /** + * + * + *
+     * Metadata for text classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + */ + public Builder setTextClassificationModelMetadata( + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata value) { + if (textClassificationModelMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelMetadata_ = value; + onChanged(); + } else { + textClassificationModelMetadataBuilder_.setMessage(value); + } + modelMetadataCase_ = 14; + return this; + } + /** + * + * + *
+     * Metadata for text classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + */ + public Builder setTextClassificationModelMetadata( + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder builderForValue) { + if (textClassificationModelMetadataBuilder_ == null) { + modelMetadata_ = builderForValue.build(); + onChanged(); + } else { + textClassificationModelMetadataBuilder_.setMessage(builderForValue.build()); + } + modelMetadataCase_ = 14; + return this; + } + /** + * + * + *
+     * Metadata for text classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + */ + public Builder mergeTextClassificationModelMetadata( + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata value) { + if (textClassificationModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 14 + && modelMetadata_ + != com.google.cloud.automl.v1beta1.TextClassificationModelMetadata + .getDefaultInstance()) { + modelMetadata_ = + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) + modelMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + modelMetadata_ = value; + } + onChanged(); + } else { + if (modelMetadataCase_ == 14) { + textClassificationModelMetadataBuilder_.mergeFrom(value); + } + textClassificationModelMetadataBuilder_.setMessage(value); + } + modelMetadataCase_ = 14; + return this; + } + /** + * + * + *
+     * Metadata for text classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + */ + public Builder clearTextClassificationModelMetadata() { + if (textClassificationModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 14) { + modelMetadataCase_ = 0; + modelMetadata_ = null; + onChanged(); + } + } else { + if (modelMetadataCase_ == 14) { + modelMetadataCase_ = 0; + modelMetadata_ = null; + } + textClassificationModelMetadataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Metadata for text classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + */ + public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder + getTextClassificationModelMetadataBuilder() { + return getTextClassificationModelMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Metadata for text classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + */ + public com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder + getTextClassificationModelMetadataOrBuilder() { + if ((modelMetadataCase_ == 14) && (textClassificationModelMetadataBuilder_ != null)) { + return textClassificationModelMetadataBuilder_.getMessageOrBuilder(); + } else { + if (modelMetadataCase_ == 14) { + return (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_; + } + return com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.getDefaultInstance(); + } + } + /** + * + * + *
+     * Metadata for text classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata, + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder, + com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder> + getTextClassificationModelMetadataFieldBuilder() { + if (textClassificationModelMetadataBuilder_ == null) { + if (!(modelMetadataCase_ == 14)) { + modelMetadata_ = + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.getDefaultInstance(); + } + textClassificationModelMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata, + com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder, + com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_, + getParentForChildren(), + isClean()); + modelMetadata_ = null; + } + modelMetadataCase_ = 14; + onChanged(); + ; + return textClassificationModelMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata, + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.Builder, + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadataOrBuilder> + imageObjectDetectionModelMetadataBuilder_; + /** + * + * + *
+     * Metadata for image object detection models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + */ + public boolean hasImageObjectDetectionModelMetadata() { + return modelMetadataCase_ == 20; + } + /** + * + * + *
+     * Metadata for image object detection models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata + getImageObjectDetectionModelMetadata() { + if (imageObjectDetectionModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 20) { + return (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) modelMetadata_; + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata + .getDefaultInstance(); + } else { + if (modelMetadataCase_ == 20) { + return imageObjectDetectionModelMetadataBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Metadata for image object detection models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + */ + public Builder setImageObjectDetectionModelMetadata( + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata value) { + if (imageObjectDetectionModelMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelMetadata_ = value; + onChanged(); + } else { + imageObjectDetectionModelMetadataBuilder_.setMessage(value); + } + modelMetadataCase_ = 20; + return this; + } + /** + * + * + *
+     * Metadata for image object detection models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + */ + public Builder setImageObjectDetectionModelMetadata( + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.Builder builderForValue) { + if (imageObjectDetectionModelMetadataBuilder_ == null) { + modelMetadata_ = builderForValue.build(); + onChanged(); + } else { + imageObjectDetectionModelMetadataBuilder_.setMessage(builderForValue.build()); + } + modelMetadataCase_ = 20; + return this; + } + /** + * + * + *
+     * Metadata for image object detection models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + */ + public Builder mergeImageObjectDetectionModelMetadata( + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata value) { + if (imageObjectDetectionModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 20 + && modelMetadata_ + != com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata + .getDefaultInstance()) { + modelMetadata_ = + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) + modelMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + modelMetadata_ = value; + } + onChanged(); + } else { + if (modelMetadataCase_ == 20) { + imageObjectDetectionModelMetadataBuilder_.mergeFrom(value); + } + imageObjectDetectionModelMetadataBuilder_.setMessage(value); + } + modelMetadataCase_ = 20; + return this; + } + /** + * + * + *
+     * Metadata for image object detection models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + */ + public Builder clearImageObjectDetectionModelMetadata() { + if (imageObjectDetectionModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 20) { + modelMetadataCase_ = 0; + modelMetadata_ = null; + onChanged(); + } + } else { + if (modelMetadataCase_ == 20) { + modelMetadataCase_ = 0; + modelMetadata_ = null; + } + imageObjectDetectionModelMetadataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Metadata for image object detection models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.Builder + getImageObjectDetectionModelMetadataBuilder() { + return getImageObjectDetectionModelMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Metadata for image object detection models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadataOrBuilder + getImageObjectDetectionModelMetadataOrBuilder() { + if ((modelMetadataCase_ == 20) && (imageObjectDetectionModelMetadataBuilder_ != null)) { + return imageObjectDetectionModelMetadataBuilder_.getMessageOrBuilder(); + } else { + if (modelMetadataCase_ == 20) { + return (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) modelMetadata_; + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Metadata for image object detection models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata, + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.Builder, + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadataOrBuilder> + getImageObjectDetectionModelMetadataFieldBuilder() { + if (imageObjectDetectionModelMetadataBuilder_ == null) { + if (!(modelMetadataCase_ == 20)) { + modelMetadata_ = + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata + .getDefaultInstance(); + } + imageObjectDetectionModelMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata, + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.Builder, + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata) modelMetadata_, + getParentForChildren(), + isClean()); + modelMetadata_ = null; + } + modelMetadataCase_ = 20; + onChanged(); + ; + return imageObjectDetectionModelMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata, + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.Builder, + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadataOrBuilder> + videoClassificationModelMetadataBuilder_; + /** + * + * + *
+     * Metadata for video classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + */ + public boolean hasVideoClassificationModelMetadata() { + return modelMetadataCase_ == 23; + } + /** + * + * + *
+     * Metadata for video classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + */ + public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata + getVideoClassificationModelMetadata() { + if (videoClassificationModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 23) { + return (com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) modelMetadata_; + } + return com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata + .getDefaultInstance(); + } else { + if (modelMetadataCase_ == 23) { + return videoClassificationModelMetadataBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Metadata for video classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + */ + public Builder setVideoClassificationModelMetadata( + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata value) { + if (videoClassificationModelMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelMetadata_ = value; + onChanged(); + } else { + videoClassificationModelMetadataBuilder_.setMessage(value); + } + modelMetadataCase_ = 23; + return this; + } + /** + * + * + *
+     * Metadata for video classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + */ + public Builder setVideoClassificationModelMetadata( + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.Builder builderForValue) { + if (videoClassificationModelMetadataBuilder_ == null) { + modelMetadata_ = builderForValue.build(); + onChanged(); + } else { + videoClassificationModelMetadataBuilder_.setMessage(builderForValue.build()); + } + modelMetadataCase_ = 23; + return this; + } + /** + * + * + *
+     * Metadata for video classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + */ + public Builder mergeVideoClassificationModelMetadata( + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata value) { + if (videoClassificationModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 23 + && modelMetadata_ + != com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata + .getDefaultInstance()) { + modelMetadata_ = + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) + modelMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + modelMetadata_ = value; + } + onChanged(); + } else { + if (modelMetadataCase_ == 23) { + videoClassificationModelMetadataBuilder_.mergeFrom(value); + } + videoClassificationModelMetadataBuilder_.setMessage(value); + } + modelMetadataCase_ = 23; + return this; + } + /** + * + * + *
+     * Metadata for video classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + */ + public Builder clearVideoClassificationModelMetadata() { + if (videoClassificationModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 23) { + modelMetadataCase_ = 0; + modelMetadata_ = null; + onChanged(); + } + } else { + if (modelMetadataCase_ == 23) { + modelMetadataCase_ = 0; + modelMetadata_ = null; + } + videoClassificationModelMetadataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Metadata for video classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + */ + public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.Builder + getVideoClassificationModelMetadataBuilder() { + return getVideoClassificationModelMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Metadata for video classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + */ + public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadataOrBuilder + getVideoClassificationModelMetadataOrBuilder() { + if ((modelMetadataCase_ == 23) && (videoClassificationModelMetadataBuilder_ != null)) { + return videoClassificationModelMetadataBuilder_.getMessageOrBuilder(); + } else { + if (modelMetadataCase_ == 23) { + return (com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) modelMetadata_; + } + return com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Metadata for video classification models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata, + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.Builder, + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadataOrBuilder> + getVideoClassificationModelMetadataFieldBuilder() { + if (videoClassificationModelMetadataBuilder_ == null) { + if (!(modelMetadataCase_ == 23)) { + modelMetadata_ = + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.getDefaultInstance(); + } + videoClassificationModelMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata, + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.Builder, + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) modelMetadata_, + getParentForChildren(), + isClean()); + modelMetadata_ = null; + } + modelMetadataCase_ = 23; + onChanged(); + ; + return videoClassificationModelMetadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata, + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.Builder, + com.google.cloud.automl.v1beta1.TextExtractionModelMetadataOrBuilder> + textExtractionModelMetadataBuilder_; + /** + * + * + *
+     * Metadata for text extraction models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + */ + public boolean hasTextExtractionModelMetadata() { + return modelMetadataCase_ == 19; + } + /** + * + * + *
+     * Metadata for text extraction models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + */ + public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata + getTextExtractionModelMetadata() { + if (textExtractionModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 19) { + return (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) modelMetadata_; + } + return com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.getDefaultInstance(); + } else { + if (modelMetadataCase_ == 19) { + return textExtractionModelMetadataBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.getDefaultInstance(); + } + } + /** + * + * + *
+     * Metadata for text extraction models.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + */ + public Builder setTextExtractionModelMetadata( + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata value) { + if (textExtractionModelMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelMetadata_ = value; + onChanged(); + } else { + textExtractionModelMetadataBuilder_.setMessage(value); } - modelMetadataCase_ = 13; + modelMetadataCase_ = 19; return this; } /** * * *
-     * Metadata for image classification models.
+     * Metadata for text extraction models.
      * 
* * - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; * */ - public Builder setImageClassificationModelMetadata( - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder builderForValue) { - if (imageClassificationModelMetadataBuilder_ == null) { + public Builder setTextExtractionModelMetadata( + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.Builder builderForValue) { + if (textExtractionModelMetadataBuilder_ == null) { modelMetadata_ = builderForValue.build(); onChanged(); } else { - imageClassificationModelMetadataBuilder_.setMessage(builderForValue.build()); + textExtractionModelMetadataBuilder_.setMessage(builderForValue.build()); } - modelMetadataCase_ = 13; + modelMetadataCase_ = 19; return this; } /** * * *
-     * Metadata for image classification models.
+     * Metadata for text extraction models.
      * 
* * - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; * */ - public Builder mergeImageClassificationModelMetadata( - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata value) { - if (imageClassificationModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 13 + public Builder mergeTextExtractionModelMetadata( + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata value) { + if (textExtractionModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 19 && modelMetadata_ - != com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata + != com.google.cloud.automl.v1beta1.TextExtractionModelMetadata .getDefaultInstance()) { modelMetadata_ = - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.newBuilder( - (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) - modelMetadata_) + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) modelMetadata_) .mergeFrom(value) .buildPartial(); } else { @@ -1477,38 +3136,38 @@ public Builder mergeImageClassificationModelMetadata( } onChanged(); } else { - if (modelMetadataCase_ == 13) { - imageClassificationModelMetadataBuilder_.mergeFrom(value); + if (modelMetadataCase_ == 19) { + textExtractionModelMetadataBuilder_.mergeFrom(value); } - imageClassificationModelMetadataBuilder_.setMessage(value); + textExtractionModelMetadataBuilder_.setMessage(value); } - modelMetadataCase_ = 13; + modelMetadataCase_ = 19; return this; } /** * * *
-     * Metadata for image classification models.
+     * Metadata for text extraction models.
      * 
* * - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; * */ - public Builder clearImageClassificationModelMetadata() { - if (imageClassificationModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 13) { + public Builder clearTextExtractionModelMetadata() { + if (textExtractionModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 19) { modelMetadataCase_ = 0; modelMetadata_ = null; onChanged(); } } else { - if (modelMetadataCase_ == 13) { + if (modelMetadataCase_ == 19) { modelMetadataCase_ = 0; modelMetadata_ = null; } - imageClassificationModelMetadataBuilder_.clear(); + textExtractionModelMetadataBuilder_.clear(); } return this; } @@ -1516,190 +3175,176 @@ public Builder clearImageClassificationModelMetadata() { * * *
-     * Metadata for image classification models.
+     * Metadata for text extraction models.
      * 
* * - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; * */ - public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder - getImageClassificationModelMetadataBuilder() { - return getImageClassificationModelMetadataFieldBuilder().getBuilder(); + public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.Builder + getTextExtractionModelMetadataBuilder() { + return getTextExtractionModelMetadataFieldBuilder().getBuilder(); } /** * * *
-     * Metadata for image classification models.
+     * Metadata for text extraction models.
      * 
* * - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; * */ - public com.google.cloud.automl.v1beta1.ImageClassificationModelMetadataOrBuilder - getImageClassificationModelMetadataOrBuilder() { - if ((modelMetadataCase_ == 13) && (imageClassificationModelMetadataBuilder_ != null)) { - return imageClassificationModelMetadataBuilder_.getMessageOrBuilder(); + public com.google.cloud.automl.v1beta1.TextExtractionModelMetadataOrBuilder + getTextExtractionModelMetadataOrBuilder() { + if ((modelMetadataCase_ == 19) && (textExtractionModelMetadataBuilder_ != null)) { + return textExtractionModelMetadataBuilder_.getMessageOrBuilder(); } else { - if (modelMetadataCase_ == 13) { - return (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_; + if (modelMetadataCase_ == 19) { + return (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) modelMetadata_; } - return com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata - .getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.getDefaultInstance(); } } /** * * *
-     * Metadata for image classification models.
+     * Metadata for text extraction models.
      * 
* * - * .google.cloud.automl.v1beta1.ImageClassificationModelMetadata image_classification_model_metadata = 13; + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata, - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder, - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadataOrBuilder> - getImageClassificationModelMetadataFieldBuilder() { - if (imageClassificationModelMetadataBuilder_ == null) { - if (!(modelMetadataCase_ == 13)) { + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata, + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.Builder, + com.google.cloud.automl.v1beta1.TextExtractionModelMetadataOrBuilder> + getTextExtractionModelMetadataFieldBuilder() { + if (textExtractionModelMetadataBuilder_ == null) { + if (!(modelMetadataCase_ == 19)) { modelMetadata_ = - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.getDefaultInstance(); + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.getDefaultInstance(); } - imageClassificationModelMetadataBuilder_ = + textExtractionModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata, - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata.Builder, - com.google.cloud.automl.v1beta1.ImageClassificationModelMetadataOrBuilder>( - (com.google.cloud.automl.v1beta1.ImageClassificationModelMetadata) modelMetadata_, + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata, + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.Builder, + com.google.cloud.automl.v1beta1.TextExtractionModelMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) modelMetadata_, getParentForChildren(), isClean()); modelMetadata_ = null; } - modelMetadataCase_ = 13; + modelMetadataCase_ = 19; onChanged(); ; - return imageClassificationModelMetadataBuilder_; + return textExtractionModelMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata, - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder, - com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder> - textClassificationModelMetadataBuilder_; + com.google.cloud.automl.v1beta1.TablesModelMetadata, + com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder, + com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder> + tablesModelMetadataBuilder_; /** * * *
-     * Metadata for text classification models.
+     * Metadata for Tables models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ - public boolean hasTextClassificationModelMetadata() { - return modelMetadataCase_ == 14; + public boolean hasTablesModelMetadata() { + return modelMetadataCase_ == 24; } /** * * *
-     * Metadata for text classification models.
+     * Metadata for Tables models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ - public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata - getTextClassificationModelMetadata() { - if (textClassificationModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 14) { - return (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_; + public com.google.cloud.automl.v1beta1.TablesModelMetadata getTablesModelMetadata() { + if (tablesModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 24) { + return (com.google.cloud.automl.v1beta1.TablesModelMetadata) modelMetadata_; } - return com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TablesModelMetadata.getDefaultInstance(); } else { - if (modelMetadataCase_ == 14) { - return textClassificationModelMetadataBuilder_.getMessage(); + if (modelMetadataCase_ == 24) { + return tablesModelMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TablesModelMetadata.getDefaultInstance(); } } /** * * *
-     * Metadata for text classification models.
+     * Metadata for Tables models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ - public Builder setTextClassificationModelMetadata( - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata value) { - if (textClassificationModelMetadataBuilder_ == null) { + public Builder setTablesModelMetadata( + com.google.cloud.automl.v1beta1.TablesModelMetadata value) { + if (tablesModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } modelMetadata_ = value; onChanged(); } else { - textClassificationModelMetadataBuilder_.setMessage(value); + tablesModelMetadataBuilder_.setMessage(value); } - modelMetadataCase_ = 14; + modelMetadataCase_ = 24; return this; } /** * * *
-     * Metadata for text classification models.
+     * Metadata for Tables models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ - public Builder setTextClassificationModelMetadata( - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder builderForValue) { - if (textClassificationModelMetadataBuilder_ == null) { + public Builder setTablesModelMetadata( + com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder builderForValue) { + if (tablesModelMetadataBuilder_ == null) { modelMetadata_ = builderForValue.build(); onChanged(); } else { - textClassificationModelMetadataBuilder_.setMessage(builderForValue.build()); + tablesModelMetadataBuilder_.setMessage(builderForValue.build()); } - modelMetadataCase_ = 14; + modelMetadataCase_ = 24; return this; } /** * * *
-     * Metadata for text classification models.
+     * Metadata for Tables models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ - public Builder mergeTextClassificationModelMetadata( - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata value) { - if (textClassificationModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 14 + public Builder mergeTablesModelMetadata( + com.google.cloud.automl.v1beta1.TablesModelMetadata value) { + if (tablesModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 24 && modelMetadata_ - != com.google.cloud.automl.v1beta1.TextClassificationModelMetadata - .getDefaultInstance()) { + != com.google.cloud.automl.v1beta1.TablesModelMetadata.getDefaultInstance()) { modelMetadata_ = - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.newBuilder( - (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) - modelMetadata_) + com.google.cloud.automl.v1beta1.TablesModelMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.TablesModelMetadata) modelMetadata_) .mergeFrom(value) .buildPartial(); } else { @@ -1707,38 +3352,36 @@ public Builder mergeTextClassificationModelMetadata( } onChanged(); } else { - if (modelMetadataCase_ == 14) { - textClassificationModelMetadataBuilder_.mergeFrom(value); + if (modelMetadataCase_ == 24) { + tablesModelMetadataBuilder_.mergeFrom(value); } - textClassificationModelMetadataBuilder_.setMessage(value); + tablesModelMetadataBuilder_.setMessage(value); } - modelMetadataCase_ = 14; + modelMetadataCase_ = 24; return this; } /** * * *
-     * Metadata for text classification models.
+     * Metadata for Tables models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ - public Builder clearTextClassificationModelMetadata() { - if (textClassificationModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 14) { + public Builder clearTablesModelMetadata() { + if (tablesModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 24) { modelMetadataCase_ = 0; modelMetadata_ = null; onChanged(); } } else { - if (modelMetadataCase_ == 14) { + if (modelMetadataCase_ == 24) { modelMetadataCase_ = 0; modelMetadata_ = null; } - textClassificationModelMetadataBuilder_.clear(); + tablesModelMetadataBuilder_.clear(); } return this; } @@ -1746,181 +3389,181 @@ public Builder clearTextClassificationModelMetadata() { * * *
-     * Metadata for text classification models.
+     * Metadata for Tables models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ - public com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder - getTextClassificationModelMetadataBuilder() { - return getTextClassificationModelMetadataFieldBuilder().getBuilder(); + public com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder + getTablesModelMetadataBuilder() { + return getTablesModelMetadataFieldBuilder().getBuilder(); } /** * * *
-     * Metadata for text classification models.
+     * Metadata for Tables models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ - public com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder - getTextClassificationModelMetadataOrBuilder() { - if ((modelMetadataCase_ == 14) && (textClassificationModelMetadataBuilder_ != null)) { - return textClassificationModelMetadataBuilder_.getMessageOrBuilder(); + public com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder + getTablesModelMetadataOrBuilder() { + if ((modelMetadataCase_ == 24) && (tablesModelMetadataBuilder_ != null)) { + return tablesModelMetadataBuilder_.getMessageOrBuilder(); } else { - if (modelMetadataCase_ == 14) { - return (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_; + if (modelMetadataCase_ == 24) { + return (com.google.cloud.automl.v1beta1.TablesModelMetadata) modelMetadata_; } - return com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TablesModelMetadata.getDefaultInstance(); } } /** * * *
-     * Metadata for text classification models.
+     * Metadata for Tables models.
      * 
* - * - * .google.cloud.automl.v1beta1.TextClassificationModelMetadata text_classification_model_metadata = 14; - * + * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata, - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder, - com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder> - getTextClassificationModelMetadataFieldBuilder() { - if (textClassificationModelMetadataBuilder_ == null) { - if (!(modelMetadataCase_ == 14)) { - modelMetadata_ = - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.getDefaultInstance(); + com.google.cloud.automl.v1beta1.TablesModelMetadata, + com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder, + com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder> + getTablesModelMetadataFieldBuilder() { + if (tablesModelMetadataBuilder_ == null) { + if (!(modelMetadataCase_ == 24)) { + modelMetadata_ = com.google.cloud.automl.v1beta1.TablesModelMetadata.getDefaultInstance(); } - textClassificationModelMetadataBuilder_ = + tablesModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata, - com.google.cloud.automl.v1beta1.TextClassificationModelMetadata.Builder, - com.google.cloud.automl.v1beta1.TextClassificationModelMetadataOrBuilder>( - (com.google.cloud.automl.v1beta1.TextClassificationModelMetadata) modelMetadata_, + com.google.cloud.automl.v1beta1.TablesModelMetadata, + com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder, + com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.TablesModelMetadata) modelMetadata_, getParentForChildren(), isClean()); modelMetadata_ = null; } - modelMetadataCase_ = 14; + modelMetadataCase_ = 24; onChanged(); ; - return textClassificationModelMetadataBuilder_; + return tablesModelMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TranslationModelMetadata, - com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder, - com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder> - translationModelMetadataBuilder_; + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata, + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder, + com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder> + textSentimentModelMetadataBuilder_; /** * * *
-     * Metadata for translation models.
+     * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; * */ - public boolean hasTranslationModelMetadata() { - return modelMetadataCase_ == 15; + public boolean hasTextSentimentModelMetadata() { + return modelMetadataCase_ == 22; } /** * * *
-     * Metadata for translation models.
+     * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; * */ - public com.google.cloud.automl.v1beta1.TranslationModelMetadata getTranslationModelMetadata() { - if (translationModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 15) { - return (com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_; + public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata + getTextSentimentModelMetadata() { + if (textSentimentModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 22) { + return (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_; } - return com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.getDefaultInstance(); } else { - if (modelMetadataCase_ == 15) { - return translationModelMetadataBuilder_.getMessage(); + if (modelMetadataCase_ == 22) { + return textSentimentModelMetadataBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.getDefaultInstance(); } } /** * * *
-     * Metadata for translation models.
+     * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; * */ - public Builder setTranslationModelMetadata( - com.google.cloud.automl.v1beta1.TranslationModelMetadata value) { - if (translationModelMetadataBuilder_ == null) { + public Builder setTextSentimentModelMetadata( + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata value) { + if (textSentimentModelMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } modelMetadata_ = value; onChanged(); } else { - translationModelMetadataBuilder_.setMessage(value); + textSentimentModelMetadataBuilder_.setMessage(value); } - modelMetadataCase_ = 15; + modelMetadataCase_ = 22; return this; } /** * * *
-     * Metadata for translation models.
+     * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; * */ - public Builder setTranslationModelMetadata( - com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder builderForValue) { - if (translationModelMetadataBuilder_ == null) { + public Builder setTextSentimentModelMetadata( + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder builderForValue) { + if (textSentimentModelMetadataBuilder_ == null) { modelMetadata_ = builderForValue.build(); onChanged(); } else { - translationModelMetadataBuilder_.setMessage(builderForValue.build()); + textSentimentModelMetadataBuilder_.setMessage(builderForValue.build()); } - modelMetadataCase_ = 15; + modelMetadataCase_ = 22; return this; } /** * * *
-     * Metadata for translation models.
+     * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; * */ - public Builder mergeTranslationModelMetadata( - com.google.cloud.automl.v1beta1.TranslationModelMetadata value) { - if (translationModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 15 + public Builder mergeTextSentimentModelMetadata( + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata value) { + if (textSentimentModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 22 && modelMetadata_ - != com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance()) { + != com.google.cloud.automl.v1beta1.TextSentimentModelMetadata + .getDefaultInstance()) { modelMetadata_ = - com.google.cloud.automl.v1beta1.TranslationModelMetadata.newBuilder( - (com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_) + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_) .mergeFrom(value) .buildPartial(); } else { @@ -1928,37 +3571,38 @@ public Builder mergeTranslationModelMetadata( } onChanged(); } else { - if (modelMetadataCase_ == 15) { - translationModelMetadataBuilder_.mergeFrom(value); + if (modelMetadataCase_ == 22) { + textSentimentModelMetadataBuilder_.mergeFrom(value); } - translationModelMetadataBuilder_.setMessage(value); + textSentimentModelMetadataBuilder_.setMessage(value); } - modelMetadataCase_ = 15; + modelMetadataCase_ = 22; return this; } /** * * *
-     * Metadata for translation models.
+     * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; * */ - public Builder clearTranslationModelMetadata() { - if (translationModelMetadataBuilder_ == null) { - if (modelMetadataCase_ == 15) { + public Builder clearTextSentimentModelMetadata() { + if (textSentimentModelMetadataBuilder_ == null) { + if (modelMetadataCase_ == 22) { modelMetadataCase_ = 0; modelMetadata_ = null; onChanged(); } } else { - if (modelMetadataCase_ == 15) { + if (modelMetadataCase_ == 22) { modelMetadataCase_ = 0; modelMetadata_ = null; } - translationModelMetadataBuilder_.clear(); + textSentimentModelMetadataBuilder_.clear(); } return this; } @@ -1966,71 +3610,74 @@ public Builder clearTranslationModelMetadata() { * * *
-     * Metadata for translation models.
+     * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; * */ - public com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder - getTranslationModelMetadataBuilder() { - return getTranslationModelMetadataFieldBuilder().getBuilder(); + public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder + getTextSentimentModelMetadataBuilder() { + return getTextSentimentModelMetadataFieldBuilder().getBuilder(); } /** * * *
-     * Metadata for translation models.
+     * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; * */ - public com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder - getTranslationModelMetadataOrBuilder() { - if ((modelMetadataCase_ == 15) && (translationModelMetadataBuilder_ != null)) { - return translationModelMetadataBuilder_.getMessageOrBuilder(); + public com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder + getTextSentimentModelMetadataOrBuilder() { + if ((modelMetadataCase_ == 22) && (textSentimentModelMetadataBuilder_ != null)) { + return textSentimentModelMetadataBuilder_.getMessageOrBuilder(); } else { - if (modelMetadataCase_ == 15) { - return (com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_; + if (modelMetadataCase_ == 22) { + return (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_; } - return com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.getDefaultInstance(); } } /** * * *
-     * Metadata for translation models.
+     * Metadata for text sentiment models.
      * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TranslationModelMetadata, - com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder, - com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder> - getTranslationModelMetadataFieldBuilder() { - if (translationModelMetadataBuilder_ == null) { - if (!(modelMetadataCase_ == 15)) { + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata, + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder, + com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder> + getTextSentimentModelMetadataFieldBuilder() { + if (textSentimentModelMetadataBuilder_ == null) { + if (!(modelMetadataCase_ == 22)) { modelMetadata_ = - com.google.cloud.automl.v1beta1.TranslationModelMetadata.getDefaultInstance(); + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.getDefaultInstance(); } - translationModelMetadataBuilder_ = + textSentimentModelMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TranslationModelMetadata, - com.google.cloud.automl.v1beta1.TranslationModelMetadata.Builder, - com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder>( - (com.google.cloud.automl.v1beta1.TranslationModelMetadata) modelMetadata_, + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata, + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder, + com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) modelMetadata_, getParentForChildren(), isClean()); modelMetadata_ = null; } - modelMetadataCase_ = 15; + modelMetadataCase_ = 22; onChanged(); ; - return translationModelMetadataBuilder_; + return textSentimentModelMetadataBuilder_; } private java.lang.Object name_ = ""; @@ -2143,9 +3790,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Required. The name of the model to show in the interface. The name can be
-     * up to 32 characters
-     * long and can consist only of ASCII Latin letters A-Z and a-z, underscores
-     * (_), and ASCII digits 0-9.
+     * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+     * and a-z, underscores
+     * (_), and ASCII digits 0-9. It must start with a letter.
      * 
* * string display_name = 2; @@ -2166,9 +3813,9 @@ public java.lang.String getDisplayName() { * *
      * Required. The name of the model to show in the interface. The name can be
-     * up to 32 characters
-     * long and can consist only of ASCII Latin letters A-Z and a-z, underscores
-     * (_), and ASCII digits 0-9.
+     * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+     * and a-z, underscores
+     * (_), and ASCII digits 0-9. It must start with a letter.
      * 
* * string display_name = 2; @@ -2189,9 +3836,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. The name of the model to show in the interface. The name can be
-     * up to 32 characters
-     * long and can consist only of ASCII Latin letters A-Z and a-z, underscores
-     * (_), and ASCII digits 0-9.
+     * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+     * and a-z, underscores
+     * (_), and ASCII digits 0-9. It must start with a letter.
      * 
* * string display_name = 2; @@ -2210,9 +3857,9 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. The name of the model to show in the interface. The name can be
-     * up to 32 characters
-     * long and can consist only of ASCII Latin letters A-Z and a-z, underscores
-     * (_), and ASCII digits 0-9.
+     * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+     * and a-z, underscores
+     * (_), and ASCII digits 0-9. It must start with a letter.
      * 
* * string display_name = 2; @@ -2228,9 +3875,9 @@ public Builder clearDisplayName() { * *
      * Required. The name of the model to show in the interface. The name can be
-     * up to 32 characters
-     * long and can consist only of ASCII Latin letters A-Z and a-z, underscores
-     * (_), and ASCII digits 0-9.
+     * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+     * and a-z, underscores
+     * (_), and ASCII digits 0-9. It must start with a letter.
      * 
* * string display_name = 2; @@ -2253,8 +3900,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { *
      * Required.
      * The resource ID of the dataset used to create the model. The dataset must
-     * come from the
-     * same ancestor project and location.
+     * come from the same ancestor project and location.
      * 
* * string dataset_id = 3; @@ -2276,8 +3922,7 @@ public java.lang.String getDatasetId() { *
      * Required.
      * The resource ID of the dataset used to create the model. The dataset must
-     * come from the
-     * same ancestor project and location.
+     * come from the same ancestor project and location.
      * 
* * string dataset_id = 3; @@ -2299,8 +3944,7 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { *
      * Required.
      * The resource ID of the dataset used to create the model. The dataset must
-     * come from the
-     * same ancestor project and location.
+     * come from the same ancestor project and location.
      * 
* * string dataset_id = 3; @@ -2320,8 +3964,7 @@ public Builder setDatasetId(java.lang.String value) { *
      * Required.
      * The resource ID of the dataset used to create the model. The dataset must
-     * come from the
-     * same ancestor project and location.
+     * come from the same ancestor project and location.
      * 
* * string dataset_id = 3; @@ -2338,8 +3981,7 @@ public Builder clearDatasetId() { *
      * Required.
      * The resource ID of the dataset used to create the model. The dataset must
-     * come from the
-     * same ancestor project and location.
+     * come from the same ancestor project and location.
      * 
* * string dataset_id = 3; @@ -2736,7 +4378,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
-     * Output only. Deployment state of the model.
+     * Output only. Deployment state of the model. A model can only serve
+     * prediction requests after it gets deployed.
      * 
* * .google.cloud.automl.v1beta1.Model.DeploymentState deployment_state = 8; @@ -2748,7 +4391,8 @@ public int getDeploymentStateValue() { * * *
-     * Output only. Deployment state of the model.
+     * Output only. Deployment state of the model. A model can only serve
+     * prediction requests after it gets deployed.
      * 
* * .google.cloud.automl.v1beta1.Model.DeploymentState deployment_state = 8; @@ -2762,7 +4406,8 @@ public Builder setDeploymentStateValue(int value) { * * *
-     * Output only. Deployment state of the model.
+     * Output only. Deployment state of the model. A model can only serve
+     * prediction requests after it gets deployed.
      * 
* * .google.cloud.automl.v1beta1.Model.DeploymentState deployment_state = 8; @@ -2779,7 +4424,8 @@ public com.google.cloud.automl.v1beta1.Model.DeploymentState getDeploymentState( * * *
-     * Output only. Deployment state of the model.
+     * Output only. Deployment state of the model. A model can only serve
+     * prediction requests after it gets deployed.
      * 
* * .google.cloud.automl.v1beta1.Model.DeploymentState deployment_state = 8; @@ -2797,7 +4443,8 @@ public Builder setDeploymentState(com.google.cloud.automl.v1beta1.Model.Deployme * * *
-     * Output only. Deployment state of the model.
+     * Output only. Deployment state of the model. A model can only serve
+     * prediction requests after it gets deployed.
      * 
* * .google.cloud.automl.v1beta1.Model.DeploymentState deployment_state = 8; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluation.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluation.java index 5256e44e4080..a3e7914ce690 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluation.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluation.java @@ -25,6 +25,7 @@ private ModelEvaluation(com.google.protobuf.GeneratedMessageV3.Builder builde private ModelEvaluation() { name_ = ""; annotationSpecId_ = ""; + displayName_ = ""; } @java.lang.Override @@ -133,6 +134,109 @@ private ModelEvaluation( metricsCase_ = 9; break; } + case 90: + { + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + .Builder + subBuilder = null; + if (metricsCase_ == 11) { + subBuilder = + ((com.google.cloud.automl.v1beta1.TextSentimentProto + .TextSentimentEvaluationMetrics) + metrics_) + .toBuilder(); + } + metrics_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TextSentimentProto + .TextSentimentEvaluationMetrics.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.TextSentimentProto + .TextSentimentEvaluationMetrics) + metrics_); + metrics_ = subBuilder.buildPartial(); + } + metricsCase_ = 11; + break; + } + case 98: + { + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.Builder + subBuilder = null; + if (metricsCase_ == 12) { + subBuilder = + ((com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) + metrics_) + .toBuilder(); + } + metrics_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) + metrics_); + metrics_ = subBuilder.buildPartial(); + } + metricsCase_ = 12; + break; + } + case 106: + { + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder subBuilder = + null; + if (metricsCase_ == 13) { + subBuilder = + ((com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) metrics_) + .toBuilder(); + } + metrics_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) metrics_); + metrics_ = subBuilder.buildPartial(); + } + metricsCase_ = 13; + break; + } + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 194: + { + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.Builder + subBuilder = null; + if (metricsCase_ == 24) { + subBuilder = + ((com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics) + metrics_) + .toBuilder(); + } + metrics_ = + input.readMessage( + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics) + metrics_); + metrics_ = subBuilder.buildPartial(); + } + metricsCase_ = 24; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -172,7 +276,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public enum MetricsCase implements com.google.protobuf.Internal.EnumLite { CLASSIFICATION_EVALUATION_METRICS(8), + REGRESSION_EVALUATION_METRICS(24), TRANSLATION_EVALUATION_METRICS(9), + IMAGE_OBJECT_DETECTION_EVALUATION_METRICS(12), + TEXT_SENTIMENT_EVALUATION_METRICS(11), + TEXT_EXTRACTION_EVALUATION_METRICS(13), METRICS_NOT_SET(0); private final int value; @@ -189,8 +297,16 @@ public static MetricsCase forNumber(int value) { switch (value) { case 8: return CLASSIFICATION_EVALUATION_METRICS; + case 24: + return REGRESSION_EVALUATION_METRICS; case 9: return TRANSLATION_EVALUATION_METRICS; + case 12: + return IMAGE_OBJECT_DETECTION_EVALUATION_METRICS; + case 11: + return TEXT_SENTIMENT_EVALUATION_METRICS; + case 13: + return TEXT_EXTRACTION_EVALUATION_METRICS; case 0: return METRICS_NOT_SET; default: @@ -212,7 +328,10 @@ public MetricsCase getMetricsCase() { * * *
-   * Evaluation metrics for models on classification problems models.
+   * Model evaluation metrics for image, text, video and tables
+   * classification.
+   * Tables problem is considered a classification when the target column
+   * has either CATEGORY or ARRAY(CATEGORY) DataType.
    * 
* * @@ -226,7 +345,10 @@ public boolean hasClassificationEvaluationMetrics() { * * *
-   * Evaluation metrics for models on classification problems models.
+   * Model evaluation metrics for image, text, video and tables
+   * classification.
+   * Tables problem is considered a classification when the target column
+   * has either CATEGORY or ARRAY(CATEGORY) DataType.
    * 
* * @@ -246,7 +368,10 @@ public boolean hasClassificationEvaluationMetrics() { * * *
-   * Evaluation metrics for models on classification problems models.
+   * Model evaluation metrics for image, text, video and tables
+   * classification.
+   * Tables problem is considered a classification when the target column
+   * has either CATEGORY or ARRAY(CATEGORY) DataType.
    * 
* * @@ -264,12 +389,72 @@ public boolean hasClassificationEvaluationMetrics() { .getDefaultInstance(); } + public static final int REGRESSION_EVALUATION_METRICS_FIELD_NUMBER = 24; + /** + * + * + *
+   * Model evaluation metrics for Tables regression.
+   * Tables problem is considered a regression when the target column
+   * has FLOAT64 DataType.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * + */ + public boolean hasRegressionEvaluationMetrics() { + return metricsCase_ == 24; + } + /** + * + * + *
+   * Model evaluation metrics for Tables regression.
+   * Tables problem is considered a regression when the target column
+   * has FLOAT64 DataType.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * + */ + public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + getRegressionEvaluationMetrics() { + if (metricsCase_ == 24) { + return (com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics) metrics_; + } + return com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + .getDefaultInstance(); + } + /** + * + * + *
+   * Model evaluation metrics for Tables regression.
+   * Tables problem is considered a regression when the target column
+   * has FLOAT64 DataType.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * + */ + public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetricsOrBuilder + getRegressionEvaluationMetricsOrBuilder() { + if (metricsCase_ == 24) { + return (com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics) metrics_; + } + return com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + .getDefaultInstance(); + } + public static final int TRANSLATION_EVALUATION_METRICS_FIELD_NUMBER = 9; /** * * *
-   * Evaluation metrics for models on translation models.
+   * Model evaluation metrics for translation.
    * 
* * @@ -283,7 +468,7 @@ public boolean hasTranslationEvaluationMetrics() { * * *
-   * Evaluation metrics for models on translation models.
+   * Model evaluation metrics for translation.
    * 
* * @@ -301,7 +486,7 @@ public boolean hasTranslationEvaluationMetrics() { * * *
-   * Evaluation metrics for models on translation models.
+   * Model evaluation metrics for translation.
    * 
* * @@ -316,6 +501,168 @@ public boolean hasTranslationEvaluationMetrics() { return com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.getDefaultInstance(); } + public static final int IMAGE_OBJECT_DETECTION_EVALUATION_METRICS_FIELD_NUMBER = 12; + /** + * + * + *
+   * Model evaluation metrics for image object detection.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + */ + public boolean hasImageObjectDetectionEvaluationMetrics() { + return metricsCase_ == 12; + } + /** + * + * + *
+   * Model evaluation metrics for image object detection.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics + getImageObjectDetectionEvaluationMetrics() { + if (metricsCase_ == 12) { + return (com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) metrics_; + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics + .getDefaultInstance(); + } + /** + * + * + *
+   * Model evaluation metrics for image object detection.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetricsOrBuilder + getImageObjectDetectionEvaluationMetricsOrBuilder() { + if (metricsCase_ == 12) { + return (com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) metrics_; + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics + .getDefaultInstance(); + } + + public static final int TEXT_SENTIMENT_EVALUATION_METRICS_FIELD_NUMBER = 11; + /** + * + * + *
+   * Evaluation metrics for text sentiment models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + */ + public boolean hasTextSentimentEvaluationMetrics() { + return metricsCase_ == 11; + } + /** + * + * + *
+   * Evaluation metrics for text sentiment models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + */ + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + getTextSentimentEvaluationMetrics() { + if (metricsCase_ == 11) { + return (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) + metrics_; + } + return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + .getDefaultInstance(); + } + /** + * + * + *
+   * Evaluation metrics for text sentiment models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + */ + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetricsOrBuilder + getTextSentimentEvaluationMetricsOrBuilder() { + if (metricsCase_ == 11) { + return (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) + metrics_; + } + return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + .getDefaultInstance(); + } + + public static final int TEXT_EXTRACTION_EVALUATION_METRICS_FIELD_NUMBER = 13; + /** + * + * + *
+   * Evaluation metrics for text extraction models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + */ + public boolean hasTextExtractionEvaluationMetrics() { + return metricsCase_ == 13; + } + /** + * + * + *
+   * Evaluation metrics for text extraction models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + */ + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + getTextExtractionEvaluationMetrics() { + if (metricsCase_ == 13) { + return (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) metrics_; + } + return com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.getDefaultInstance(); + } + /** + * + * + *
+   * Evaluation metrics for text extraction models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + */ + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder + getTextExtractionEvaluationMetricsOrBuilder() { + if (metricsCase_ == 13) { + return (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) metrics_; + } + return com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -373,7 +720,10 @@ public com.google.protobuf.ByteString getNameBytes() { *
    * Output only.
    * The ID of the annotation spec that the model evaluation applies to. The
-   * ID is empty for overall model evaluation.
+   * The ID is empty for the overall model evaluation.
+   * For Tables classification these are the distinct values of the target
+   * column at the moment of the evaluation; for this problem annotation specs
+   * in the dataset do not exist.
    * NOTE: Currently there is no way to obtain the display_name of the
    * annotation spec from its ID. To see the display_names, review the model
    * evaluations in the UI.
@@ -398,7 +748,10 @@ public java.lang.String getAnnotationSpecId() {
    * 
    * Output only.
    * The ID of the annotation spec that the model evaluation applies to. The
-   * ID is empty for overall model evaluation.
+   * The ID is empty for the overall model evaluation.
+   * For Tables classification these are the distinct values of the target
+   * column at the moment of the evaluation; for this problem annotation specs
+   * in the dataset do not exist.
    * NOTE: Currently there is no way to obtain the display_name of the
    * annotation spec from its ID. To see the display_names, review the model
    * evaluations in the UI.
@@ -418,6 +771,59 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes() {
     }
   }
 
+  public static final int DISPLAY_NAME_FIELD_NUMBER = 15;
+  private volatile java.lang.Object displayName_;
+  /**
+   *
+   *
+   * 
+   * Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model
+   * was trained. Because this field returns a value at model training time,
+   * for different models trained using the same dataset, the returned value
+   * could be different as model owner could update the display_name between
+   * any two model training.
+   * The display_name is empty for the overall model evaluation.
+   * 
+ * + * string display_name = 15; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model
+   * was trained. Because this field returns a value at model training time,
+   * for different models trained using the same dataset, the returned value
+   * could be different as model owner could update the display_name between
+   * any two model training.
+   * The display_name is empty for the overall model evaluation.
+   * 
+ * + * string display_name = 15; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** @@ -466,7 +872,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-   * Output only. The number of examples used for model evaluation.
+   * Output only.
+   * The number of examples used for model evaluation, i.e. for
+   * which ground truth from time of model creation is compared against the
+   * predicted annotations created by the model.
+   * For overall ModelEvaluation (i.e. with annotation_spec_id not set) this is
+   * the total number of all examples used for evaluation.
+   * Otherwise, this is the count of examples that according to the ground
+   * truth were annotated by the
+   * [annotation_spec_id][google.cloud.automl.v1beta1.ModelEvaluation.annotation_spec_id].
    * 
* * int32 evaluated_example_count = 6; @@ -511,6 +925,28 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 9, (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_); } + if (metricsCase_ == 11) { + output.writeMessage( + 11, + (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) + metrics_); + } + if (metricsCase_ == 12) { + output.writeMessage( + 12, (com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) metrics_); + } + if (metricsCase_ == 13) { + output.writeMessage( + 13, (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) metrics_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, displayName_); + } + if (metricsCase_ == 24) { + output.writeMessage( + 24, + (com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics) metrics_); + } unknownFields.writeTo(output); } @@ -544,12 +980,39 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 9, (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_); } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override + if (metricsCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, + (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) + metrics_); + } + if (metricsCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) metrics_); + } + if (metricsCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) metrics_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, displayName_); + } + if (metricsCase_ == 24) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 24, + (com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics) + metrics_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; @@ -562,6 +1025,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getAnnotationSpecId().equals(other.getAnnotationSpecId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; @@ -573,10 +1037,26 @@ public boolean equals(final java.lang.Object obj) { if (!getClassificationEvaluationMetrics() .equals(other.getClassificationEvaluationMetrics())) return false; break; + case 24: + if (!getRegressionEvaluationMetrics().equals(other.getRegressionEvaluationMetrics())) + return false; + break; case 9: if (!getTranslationEvaluationMetrics().equals(other.getTranslationEvaluationMetrics())) return false; break; + case 12: + if (!getImageObjectDetectionEvaluationMetrics() + .equals(other.getImageObjectDetectionEvaluationMetrics())) return false; + break; + case 11: + if (!getTextSentimentEvaluationMetrics().equals(other.getTextSentimentEvaluationMetrics())) + return false; + break; + case 13: + if (!getTextExtractionEvaluationMetrics() + .equals(other.getTextExtractionEvaluationMetrics())) return false; + break; case 0: default: } @@ -595,6 +1075,8 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ANNOTATION_SPEC_ID_FIELD_NUMBER; hash = (53 * hash) + getAnnotationSpecId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); @@ -606,10 +1088,26 @@ public int hashCode() { hash = (37 * hash) + CLASSIFICATION_EVALUATION_METRICS_FIELD_NUMBER; hash = (53 * hash) + getClassificationEvaluationMetrics().hashCode(); break; + case 24: + hash = (37 * hash) + REGRESSION_EVALUATION_METRICS_FIELD_NUMBER; + hash = (53 * hash) + getRegressionEvaluationMetrics().hashCode(); + break; case 9: hash = (37 * hash) + TRANSLATION_EVALUATION_METRICS_FIELD_NUMBER; hash = (53 * hash) + getTranslationEvaluationMetrics().hashCode(); break; + case 12: + hash = (37 * hash) + IMAGE_OBJECT_DETECTION_EVALUATION_METRICS_FIELD_NUMBER; + hash = (53 * hash) + getImageObjectDetectionEvaluationMetrics().hashCode(); + break; + case 11: + hash = (37 * hash) + TEXT_SENTIMENT_EVALUATION_METRICS_FIELD_NUMBER; + hash = (53 * hash) + getTextSentimentEvaluationMetrics().hashCode(); + break; + case 13: + hash = (37 * hash) + TEXT_EXTRACTION_EVALUATION_METRICS_FIELD_NUMBER; + hash = (53 * hash) + getTextExtractionEvaluationMetrics().hashCode(); + break; case 0: default: } @@ -762,6 +1260,8 @@ public Builder clear() { annotationSpecId_ = ""; + displayName_ = ""; + if (createTimeBuilder_ == null) { createTime_ = null; } else { @@ -806,6 +1306,13 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation buildPartial() { result.metrics_ = classificationEvaluationMetricsBuilder_.build(); } } + if (metricsCase_ == 24) { + if (regressionEvaluationMetricsBuilder_ == null) { + result.metrics_ = metrics_; + } else { + result.metrics_ = regressionEvaluationMetricsBuilder_.build(); + } + } if (metricsCase_ == 9) { if (translationEvaluationMetricsBuilder_ == null) { result.metrics_ = metrics_; @@ -813,8 +1320,30 @@ public com.google.cloud.automl.v1beta1.ModelEvaluation buildPartial() { result.metrics_ = translationEvaluationMetricsBuilder_.build(); } } + if (metricsCase_ == 12) { + if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { + result.metrics_ = metrics_; + } else { + result.metrics_ = imageObjectDetectionEvaluationMetricsBuilder_.build(); + } + } + if (metricsCase_ == 11) { + if (textSentimentEvaluationMetricsBuilder_ == null) { + result.metrics_ = metrics_; + } else { + result.metrics_ = textSentimentEvaluationMetricsBuilder_.build(); + } + } + if (metricsCase_ == 13) { + if (textExtractionEvaluationMetricsBuilder_ == null) { + result.metrics_ = metrics_; + } else { + result.metrics_ = textExtractionEvaluationMetricsBuilder_.build(); + } + } result.name_ = name_; result.annotationSpecId_ = annotationSpecId_; + result.displayName_ = displayName_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -880,6 +1409,10 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ModelEvaluation other) annotationSpecId_ = other.annotationSpecId_; onChanged(); } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -892,11 +1425,32 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.ModelEvaluation other) mergeClassificationEvaluationMetrics(other.getClassificationEvaluationMetrics()); break; } + case REGRESSION_EVALUATION_METRICS: + { + mergeRegressionEvaluationMetrics(other.getRegressionEvaluationMetrics()); + break; + } case TRANSLATION_EVALUATION_METRICS: { mergeTranslationEvaluationMetrics(other.getTranslationEvaluationMetrics()); break; } + case IMAGE_OBJECT_DETECTION_EVALUATION_METRICS: + { + mergeImageObjectDetectionEvaluationMetrics( + other.getImageObjectDetectionEvaluationMetrics()); + break; + } + case TEXT_SENTIMENT_EVALUATION_METRICS: + { + mergeTextSentimentEvaluationMetrics(other.getTextSentimentEvaluationMetrics()); + break; + } + case TEXT_EXTRACTION_EVALUATION_METRICS: + { + mergeTextExtractionEvaluationMetrics(other.getTextExtractionEvaluationMetrics()); + break; + } case METRICS_NOT_SET: { break; @@ -928,70 +1482,1065 @@ public Builder mergeFrom( mergeFrom(parsedMessage); } } - return this; - } - - private int metricsCase_ = 0; - private java.lang.Object metrics_; - - public MetricsCase getMetricsCase() { - return MetricsCase.forNumber(metricsCase_); - } - - public Builder clearMetrics() { - metricsCase_ = 0; - metrics_ = null; + return this; + } + + private int metricsCase_ = 0; + private java.lang.Object metrics_; + + public MetricsCase getMetricsCase() { + return MetricsCase.forNumber(metricsCase_); + } + + public Builder clearMetrics() { + metricsCase_ = 0; + metrics_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .Builder, + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetricsOrBuilder> + classificationEvaluationMetricsBuilder_; + /** + * + * + *
+     * Model evaluation metrics for image, text, video and tables
+     * classification.
+     * Tables problem is considered a classification when the target column
+     * has either CATEGORY or ARRAY(CATEGORY) DataType.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + */ + public boolean hasClassificationEvaluationMetrics() { + return metricsCase_ == 8; + } + /** + * + * + *
+     * Model evaluation metrics for image, text, video and tables
+     * classification.
+     * Tables problem is considered a classification when the target column
+     * has either CATEGORY or ARRAY(CATEGORY) DataType.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + */ + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + getClassificationEvaluationMetrics() { + if (classificationEvaluationMetricsBuilder_ == null) { + if (metricsCase_ == 8) { + return (com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics) + metrics_; + } + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .getDefaultInstance(); + } else { + if (metricsCase_ == 8) { + return classificationEvaluationMetricsBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Model evaluation metrics for image, text, video and tables
+     * classification.
+     * Tables problem is considered a classification when the target column
+     * has either CATEGORY or ARRAY(CATEGORY) DataType.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + */ + public Builder setClassificationEvaluationMetrics( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics value) { + if (classificationEvaluationMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metrics_ = value; + onChanged(); + } else { + classificationEvaluationMetricsBuilder_.setMessage(value); + } + metricsCase_ = 8; + return this; + } + /** + * + * + *
+     * Model evaluation metrics for image, text, video and tables
+     * classification.
+     * Tables problem is considered a classification when the target column
+     * has either CATEGORY or ARRAY(CATEGORY) DataType.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + */ + public Builder setClassificationEvaluationMetrics( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.Builder + builderForValue) { + if (classificationEvaluationMetricsBuilder_ == null) { + metrics_ = builderForValue.build(); + onChanged(); + } else { + classificationEvaluationMetricsBuilder_.setMessage(builderForValue.build()); + } + metricsCase_ = 8; + return this; + } + /** + * + * + *
+     * Model evaluation metrics for image, text, video and tables
+     * classification.
+     * Tables problem is considered a classification when the target column
+     * has either CATEGORY or ARRAY(CATEGORY) DataType.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + */ + public Builder mergeClassificationEvaluationMetrics( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics value) { + if (classificationEvaluationMetricsBuilder_ == null) { + if (metricsCase_ == 8 + && metrics_ + != com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.getDefaultInstance()) { + metrics_ = + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .newBuilder( + (com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics) + metrics_) + .mergeFrom(value) + .buildPartial(); + } else { + metrics_ = value; + } + onChanged(); + } else { + if (metricsCase_ == 8) { + classificationEvaluationMetricsBuilder_.mergeFrom(value); + } + classificationEvaluationMetricsBuilder_.setMessage(value); + } + metricsCase_ = 8; + return this; + } + /** + * + * + *
+     * Model evaluation metrics for image, text, video and tables
+     * classification.
+     * Tables problem is considered a classification when the target column
+     * has either CATEGORY or ARRAY(CATEGORY) DataType.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + */ + public Builder clearClassificationEvaluationMetrics() { + if (classificationEvaluationMetricsBuilder_ == null) { + if (metricsCase_ == 8) { + metricsCase_ = 0; + metrics_ = null; + onChanged(); + } + } else { + if (metricsCase_ == 8) { + metricsCase_ = 0; + metrics_ = null; + } + classificationEvaluationMetricsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Model evaluation metrics for image, text, video and tables
+     * classification.
+     * Tables problem is considered a classification when the target column
+     * has either CATEGORY or ARRAY(CATEGORY) DataType.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + */ + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .Builder + getClassificationEvaluationMetricsBuilder() { + return getClassificationEvaluationMetricsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Model evaluation metrics for image, text, video and tables
+     * classification.
+     * Tables problem is considered a classification when the target column
+     * has either CATEGORY or ARRAY(CATEGORY) DataType.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + */ + public com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetricsOrBuilder + getClassificationEvaluationMetricsOrBuilder() { + if ((metricsCase_ == 8) && (classificationEvaluationMetricsBuilder_ != null)) { + return classificationEvaluationMetricsBuilder_.getMessageOrBuilder(); + } else { + if (metricsCase_ == 8) { + return (com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics) + metrics_; + } + return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Model evaluation metrics for image, text, video and tables
+     * classification.
+     * Tables problem is considered a classification when the target column
+     * has either CATEGORY or ARRAY(CATEGORY) DataType.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .Builder, + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetricsOrBuilder> + getClassificationEvaluationMetricsFieldBuilder() { + if (classificationEvaluationMetricsBuilder_ == null) { + if (!(metricsCase_ == 8)) { + metrics_ = + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .getDefaultInstance(); + } + classificationEvaluationMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .Builder, + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetricsOrBuilder>( + (com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics) + metrics_, + getParentForChildren(), + isClean()); + metrics_ = null; + } + metricsCase_ = 8; + onChanged(); + ; + return classificationEvaluationMetricsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics, + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.Builder, + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetricsOrBuilder> + regressionEvaluationMetricsBuilder_; + /** + * + * + *
+     * Model evaluation metrics for Tables regression.
+     * Tables problem is considered a regression when the target column
+     * has FLOAT64 DataType.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * + */ + public boolean hasRegressionEvaluationMetrics() { + return metricsCase_ == 24; + } + /** + * + * + *
+     * Model evaluation metrics for Tables regression.
+     * Tables problem is considered a regression when the target column
+     * has FLOAT64 DataType.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * + */ + public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + getRegressionEvaluationMetrics() { + if (regressionEvaluationMetricsBuilder_ == null) { + if (metricsCase_ == 24) { + return (com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics) + metrics_; + } + return com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + .getDefaultInstance(); + } else { + if (metricsCase_ == 24) { + return regressionEvaluationMetricsBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Model evaluation metrics for Tables regression.
+     * Tables problem is considered a regression when the target column
+     * has FLOAT64 DataType.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * + */ + public Builder setRegressionEvaluationMetrics( + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics value) { + if (regressionEvaluationMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metrics_ = value; + onChanged(); + } else { + regressionEvaluationMetricsBuilder_.setMessage(value); + } + metricsCase_ = 24; + return this; + } + /** + * + * + *
+     * Model evaluation metrics for Tables regression.
+     * Tables problem is considered a regression when the target column
+     * has FLOAT64 DataType.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * + */ + public Builder setRegressionEvaluationMetrics( + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.Builder + builderForValue) { + if (regressionEvaluationMetricsBuilder_ == null) { + metrics_ = builderForValue.build(); + onChanged(); + } else { + regressionEvaluationMetricsBuilder_.setMessage(builderForValue.build()); + } + metricsCase_ = 24; + return this; + } + /** + * + * + *
+     * Model evaluation metrics for Tables regression.
+     * Tables problem is considered a regression when the target column
+     * has FLOAT64 DataType.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * + */ + public Builder mergeRegressionEvaluationMetrics( + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics value) { + if (regressionEvaluationMetricsBuilder_ == null) { + if (metricsCase_ == 24 + && metrics_ + != com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + .getDefaultInstance()) { + metrics_ = + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + .newBuilder( + (com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics) + metrics_) + .mergeFrom(value) + .buildPartial(); + } else { + metrics_ = value; + } + onChanged(); + } else { + if (metricsCase_ == 24) { + regressionEvaluationMetricsBuilder_.mergeFrom(value); + } + regressionEvaluationMetricsBuilder_.setMessage(value); + } + metricsCase_ = 24; + return this; + } + /** + * + * + *
+     * Model evaluation metrics for Tables regression.
+     * Tables problem is considered a regression when the target column
+     * has FLOAT64 DataType.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * + */ + public Builder clearRegressionEvaluationMetrics() { + if (regressionEvaluationMetricsBuilder_ == null) { + if (metricsCase_ == 24) { + metricsCase_ = 0; + metrics_ = null; + onChanged(); + } + } else { + if (metricsCase_ == 24) { + metricsCase_ = 0; + metrics_ = null; + } + regressionEvaluationMetricsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Model evaluation metrics for Tables regression.
+     * Tables problem is considered a regression when the target column
+     * has FLOAT64 DataType.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * + */ + public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.Builder + getRegressionEvaluationMetricsBuilder() { + return getRegressionEvaluationMetricsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Model evaluation metrics for Tables regression.
+     * Tables problem is considered a regression when the target column
+     * has FLOAT64 DataType.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * + */ + public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetricsOrBuilder + getRegressionEvaluationMetricsOrBuilder() { + if ((metricsCase_ == 24) && (regressionEvaluationMetricsBuilder_ != null)) { + return regressionEvaluationMetricsBuilder_.getMessageOrBuilder(); + } else { + if (metricsCase_ == 24) { + return (com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics) + metrics_; + } + return com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Model evaluation metrics for Tables regression.
+     * Tables problem is considered a regression when the target column
+     * has FLOAT64 DataType.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics, + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.Builder, + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetricsOrBuilder> + getRegressionEvaluationMetricsFieldBuilder() { + if (regressionEvaluationMetricsBuilder_ == null) { + if (!(metricsCase_ == 24)) { + metrics_ = + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + .getDefaultInstance(); + } + regressionEvaluationMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics, + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.Builder, + com.google.cloud.automl.v1beta1.RegressionProto + .RegressionEvaluationMetricsOrBuilder>( + (com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics) + metrics_, + getParentForChildren(), + isClean()); + metrics_ = null; + } + metricsCase_ = 24; + onChanged(); + ; + return regressionEvaluationMetricsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics, + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder, + com.google.cloud.automl.v1beta1.TranslationEvaluationMetricsOrBuilder> + translationEvaluationMetricsBuilder_; + /** + * + * + *
+     * Model evaluation metrics for translation.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + */ + public boolean hasTranslationEvaluationMetrics() { + return metricsCase_ == 9; + } + /** + * + * + *
+     * Model evaluation metrics for translation.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + */ + public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics + getTranslationEvaluationMetrics() { + if (translationEvaluationMetricsBuilder_ == null) { + if (metricsCase_ == 9) { + return (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_; + } + return com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.getDefaultInstance(); + } else { + if (metricsCase_ == 9) { + return translationEvaluationMetricsBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.getDefaultInstance(); + } + } + /** + * + * + *
+     * Model evaluation metrics for translation.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + */ + public Builder setTranslationEvaluationMetrics( + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics value) { + if (translationEvaluationMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metrics_ = value; + onChanged(); + } else { + translationEvaluationMetricsBuilder_.setMessage(value); + } + metricsCase_ = 9; + return this; + } + /** + * + * + *
+     * Model evaluation metrics for translation.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + */ + public Builder setTranslationEvaluationMetrics( + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder builderForValue) { + if (translationEvaluationMetricsBuilder_ == null) { + metrics_ = builderForValue.build(); + onChanged(); + } else { + translationEvaluationMetricsBuilder_.setMessage(builderForValue.build()); + } + metricsCase_ = 9; + return this; + } + /** + * + * + *
+     * Model evaluation metrics for translation.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + */ + public Builder mergeTranslationEvaluationMetrics( + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics value) { + if (translationEvaluationMetricsBuilder_ == null) { + if (metricsCase_ == 9 + && metrics_ + != com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics + .getDefaultInstance()) { + metrics_ = + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.newBuilder( + (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_) + .mergeFrom(value) + .buildPartial(); + } else { + metrics_ = value; + } + onChanged(); + } else { + if (metricsCase_ == 9) { + translationEvaluationMetricsBuilder_.mergeFrom(value); + } + translationEvaluationMetricsBuilder_.setMessage(value); + } + metricsCase_ = 9; + return this; + } + /** + * + * + *
+     * Model evaluation metrics for translation.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + */ + public Builder clearTranslationEvaluationMetrics() { + if (translationEvaluationMetricsBuilder_ == null) { + if (metricsCase_ == 9) { + metricsCase_ = 0; + metrics_ = null; + onChanged(); + } + } else { + if (metricsCase_ == 9) { + metricsCase_ = 0; + metrics_ = null; + } + translationEvaluationMetricsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Model evaluation metrics for translation.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + */ + public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder + getTranslationEvaluationMetricsBuilder() { + return getTranslationEvaluationMetricsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Model evaluation metrics for translation.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + */ + public com.google.cloud.automl.v1beta1.TranslationEvaluationMetricsOrBuilder + getTranslationEvaluationMetricsOrBuilder() { + if ((metricsCase_ == 9) && (translationEvaluationMetricsBuilder_ != null)) { + return translationEvaluationMetricsBuilder_.getMessageOrBuilder(); + } else { + if (metricsCase_ == 9) { + return (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_; + } + return com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.getDefaultInstance(); + } + } + /** + * + * + *
+     * Model evaluation metrics for translation.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics, + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder, + com.google.cloud.automl.v1beta1.TranslationEvaluationMetricsOrBuilder> + getTranslationEvaluationMetricsFieldBuilder() { + if (translationEvaluationMetricsBuilder_ == null) { + if (!(metricsCase_ == 9)) { + metrics_ = + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.getDefaultInstance(); + } + translationEvaluationMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics, + com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder, + com.google.cloud.automl.v1beta1.TranslationEvaluationMetricsOrBuilder>( + (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_, + getParentForChildren(), + isClean()); + metrics_ = null; + } + metricsCase_ = 9; + onChanged(); + ; + return translationEvaluationMetricsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics, + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.Builder, + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetricsOrBuilder> + imageObjectDetectionEvaluationMetricsBuilder_; + /** + * + * + *
+     * Model evaluation metrics for image object detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + */ + public boolean hasImageObjectDetectionEvaluationMetrics() { + return metricsCase_ == 12; + } + /** + * + * + *
+     * Model evaluation metrics for image object detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics + getImageObjectDetectionEvaluationMetrics() { + if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { + if (metricsCase_ == 12) { + return (com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) metrics_; + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics + .getDefaultInstance(); + } else { + if (metricsCase_ == 12) { + return imageObjectDetectionEvaluationMetricsBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Model evaluation metrics for image object detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + */ + public Builder setImageObjectDetectionEvaluationMetrics( + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics value) { + if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metrics_ = value; + onChanged(); + } else { + imageObjectDetectionEvaluationMetricsBuilder_.setMessage(value); + } + metricsCase_ = 12; + return this; + } + /** + * + * + *
+     * Model evaluation metrics for image object detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + */ + public Builder setImageObjectDetectionEvaluationMetrics( + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.Builder + builderForValue) { + if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { + metrics_ = builderForValue.build(); + onChanged(); + } else { + imageObjectDetectionEvaluationMetricsBuilder_.setMessage(builderForValue.build()); + } + metricsCase_ = 12; + return this; + } + /** + * + * + *
+     * Model evaluation metrics for image object detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + */ + public Builder mergeImageObjectDetectionEvaluationMetrics( + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics value) { + if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { + if (metricsCase_ == 12 + && metrics_ + != com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics + .getDefaultInstance()) { + metrics_ = + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.newBuilder( + (com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) + metrics_) + .mergeFrom(value) + .buildPartial(); + } else { + metrics_ = value; + } + onChanged(); + } else { + if (metricsCase_ == 12) { + imageObjectDetectionEvaluationMetricsBuilder_.mergeFrom(value); + } + imageObjectDetectionEvaluationMetricsBuilder_.setMessage(value); + } + metricsCase_ = 12; + return this; + } + /** + * + * + *
+     * Model evaluation metrics for image object detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + */ + public Builder clearImageObjectDetectionEvaluationMetrics() { + if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { + if (metricsCase_ == 12) { + metricsCase_ = 0; + metrics_ = null; + onChanged(); + } + } else { + if (metricsCase_ == 12) { + metricsCase_ = 0; + metrics_ = null; + } + imageObjectDetectionEvaluationMetricsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Model evaluation metrics for image object detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.Builder + getImageObjectDetectionEvaluationMetricsBuilder() { + return getImageObjectDetectionEvaluationMetricsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Model evaluation metrics for image object detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + */ + public com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetricsOrBuilder + getImageObjectDetectionEvaluationMetricsOrBuilder() { + if ((metricsCase_ == 12) && (imageObjectDetectionEvaluationMetricsBuilder_ != null)) { + return imageObjectDetectionEvaluationMetricsBuilder_.getMessageOrBuilder(); + } else { + if (metricsCase_ == 12) { + return (com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) metrics_; + } + return com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Model evaluation metrics for image object detection.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics, + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.Builder, + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetricsOrBuilder> + getImageObjectDetectionEvaluationMetricsFieldBuilder() { + if (imageObjectDetectionEvaluationMetricsBuilder_ == null) { + if (!(metricsCase_ == 12)) { + metrics_ = + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics + .getDefaultInstance(); + } + imageObjectDetectionEvaluationMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics, + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics.Builder, + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetricsOrBuilder>( + (com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics) metrics_, + getParentForChildren(), + isClean()); + metrics_ = null; + } + metricsCase_ = 12; onChanged(); - return this; + ; + return imageObjectDetectionEvaluationMetricsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics, + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics .Builder, - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetricsOrBuilder> - classificationEvaluationMetricsBuilder_; + com.google.cloud.automl.v1beta1.TextSentimentProto + .TextSentimentEvaluationMetricsOrBuilder> + textSentimentEvaluationMetricsBuilder_; /** * * *
-     * Evaluation metrics for models on classification problems models.
+     * Evaluation metrics for text sentiment models.
      * 
* * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; * */ - public boolean hasClassificationEvaluationMetrics() { - return metricsCase_ == 8; + public boolean hasTextSentimentEvaluationMetrics() { + return metricsCase_ == 11; } /** * * *
-     * Evaluation metrics for models on classification problems models.
+     * Evaluation metrics for text sentiment models.
      * 
* * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; * */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - getClassificationEvaluationMetrics() { - if (classificationEvaluationMetricsBuilder_ == null) { - if (metricsCase_ == 8) { - return (com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics) + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + getTextSentimentEvaluationMetrics() { + if (textSentimentEvaluationMetricsBuilder_ == null) { + if (metricsCase_ == 11) { + return (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) metrics_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics .getDefaultInstance(); } else { - if (metricsCase_ == 8) { - return classificationEvaluationMetricsBuilder_.getMessage(); + if (metricsCase_ == 11) { + return textSentimentEvaluationMetricsBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics .getDefaultInstance(); } } @@ -999,73 +2548,73 @@ public boolean hasClassificationEvaluationMetrics() { * * *
-     * Evaluation metrics for models on classification problems models.
+     * Evaluation metrics for text sentiment models.
      * 
* * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; * */ - public Builder setClassificationEvaluationMetrics( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics value) { - if (classificationEvaluationMetricsBuilder_ == null) { + public Builder setTextSentimentEvaluationMetrics( + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics value) { + if (textSentimentEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metrics_ = value; onChanged(); } else { - classificationEvaluationMetricsBuilder_.setMessage(value); + textSentimentEvaluationMetricsBuilder_.setMessage(value); } - metricsCase_ = 8; + metricsCase_ = 11; return this; } /** * * *
-     * Evaluation metrics for models on classification problems models.
+     * Evaluation metrics for text sentiment models.
      * 
* * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; * */ - public Builder setClassificationEvaluationMetrics( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics.Builder + public Builder setTextSentimentEvaluationMetrics( + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.Builder builderForValue) { - if (classificationEvaluationMetricsBuilder_ == null) { + if (textSentimentEvaluationMetricsBuilder_ == null) { metrics_ = builderForValue.build(); onChanged(); } else { - classificationEvaluationMetricsBuilder_.setMessage(builderForValue.build()); + textSentimentEvaluationMetricsBuilder_.setMessage(builderForValue.build()); } - metricsCase_ = 8; + metricsCase_ = 11; return this; } /** * * *
-     * Evaluation metrics for models on classification problems models.
+     * Evaluation metrics for text sentiment models.
      * 
* * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; * */ - public Builder mergeClassificationEvaluationMetrics( - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics value) { - if (classificationEvaluationMetricsBuilder_ == null) { - if (metricsCase_ == 8 + public Builder mergeTextSentimentEvaluationMetrics( + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics value) { + if (textSentimentEvaluationMetricsBuilder_ == null) { + if (metricsCase_ == 11 && metrics_ - != com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics.getDefaultInstance()) { + != com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + .getDefaultInstance()) { metrics_ = - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics .newBuilder( - (com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics) + (com.google.cloud.automl.v1beta1.TextSentimentProto + .TextSentimentEvaluationMetrics) metrics_) .mergeFrom(value) .buildPartial(); @@ -1074,38 +2623,38 @@ public Builder mergeClassificationEvaluationMetrics( } onChanged(); } else { - if (metricsCase_ == 8) { - classificationEvaluationMetricsBuilder_.mergeFrom(value); + if (metricsCase_ == 11) { + textSentimentEvaluationMetricsBuilder_.mergeFrom(value); } - classificationEvaluationMetricsBuilder_.setMessage(value); + textSentimentEvaluationMetricsBuilder_.setMessage(value); } - metricsCase_ = 8; + metricsCase_ = 11; return this; } /** * * *
-     * Evaluation metrics for models on classification problems models.
+     * Evaluation metrics for text sentiment models.
      * 
* * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; * */ - public Builder clearClassificationEvaluationMetrics() { - if (classificationEvaluationMetricsBuilder_ == null) { - if (metricsCase_ == 8) { + public Builder clearTextSentimentEvaluationMetrics() { + if (textSentimentEvaluationMetricsBuilder_ == null) { + if (metricsCase_ == 11) { metricsCase_ = 0; metrics_ = null; onChanged(); } } else { - if (metricsCase_ == 8) { + if (metricsCase_ == 11) { metricsCase_ = 0; metrics_ = null; } - classificationEvaluationMetricsBuilder_.clear(); + textSentimentEvaluationMetricsBuilder_.clear(); } return this; } @@ -1113,41 +2662,39 @@ public Builder clearClassificationEvaluationMetrics() { * * *
-     * Evaluation metrics for models on classification problems models.
+     * Evaluation metrics for text sentiment models.
      * 
* * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; * */ - public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics - .Builder - getClassificationEvaluationMetricsBuilder() { - return getClassificationEvaluationMetricsFieldBuilder().getBuilder(); + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.Builder + getTextSentimentEvaluationMetricsBuilder() { + return getTextSentimentEvaluationMetricsFieldBuilder().getBuilder(); } /** * * *
-     * Evaluation metrics for models on classification problems models.
+     * Evaluation metrics for text sentiment models.
      * 
* * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; * */ - public com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetricsOrBuilder - getClassificationEvaluationMetricsOrBuilder() { - if ((metricsCase_ == 8) && (classificationEvaluationMetricsBuilder_ != null)) { - return classificationEvaluationMetricsBuilder_.getMessageOrBuilder(); + public com.google.cloud.automl.v1beta1.TextSentimentProto + .TextSentimentEvaluationMetricsOrBuilder + getTextSentimentEvaluationMetricsOrBuilder() { + if ((metricsCase_ == 11) && (textSentimentEvaluationMetricsBuilder_ != null)) { + return textSentimentEvaluationMetricsBuilder_.getMessageOrBuilder(); } else { - if (metricsCase_ == 8) { - return (com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics) + if (metricsCase_ == 11) { + return (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) metrics_; } - return com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics .getDefaultInstance(); } } @@ -1155,158 +2702,157 @@ public Builder clearClassificationEvaluationMetrics() { * * *
-     * Evaluation metrics for models on classification problems models.
+     * Evaluation metrics for text sentiment models.
      * 
* * - * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics classification_evaluation_metrics = 8; + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics, + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics .Builder, - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetricsOrBuilder> - getClassificationEvaluationMetricsFieldBuilder() { - if (classificationEvaluationMetricsBuilder_ == null) { - if (!(metricsCase_ == 8)) { + com.google.cloud.automl.v1beta1.TextSentimentProto + .TextSentimentEvaluationMetricsOrBuilder> + getTextSentimentEvaluationMetricsFieldBuilder() { + if (textSentimentEvaluationMetricsBuilder_ == null) { + if (!(metricsCase_ == 11)) { metrics_ = - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics .getDefaultInstance(); } - classificationEvaluationMetricsBuilder_ = + textSentimentEvaluationMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics, - com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics, + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics .Builder, - com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetricsOrBuilder>( - (com.google.cloud.automl.v1beta1.ClassificationProto - .ClassificationEvaluationMetrics) + com.google.cloud.automl.v1beta1.TextSentimentProto + .TextSentimentEvaluationMetricsOrBuilder>( + (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) metrics_, getParentForChildren(), isClean()); metrics_ = null; } - metricsCase_ = 8; + metricsCase_ = 11; onChanged(); ; - return classificationEvaluationMetricsBuilder_; + return textSentimentEvaluationMetricsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics, - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder, - com.google.cloud.automl.v1beta1.TranslationEvaluationMetricsOrBuilder> - translationEvaluationMetricsBuilder_; + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder> + textExtractionEvaluationMetricsBuilder_; /** * * *
-     * Evaluation metrics for models on translation models.
+     * Evaluation metrics for text extraction models.
      * 
* * - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; * */ - public boolean hasTranslationEvaluationMetrics() { - return metricsCase_ == 9; + public boolean hasTextExtractionEvaluationMetrics() { + return metricsCase_ == 13; } /** * * *
-     * Evaluation metrics for models on translation models.
+     * Evaluation metrics for text extraction models.
      * 
* * - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; * */ - public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics - getTranslationEvaluationMetrics() { - if (translationEvaluationMetricsBuilder_ == null) { - if (metricsCase_ == 9) { - return (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_; + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + getTextExtractionEvaluationMetrics() { + if (textExtractionEvaluationMetricsBuilder_ == null) { + if (metricsCase_ == 13) { + return (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) metrics_; } - return com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.getDefaultInstance(); } else { - if (metricsCase_ == 9) { - return translationEvaluationMetricsBuilder_.getMessage(); + if (metricsCase_ == 13) { + return textExtractionEvaluationMetricsBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.getDefaultInstance(); } } /** * * *
-     * Evaluation metrics for models on translation models.
+     * Evaluation metrics for text extraction models.
      * 
* * - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; * */ - public Builder setTranslationEvaluationMetrics( - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics value) { - if (translationEvaluationMetricsBuilder_ == null) { + public Builder setTextExtractionEvaluationMetrics( + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics value) { + if (textExtractionEvaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metrics_ = value; onChanged(); } else { - translationEvaluationMetricsBuilder_.setMessage(value); + textExtractionEvaluationMetricsBuilder_.setMessage(value); } - metricsCase_ = 9; + metricsCase_ = 13; return this; } /** * * *
-     * Evaluation metrics for models on translation models.
+     * Evaluation metrics for text extraction models.
      * 
* * - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; * */ - public Builder setTranslationEvaluationMetrics( - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder builderForValue) { - if (translationEvaluationMetricsBuilder_ == null) { + public Builder setTextExtractionEvaluationMetrics( + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder builderForValue) { + if (textExtractionEvaluationMetricsBuilder_ == null) { metrics_ = builderForValue.build(); onChanged(); } else { - translationEvaluationMetricsBuilder_.setMessage(builderForValue.build()); + textExtractionEvaluationMetricsBuilder_.setMessage(builderForValue.build()); } - metricsCase_ = 9; + metricsCase_ = 13; return this; } /** * * *
-     * Evaluation metrics for models on translation models.
+     * Evaluation metrics for text extraction models.
      * 
* * - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; * */ - public Builder mergeTranslationEvaluationMetrics( - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics value) { - if (translationEvaluationMetricsBuilder_ == null) { - if (metricsCase_ == 9 + public Builder mergeTextExtractionEvaluationMetrics( + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics value) { + if (textExtractionEvaluationMetricsBuilder_ == null) { + if (metricsCase_ == 13 && metrics_ - != com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics + != com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics .getDefaultInstance()) { metrics_ = - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.newBuilder( - (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_) + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.newBuilder( + (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) metrics_) .mergeFrom(value) .buildPartial(); } else { @@ -1314,38 +2860,38 @@ public Builder mergeTranslationEvaluationMetrics( } onChanged(); } else { - if (metricsCase_ == 9) { - translationEvaluationMetricsBuilder_.mergeFrom(value); + if (metricsCase_ == 13) { + textExtractionEvaluationMetricsBuilder_.mergeFrom(value); } - translationEvaluationMetricsBuilder_.setMessage(value); + textExtractionEvaluationMetricsBuilder_.setMessage(value); } - metricsCase_ = 9; + metricsCase_ = 13; return this; } /** * * *
-     * Evaluation metrics for models on translation models.
+     * Evaluation metrics for text extraction models.
      * 
* * - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; * */ - public Builder clearTranslationEvaluationMetrics() { - if (translationEvaluationMetricsBuilder_ == null) { - if (metricsCase_ == 9) { + public Builder clearTextExtractionEvaluationMetrics() { + if (textExtractionEvaluationMetricsBuilder_ == null) { + if (metricsCase_ == 13) { metricsCase_ = 0; metrics_ = null; onChanged(); } } else { - if (metricsCase_ == 9) { + if (metricsCase_ == 13) { metricsCase_ = 0; metrics_ = null; } - translationEvaluationMetricsBuilder_.clear(); + textExtractionEvaluationMetricsBuilder_.clear(); } return this; } @@ -1353,74 +2899,74 @@ public Builder clearTranslationEvaluationMetrics() { * * *
-     * Evaluation metrics for models on translation models.
+     * Evaluation metrics for text extraction models.
      * 
* * - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; * */ - public com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder - getTranslationEvaluationMetricsBuilder() { - return getTranslationEvaluationMetricsFieldBuilder().getBuilder(); + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder + getTextExtractionEvaluationMetricsBuilder() { + return getTextExtractionEvaluationMetricsFieldBuilder().getBuilder(); } /** * * *
-     * Evaluation metrics for models on translation models.
+     * Evaluation metrics for text extraction models.
      * 
* * - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; * */ - public com.google.cloud.automl.v1beta1.TranslationEvaluationMetricsOrBuilder - getTranslationEvaluationMetricsOrBuilder() { - if ((metricsCase_ == 9) && (translationEvaluationMetricsBuilder_ != null)) { - return translationEvaluationMetricsBuilder_.getMessageOrBuilder(); + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder + getTextExtractionEvaluationMetricsOrBuilder() { + if ((metricsCase_ == 13) && (textExtractionEvaluationMetricsBuilder_ != null)) { + return textExtractionEvaluationMetricsBuilder_.getMessageOrBuilder(); } else { - if (metricsCase_ == 9) { - return (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_; + if (metricsCase_ == 13) { + return (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) metrics_; } - return com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.getDefaultInstance(); } } /** * * *
-     * Evaluation metrics for models on translation models.
+     * Evaluation metrics for text extraction models.
      * 
* * - * .google.cloud.automl.v1beta1.TranslationEvaluationMetrics translation_evaluation_metrics = 9; + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics, - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder, - com.google.cloud.automl.v1beta1.TranslationEvaluationMetricsOrBuilder> - getTranslationEvaluationMetricsFieldBuilder() { - if (translationEvaluationMetricsBuilder_ == null) { - if (!(metricsCase_ == 9)) { + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder> + getTextExtractionEvaluationMetricsFieldBuilder() { + if (textExtractionEvaluationMetricsBuilder_ == null) { + if (!(metricsCase_ == 13)) { metrics_ = - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.getDefaultInstance(); + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.getDefaultInstance(); } - translationEvaluationMetricsBuilder_ = + textExtractionEvaluationMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics, - com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics.Builder, - com.google.cloud.automl.v1beta1.TranslationEvaluationMetricsOrBuilder>( - (com.google.cloud.automl.v1beta1.TranslationEvaluationMetrics) metrics_, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder>( + (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) metrics_, getParentForChildren(), isClean()); metrics_ = null; } - metricsCase_ = 9; + metricsCase_ = 13; onChanged(); ; - return translationEvaluationMetricsBuilder_; + return textExtractionEvaluationMetricsBuilder_; } private java.lang.Object name_ = ""; @@ -1539,7 +3085,10 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
      * Output only.
      * The ID of the annotation spec that the model evaluation applies to. The
-     * ID is empty for overall model evaluation.
+     * The ID is empty for the overall model evaluation.
+     * For Tables classification these are the distinct values of the target
+     * column at the moment of the evaluation; for this problem annotation specs
+     * in the dataset do not exist.
      * NOTE: Currently there is no way to obtain the display_name of the
      * annotation spec from its ID. To see the display_names, review the model
      * evaluations in the UI.
@@ -1564,7 +3113,10 @@ public java.lang.String getAnnotationSpecId() {
      * 
      * Output only.
      * The ID of the annotation spec that the model evaluation applies to. The
-     * ID is empty for overall model evaluation.
+     * The ID is empty for the overall model evaluation.
+     * For Tables classification these are the distinct values of the target
+     * column at the moment of the evaluation; for this problem annotation specs
+     * in the dataset do not exist.
      * NOTE: Currently there is no way to obtain the display_name of the
      * annotation spec from its ID. To see the display_names, review the model
      * evaluations in the UI.
@@ -1589,7 +3141,10 @@ public com.google.protobuf.ByteString getAnnotationSpecIdBytes() {
      * 
      * Output only.
      * The ID of the annotation spec that the model evaluation applies to. The
-     * ID is empty for overall model evaluation.
+     * The ID is empty for the overall model evaluation.
+     * For Tables classification these are the distinct values of the target
+     * column at the moment of the evaluation; for this problem annotation specs
+     * in the dataset do not exist.
      * NOTE: Currently there is no way to obtain the display_name of the
      * annotation spec from its ID. To see the display_names, review the model
      * evaluations in the UI.
@@ -1612,7 +3167,10 @@ public Builder setAnnotationSpecId(java.lang.String value) {
      * 
      * Output only.
      * The ID of the annotation spec that the model evaluation applies to. The
-     * ID is empty for overall model evaluation.
+     * The ID is empty for the overall model evaluation.
+     * For Tables classification these are the distinct values of the target
+     * column at the moment of the evaluation; for this problem annotation specs
+     * in the dataset do not exist.
      * NOTE: Currently there is no way to obtain the display_name of the
      * annotation spec from its ID. To see the display_names, review the model
      * evaluations in the UI.
@@ -1632,7 +3190,10 @@ public Builder clearAnnotationSpecId() {
      * 
      * Output only.
      * The ID of the annotation spec that the model evaluation applies to. The
-     * ID is empty for overall model evaluation.
+     * The ID is empty for the overall model evaluation.
+     * For Tables classification these are the distinct values of the target
+     * column at the moment of the evaluation; for this problem annotation specs
+     * in the dataset do not exist.
      * NOTE: Currently there is no way to obtain the display_name of the
      * annotation spec from its ID. To see the display_names, review the model
      * evaluations in the UI.
@@ -1651,6 +3212,125 @@ public Builder setAnnotationSpecIdBytes(com.google.protobuf.ByteString value) {
       return this;
     }
 
+    private java.lang.Object displayName_ = "";
+    /**
+     *
+     *
+     * 
+     * Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model
+     * was trained. Because this field returns a value at model training time,
+     * for different models trained using the same dataset, the returned value
+     * could be different as model owner could update the display_name between
+     * any two model training.
+     * The display_name is empty for the overall model evaluation.
+     * 
+ * + * string display_name = 15; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model
+     * was trained. Because this field returns a value at model training time,
+     * for different models trained using the same dataset, the returned value
+     * could be different as model owner could update the display_name between
+     * any two model training.
+     * The display_name is empty for the overall model evaluation.
+     * 
+ * + * string display_name = 15; + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model
+     * was trained. Because this field returns a value at model training time,
+     * for different models trained using the same dataset, the returned value
+     * could be different as model owner could update the display_name between
+     * any two model training.
+     * The display_name is empty for the overall model evaluation.
+     * 
+ * + * string display_name = 15; + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model
+     * was trained. Because this field returns a value at model training time,
+     * for different models trained using the same dataset, the returned value
+     * could be different as model owner could update the display_name between
+     * any two model training.
+     * The display_name is empty for the overall model evaluation.
+     * 
+ * + * string display_name = 15; + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model
+     * was trained. Because this field returns a value at model training time,
+     * for different models trained using the same dataset, the returned value
+     * could be different as model owner could update the display_name between
+     * any two model training.
+     * The display_name is empty for the overall model evaluation.
+     * 
+ * + * string display_name = 15; + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1844,7 +3524,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * Output only. The number of examples used for model evaluation.
+     * Output only.
+     * The number of examples used for model evaluation, i.e. for
+     * which ground truth from time of model creation is compared against the
+     * predicted annotations created by the model.
+     * For overall ModelEvaluation (i.e. with annotation_spec_id not set) this is
+     * the total number of all examples used for evaluation.
+     * Otherwise, this is the count of examples that according to the ground
+     * truth were annotated by the
+     * [annotation_spec_id][google.cloud.automl.v1beta1.ModelEvaluation.annotation_spec_id].
      * 
* * int32 evaluated_example_count = 6; @@ -1856,7 +3544,15 @@ public int getEvaluatedExampleCount() { * * *
-     * Output only. The number of examples used for model evaluation.
+     * Output only.
+     * The number of examples used for model evaluation, i.e. for
+     * which ground truth from time of model creation is compared against the
+     * predicted annotations created by the model.
+     * For overall ModelEvaluation (i.e. with annotation_spec_id not set) this is
+     * the total number of all examples used for evaluation.
+     * Otherwise, this is the count of examples that according to the ground
+     * truth were annotated by the
+     * [annotation_spec_id][google.cloud.automl.v1beta1.ModelEvaluation.annotation_spec_id].
      * 
* * int32 evaluated_example_count = 6; @@ -1871,7 +3567,15 @@ public Builder setEvaluatedExampleCount(int value) { * * *
-     * Output only. The number of examples used for model evaluation.
+     * Output only.
+     * The number of examples used for model evaluation, i.e. for
+     * which ground truth from time of model creation is compared against the
+     * predicted annotations created by the model.
+     * For overall ModelEvaluation (i.e. with annotation_spec_id not set) this is
+     * the total number of all examples used for evaluation.
+     * Otherwise, this is the count of examples that according to the ground
+     * truth were annotated by the
+     * [annotation_spec_id][google.cloud.automl.v1beta1.ModelEvaluation.annotation_spec_id].
      * 
* * int32 evaluated_example_count = 6; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOrBuilder.java index 4a2dfcde0a67..207140de6547 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOrBuilder.java @@ -12,7 +12,10 @@ public interface ModelEvaluationOrBuilder * * *
-   * Evaluation metrics for models on classification problems models.
+   * Model evaluation metrics for image, text, video and tables
+   * classification.
+   * Tables problem is considered a classification when the target column
+   * has either CATEGORY or ARRAY(CATEGORY) DataType.
    * 
* * @@ -24,7 +27,10 @@ public interface ModelEvaluationOrBuilder * * *
-   * Evaluation metrics for models on classification problems models.
+   * Model evaluation metrics for image, text, video and tables
+   * classification.
+   * Tables problem is considered a classification when the target column
+   * has either CATEGORY or ARRAY(CATEGORY) DataType.
    * 
* * @@ -37,7 +43,10 @@ public interface ModelEvaluationOrBuilder * * *
-   * Evaluation metrics for models on classification problems models.
+   * Model evaluation metrics for image, text, video and tables
+   * classification.
+   * Tables problem is considered a classification when the target column
+   * has either CATEGORY or ARRAY(CATEGORY) DataType.
    * 
* * @@ -51,7 +60,52 @@ public interface ModelEvaluationOrBuilder * * *
-   * Evaluation metrics for models on translation models.
+   * Model evaluation metrics for Tables regression.
+   * Tables problem is considered a regression when the target column
+   * has FLOAT64 DataType.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * + */ + boolean hasRegressionEvaluationMetrics(); + /** + * + * + *
+   * Model evaluation metrics for Tables regression.
+   * Tables problem is considered a regression when the target column
+   * has FLOAT64 DataType.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * + */ + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + getRegressionEvaluationMetrics(); + /** + * + * + *
+   * Model evaluation metrics for Tables regression.
+   * Tables problem is considered a regression when the target column
+   * has FLOAT64 DataType.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.RegressionEvaluationMetrics regression_evaluation_metrics = 24; + * + */ + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetricsOrBuilder + getRegressionEvaluationMetricsOrBuilder(); + + /** + * + * + *
+   * Model evaluation metrics for translation.
    * 
* * @@ -63,7 +117,7 @@ public interface ModelEvaluationOrBuilder * * *
-   * Evaluation metrics for models on translation models.
+   * Model evaluation metrics for translation.
    * 
* * @@ -75,7 +129,7 @@ public interface ModelEvaluationOrBuilder * * *
-   * Evaluation metrics for models on translation models.
+   * Model evaluation metrics for translation.
    * 
* * @@ -85,6 +139,123 @@ public interface ModelEvaluationOrBuilder com.google.cloud.automl.v1beta1.TranslationEvaluationMetricsOrBuilder getTranslationEvaluationMetricsOrBuilder(); + /** + * + * + *
+   * Model evaluation metrics for image object detection.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + */ + boolean hasImageObjectDetectionEvaluationMetrics(); + /** + * + * + *
+   * Model evaluation metrics for image object detection.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + */ + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics + getImageObjectDetectionEvaluationMetrics(); + /** + * + * + *
+   * Model evaluation metrics for image object detection.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + * + */ + com.google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetricsOrBuilder + getImageObjectDetectionEvaluationMetricsOrBuilder(); + + /** + * + * + *
+   * Evaluation metrics for text sentiment models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + */ + boolean hasTextSentimentEvaluationMetrics(); + /** + * + * + *
+   * Evaluation metrics for text sentiment models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + */ + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + getTextSentimentEvaluationMetrics(); + /** + * + * + *
+   * Evaluation metrics for text sentiment models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + * + */ + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetricsOrBuilder + getTextSentimentEvaluationMetricsOrBuilder(); + + /** + * + * + *
+   * Evaluation metrics for text extraction models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + */ + boolean hasTextExtractionEvaluationMetrics(); + /** + * + * + *
+   * Evaluation metrics for text extraction models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + */ + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + getTextExtractionEvaluationMetrics(); + /** + * + * + *
+   * Evaluation metrics for text extraction models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; + * + */ + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder + getTextExtractionEvaluationMetricsOrBuilder(); + /** * * @@ -118,7 +289,10 @@ public interface ModelEvaluationOrBuilder *
    * Output only.
    * The ID of the annotation spec that the model evaluation applies to. The
-   * ID is empty for overall model evaluation.
+   * The ID is empty for the overall model evaluation.
+   * For Tables classification these are the distinct values of the target
+   * column at the moment of the evaluation; for this problem annotation specs
+   * in the dataset do not exist.
    * NOTE: Currently there is no way to obtain the display_name of the
    * annotation spec from its ID. To see the display_names, review the model
    * evaluations in the UI.
@@ -133,7 +307,10 @@ public interface ModelEvaluationOrBuilder
    * 
    * Output only.
    * The ID of the annotation spec that the model evaluation applies to. The
-   * ID is empty for overall model evaluation.
+   * The ID is empty for the overall model evaluation.
+   * For Tables classification these are the distinct values of the target
+   * column at the moment of the evaluation; for this problem annotation specs
+   * in the dataset do not exist.
    * NOTE: Currently there is no way to obtain the display_name of the
    * annotation spec from its ID. To see the display_names, review the model
    * evaluations in the UI.
@@ -143,6 +320,37 @@ public interface ModelEvaluationOrBuilder
    */
   com.google.protobuf.ByteString getAnnotationSpecIdBytes();
 
+  /**
+   *
+   *
+   * 
+   * Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model
+   * was trained. Because this field returns a value at model training time,
+   * for different models trained using the same dataset, the returned value
+   * could be different as model owner could update the display_name between
+   * any two model training.
+   * The display_name is empty for the overall model evaluation.
+   * 
+ * + * string display_name = 15; + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model
+   * was trained. Because this field returns a value at model training time,
+   * for different models trained using the same dataset, the returned value
+   * could be different as model owner could update the display_name between
+   * any two model training.
+   * The display_name is empty for the overall model evaluation.
+   * 
+ * + * string display_name = 15; + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + /** * * @@ -181,7 +389,15 @@ public interface ModelEvaluationOrBuilder * * *
-   * Output only. The number of examples used for model evaluation.
+   * Output only.
+   * The number of examples used for model evaluation, i.e. for
+   * which ground truth from time of model creation is compared against the
+   * predicted annotations created by the model.
+   * For overall ModelEvaluation (i.e. with annotation_spec_id not set) this is
+   * the total number of all examples used for evaluation.
+   * Otherwise, this is the count of examples that according to the ground
+   * truth were annotated by the
+   * [annotation_spec_id][google.cloud.automl.v1beta1.ModelEvaluation.annotation_spec_id].
    * 
* * int32 evaluated_example_count = 6; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java index 76d2414bf314..7960d9d3469f 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelEvaluationOuterClass.java @@ -29,21 +29,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "uation.proto\022\033google.cloud.automl.v1beta" + "1\032\034google/api/annotations.proto\0320google/" + "cloud/automl/v1beta1/classification.prot" - + "o\032-google/cloud/automl/v1beta1/translati" - + "on.proto\032\037google/protobuf/timestamp.prot" - + "o\"\350\002\n\017ModelEvaluation\022i\n!classification_" - + "evaluation_metrics\030\010 \001(\0132<.google.cloud." - + "automl.v1beta1.ClassificationEvaluationM" - + "etricsH\000\022c\n\036translation_evaluation_metri" - + "cs\030\t \001(\01329.google.cloud.automl.v1beta1.T" - + "ranslationEvaluationMetricsH\000\022\014\n\004name\030\001 " - + "\001(\t\022\032\n\022annotation_spec_id\030\002 \001(\t\022/\n\013creat" - + "e_time\030\005 \001(\0132\032.google.protobuf.Timestamp" - + "\022\037\n\027evaluated_example_count\030\006 \001(\005B\t\n\007met" - + "ricsB\204\001\n\037com.google.cloud.automl.v1beta1" - + "P\001ZAgoogle.golang.org/genproto/googleapi" - + "s/cloud/automl/v1beta1;automl\312\002\033Google\\C" - + "loud\\AutoMl\\V1beta1b\006proto3" + + "o\032+google/cloud/automl/v1beta1/detection" + + ".proto\032,google/cloud/automl/v1beta1/regr" + + "ession.proto\032(google/cloud/automl/v1beta" + + "1/tables.proto\0321google/cloud/automl/v1be" + + "ta1/text_extraction.proto\0320google/cloud/" + + "automl/v1beta1/text_sentiment.proto\032-goo" + + "gle/cloud/automl/v1beta1/translation.pro" + + "to\032\037google/protobuf/timestamp.proto\"\260\006\n\017" + + "ModelEvaluation\022i\n!classification_evalua" + + "tion_metrics\030\010 \001(\0132<.google.cloud.automl" + + ".v1beta1.ClassificationEvaluationMetrics" + + "H\000\022a\n\035regression_evaluation_metrics\030\030 \001(" + + "\01328.google.cloud.automl.v1beta1.Regressi" + + "onEvaluationMetricsH\000\022c\n\036translation_eva" + + "luation_metrics\030\t \001(\01329.google.cloud.aut" + + "oml.v1beta1.TranslationEvaluationMetrics" + + "H\000\022w\n)image_object_detection_evaluation_" + + "metrics\030\014 \001(\0132B.google.cloud.automl.v1be" + + "ta1.ImageObjectDetectionEvaluationMetric" + + "sH\000\022h\n!text_sentiment_evaluation_metrics" + + "\030\013 \001(\0132;.google.cloud.automl.v1beta1.Tex" + + "tSentimentEvaluationMetricsH\000\022j\n\"text_ex" + + "traction_evaluation_metrics\030\r \001(\0132<.goog" + + "le.cloud.automl.v1beta1.TextExtractionEv" + + "aluationMetricsH\000\022\014\n\004name\030\001 \001(\t\022\032\n\022annot" + + "ation_spec_id\030\002 \001(\t\022\024\n\014display_name\030\017 \001(" + + "\t\022/\n\013create_time\030\005 \001(\0132\032.google.protobuf" + + ".Timestamp\022\037\n\027evaluated_example_count\030\006 " + + "\001(\005B\t\n\007metricsB\204\001\n\037com.google.cloud.auto" + + "ml.v1beta1P\001ZAgoogle.golang.org/genproto" + + "/googleapis/cloud/automl/v1beta1;automl\312" + + "\002\033Google\\Cloud\\AutoMl\\V1beta1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -58,6 +75,11 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(), + com.google.cloud.automl.v1beta1.Detection.getDescriptor(), + com.google.cloud.automl.v1beta1.RegressionProto.getDescriptor(), + com.google.cloud.automl.v1beta1.Tables.getDescriptor(), + com.google.cloud.automl.v1beta1.TextExtraction.getDescriptor(), + com.google.cloud.automl.v1beta1.TextSentimentProto.getDescriptor(), com.google.cloud.automl.v1beta1.TranslationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }, @@ -69,15 +91,25 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_cloud_automl_v1beta1_ModelEvaluation_descriptor, new java.lang.String[] { "ClassificationEvaluationMetrics", + "RegressionEvaluationMetrics", "TranslationEvaluationMetrics", + "ImageObjectDetectionEvaluationMetrics", + "TextSentimentEvaluationMetrics", + "TextExtractionEvaluationMetrics", "Name", "AnnotationSpecId", + "DisplayName", "CreateTime", "EvaluatedExampleCount", "Metrics", }); com.google.api.AnnotationsProto.getDescriptor(); com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(); + com.google.cloud.automl.v1beta1.Detection.getDescriptor(); + com.google.cloud.automl.v1beta1.RegressionProto.getDescriptor(); + com.google.cloud.automl.v1beta1.Tables.getDescriptor(); + com.google.cloud.automl.v1beta1.TextExtraction.getDescriptor(); + com.google.cloud.automl.v1beta1.TextSentimentProto.getDescriptor(); com.google.cloud.automl.v1beta1.TranslationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfig.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfig.java new file mode 100644 index 000000000000..16ea94e7352c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfig.java @@ -0,0 +1,1906 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/io.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Output configuration for ModelExport Action.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ModelExportOutputConfig} + */ +public final class ModelExportOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.ModelExportOutputConfig) + ModelExportOutputConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModelExportOutputConfig.newBuilder() to construct. + private ModelExportOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModelExportOutputConfig() { + modelFormat_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ModelExportOutputConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.automl.v1beta1.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = + ((com.google.cloud.automl.v1beta1.GcsDestination) destination_).toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.automl.v1beta1.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 1; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + params_ = + com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; + } + com.google.protobuf.MapEntry params__ = + input.readMessage( + ParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + params_.getMutableMap().put(params__.getKey(), params__.getValue()); + break; + } + case 26: + { + com.google.cloud.automl.v1beta1.GcrDestination.Builder subBuilder = null; + if (destinationCase_ == 3) { + subBuilder = + ((com.google.cloud.automl.v1beta1.GcrDestination) destination_).toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.automl.v1beta1.GcrDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.automl.v1beta1.GcrDestination) destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 3; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + modelFormat_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_ModelExportOutputConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 2: + return internalGetParams(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_ModelExportOutputConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ModelExportOutputConfig.class, + com.google.cloud.automl.v1beta1.ModelExportOutputConfig.Builder.class); + } + + private int bitField0_; + private int destinationCase_ = 0; + private java.lang.Object destination_; + + public enum DestinationCase implements com.google.protobuf.Internal.EnumLite { + GCS_DESTINATION(1), + GCR_DESTINATION(3), + DESTINATION_NOT_SET(0); + private final int value; + + private DestinationCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static DestinationCase valueOf(int value) { + return forNumber(value); + } + + public static DestinationCase forNumber(int value) { + switch (value) { + case 1: + return GCS_DESTINATION; + case 3: + return GCR_DESTINATION; + case 0: + return DESTINATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public static final int GCS_DESTINATION_FIELD_NUMBER = 1; + /** + * + * + *
+   * The Google Cloud Storage location where the model is to be written to.
+   * This location may only be set for the following model formats:
+   *   "tflite", "edgetpu_tflite", "core_ml", "docker".
+   *  Under the directory given as the destination a new one with name
+   *  "model-export-<model-display-name>-<timestamp-of-export-call>",
+   *  where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format,
+   *  will be created. Inside the model and any of its supporting files
+   *  will be written, as described
+   * [here](https:
+   * //cloud.google.com/vision/automl/alpha/d
+   * // ocs/predict#deployment_to_devices).
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + public boolean hasGcsDestination() { + return destinationCase_ == 1; + } + /** + * + * + *
+   * The Google Cloud Storage location where the model is to be written to.
+   * This location may only be set for the following model formats:
+   *   "tflite", "edgetpu_tflite", "core_ml", "docker".
+   *  Under the directory given as the destination a new one with name
+   *  "model-export-<model-display-name>-<timestamp-of-export-call>",
+   *  where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format,
+   *  will be created. Inside the model and any of its supporting files
+   *  will be written, as described
+   * [here](https:
+   * //cloud.google.com/vision/automl/alpha/d
+   * // ocs/predict#deployment_to_devices).
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + public com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination() { + if (destinationCase_ == 1) { + return (com.google.cloud.automl.v1beta1.GcsDestination) destination_; + } + return com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance(); + } + /** + * + * + *
+   * The Google Cloud Storage location where the model is to be written to.
+   * This location may only be set for the following model formats:
+   *   "tflite", "edgetpu_tflite", "core_ml", "docker".
+   *  Under the directory given as the destination a new one with name
+   *  "model-export-<model-display-name>-<timestamp-of-export-call>",
+   *  where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format,
+   *  will be created. Inside the model and any of its supporting files
+   *  will be written, as described
+   * [here](https:
+   * //cloud.google.com/vision/automl/alpha/d
+   * // ocs/predict#deployment_to_devices).
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { + if (destinationCase_ == 1) { + return (com.google.cloud.automl.v1beta1.GcsDestination) destination_; + } + return com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance(); + } + + public static final int GCR_DESTINATION_FIELD_NUMBER = 3; + /** + * + * + *
+   * The GCR location where model image is to be pushed to. This location
+   * may only be set for the following model formats:
+   *   "docker".
+   * The model image will be created under the given URI.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; + */ + public boolean hasGcrDestination() { + return destinationCase_ == 3; + } + /** + * + * + *
+   * The GCR location where model image is to be pushed to. This location
+   * may only be set for the following model formats:
+   *   "docker".
+   * The model image will be created under the given URI.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; + */ + public com.google.cloud.automl.v1beta1.GcrDestination getGcrDestination() { + if (destinationCase_ == 3) { + return (com.google.cloud.automl.v1beta1.GcrDestination) destination_; + } + return com.google.cloud.automl.v1beta1.GcrDestination.getDefaultInstance(); + } + /** + * + * + *
+   * The GCR location where model image is to be pushed to. This location
+   * may only be set for the following model formats:
+   *   "docker".
+   * The model image will be created under the given URI.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; + */ + public com.google.cloud.automl.v1beta1.GcrDestinationOrBuilder getGcrDestinationOrBuilder() { + if (destinationCase_ == 3) { + return (com.google.cloud.automl.v1beta1.GcrDestination) destination_; + } + return com.google.cloud.automl.v1beta1.GcrDestination.getDefaultInstance(); + } + + public static final int MODEL_FORMAT_FIELD_NUMBER = 4; + private volatile java.lang.Object modelFormat_; + /** + * + * + *
+   * The format in which the model must be exported. The available, and default,
+   * formats depend on the problem and model type (if given problem and type
+   * combination doesn't have a format listed, it means its models are not
+   * exportable):
+   * *  For Image Classification mobile-low-latency-1, mobile-versatile-1,
+   *        mobile-high-accuracy-1:
+   *      "tflite" (default), "edgetpu_tflite", "tf_saved_model", "docker".
+   * *  For Image Classification mobile-core-ml-low-latency-1,
+   *        mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1:
+   *      "core_ml" (default).
+   * Formats description:
+   * * tflite - Used for Android mobile devices.
+   * * edgetpu_tflite - Used for [Edge TPU](https://cloud.google.com/edge-tpu/)
+   *                    devices.
+   * * tf_saved_model - A tensorflow model in SavedModel format.
+   * * docker - Used for Docker containers. Use the params field to customize
+   *            the container. The container is verified to work correctly on
+   *            ubuntu 16.04 operating system.
+   * * core_ml - Used for iOS mobile devices.
+   * 
+ * + * string model_format = 4; + */ + public java.lang.String getModelFormat() { + java.lang.Object ref = modelFormat_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelFormat_ = s; + return s; + } + } + /** + * + * + *
+   * The format in which the model must be exported. The available, and default,
+   * formats depend on the problem and model type (if given problem and type
+   * combination doesn't have a format listed, it means its models are not
+   * exportable):
+   * *  For Image Classification mobile-low-latency-1, mobile-versatile-1,
+   *        mobile-high-accuracy-1:
+   *      "tflite" (default), "edgetpu_tflite", "tf_saved_model", "docker".
+   * *  For Image Classification mobile-core-ml-low-latency-1,
+   *        mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1:
+   *      "core_ml" (default).
+   * Formats description:
+   * * tflite - Used for Android mobile devices.
+   * * edgetpu_tflite - Used for [Edge TPU](https://cloud.google.com/edge-tpu/)
+   *                    devices.
+   * * tf_saved_model - A tensorflow model in SavedModel format.
+   * * docker - Used for Docker containers. Use the params field to customize
+   *            the container. The container is verified to work correctly on
+   *            ubuntu 16.04 operating system.
+   * * core_ml - Used for iOS mobile devices.
+   * 
+ * + * string model_format = 4; + */ + public com.google.protobuf.ByteString getModelFormatBytes() { + java.lang.Object ref = modelFormat_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelFormat_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMS_FIELD_NUMBER = 2; + + private static final class ParamsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_ModelExportOutputConfig_ParamsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { + if (params_ == null) { + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + } + return params_; + } + + public int getParamsCount() { + return internalGetParams().getMap().size(); + } + /** + * + * + *
+   * Additional model-type and format specific parameters describing the
+   * requirements for the to be exported model files, any string must be up to
+   * 25000 characters long.
+   *  * For `docker` format:
+   *     `cpu_architecture` - (string) "x86_64" (default).
+   *     `gpu_architecture` - (string) "none" (default), "nvidia".
+   * 
+ * + * map<string, string> params = 2; + */ + public boolean containsParams(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetParams().getMap().containsKey(key); + } + /** Use {@link #getParamsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getParams() { + return getParamsMap(); + } + /** + * + * + *
+   * Additional model-type and format specific parameters describing the
+   * requirements for the to be exported model files, any string must be up to
+   * 25000 characters long.
+   *  * For `docker` format:
+   *     `cpu_architecture` - (string) "x86_64" (default).
+   *     `gpu_architecture` - (string) "none" (default), "nvidia".
+   * 
+ * + * map<string, string> params = 2; + */ + public java.util.Map getParamsMap() { + return internalGetParams().getMap(); + } + /** + * + * + *
+   * Additional model-type and format specific parameters describing the
+   * requirements for the to be exported model files, any string must be up to
+   * 25000 characters long.
+   *  * For `docker` format:
+   *     `cpu_architecture` - (string) "x86_64" (default).
+   *     `gpu_architecture` - (string) "none" (default), "nvidia".
+   * 
+ * + * map<string, string> params = 2; + */ + public java.lang.String getParamsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetParams().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Additional model-type and format specific parameters describing the
+   * requirements for the to be exported model files, any string must be up to
+   * 25000 characters long.
+   *  * For `docker` format:
+   *     `cpu_architecture` - (string) "x86_64" (default).
+   *     `gpu_architecture` - (string) "none" (default), "nvidia".
+   * 
+ * + * map<string, string> params = 2; + */ + public java.lang.String getParamsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetParams().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (destinationCase_ == 1) { + output.writeMessage(1, (com.google.cloud.automl.v1beta1.GcsDestination) destination_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 2); + if (destinationCase_ == 3) { + output.writeMessage(3, (com.google.cloud.automl.v1beta1.GcrDestination) destination_); + } + if (!getModelFormatBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, modelFormat_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (destinationCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.automl.v1beta1.GcsDestination) destination_); + } + for (java.util.Map.Entry entry : + internalGetParams().getMap().entrySet()) { + com.google.protobuf.MapEntry params__ = + ParamsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, params__); + } + if (destinationCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.automl.v1beta1.GcrDestination) destination_); + } + if (!getModelFormatBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, modelFormat_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.ModelExportOutputConfig)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.ModelExportOutputConfig other = + (com.google.cloud.automl.v1beta1.ModelExportOutputConfig) obj; + + if (!getModelFormat().equals(other.getModelFormat())) return false; + if (!internalGetParams().equals(other.internalGetParams())) return false; + if (!getDestinationCase().equals(other.getDestinationCase())) return false; + switch (destinationCase_) { + case 1: + if (!getGcsDestination().equals(other.getGcsDestination())) return false; + break; + case 3: + if (!getGcrDestination().equals(other.getGcrDestination())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODEL_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + getModelFormat().hashCode(); + if (!internalGetParams().getMap().isEmpty()) { + hash = (37 * hash) + PARAMS_FIELD_NUMBER; + hash = (53 * hash) + internalGetParams().hashCode(); + } + switch (destinationCase_) { + case 1: + hash = (37 * hash) + GCS_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getGcsDestination().hashCode(); + break; + case 3: + hash = (37 * hash) + GCR_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getGcrDestination().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.ModelExportOutputConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ModelExportOutputConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ModelExportOutputConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ModelExportOutputConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ModelExportOutputConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.ModelExportOutputConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ModelExportOutputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ModelExportOutputConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ModelExportOutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ModelExportOutputConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.ModelExportOutputConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.ModelExportOutputConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.ModelExportOutputConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Output configuration for ModelExport Action.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.ModelExportOutputConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.ModelExportOutputConfig) + com.google.cloud.automl.v1beta1.ModelExportOutputConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_ModelExportOutputConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 2: + return internalGetParams(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 2: + return internalGetMutableParams(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_ModelExportOutputConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.ModelExportOutputConfig.class, + com.google.cloud.automl.v1beta1.ModelExportOutputConfig.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.ModelExportOutputConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + modelFormat_ = ""; + + internalGetMutableParams().clear(); + destinationCase_ = 0; + destination_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Io + .internal_static_google_cloud_automl_v1beta1_ModelExportOutputConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ModelExportOutputConfig getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.ModelExportOutputConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ModelExportOutputConfig build() { + com.google.cloud.automl.v1beta1.ModelExportOutputConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ModelExportOutputConfig buildPartial() { + com.google.cloud.automl.v1beta1.ModelExportOutputConfig result = + new com.google.cloud.automl.v1beta1.ModelExportOutputConfig(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (destinationCase_ == 1) { + if (gcsDestinationBuilder_ == null) { + result.destination_ = destination_; + } else { + result.destination_ = gcsDestinationBuilder_.build(); + } + } + if (destinationCase_ == 3) { + if (gcrDestinationBuilder_ == null) { + result.destination_ = destination_; + } else { + result.destination_ = gcrDestinationBuilder_.build(); + } + } + result.modelFormat_ = modelFormat_; + result.params_ = internalGetParams(); + result.params_.makeImmutable(); + result.bitField0_ = to_bitField0_; + result.destinationCase_ = destinationCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.ModelExportOutputConfig) { + return mergeFrom((com.google.cloud.automl.v1beta1.ModelExportOutputConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.ModelExportOutputConfig other) { + if (other == com.google.cloud.automl.v1beta1.ModelExportOutputConfig.getDefaultInstance()) + return this; + if (!other.getModelFormat().isEmpty()) { + modelFormat_ = other.modelFormat_; + onChanged(); + } + internalGetMutableParams().mergeFrom(other.internalGetParams()); + switch (other.getDestinationCase()) { + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case GCR_DESTINATION: + { + mergeGcrDestination(other.getGcrDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.ModelExportOutputConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.ModelExportOutputConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int destinationCase_ = 0; + private java.lang.Object destination_; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public Builder clearDestination() { + destinationCase_ = 0; + destination_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.GcsDestination, + com.google.cloud.automl.v1beta1.GcsDestination.Builder, + com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; + /** + * + * + *
+     * The Google Cloud Storage location where the model is to be written to.
+     * This location may only be set for the following model formats:
+     *   "tflite", "edgetpu_tflite", "core_ml", "docker".
+     *  Under the directory given as the destination a new one with name
+     *  "model-export-<model-display-name>-<timestamp-of-export-call>",
+     *  where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format,
+     *  will be created. Inside the model and any of its supporting files
+     *  will be written, as described
+     * [here](https:
+     * //cloud.google.com/vision/automl/alpha/d
+     * // ocs/predict#deployment_to_devices).
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + public boolean hasGcsDestination() { + return destinationCase_ == 1; + } + /** + * + * + *
+     * The Google Cloud Storage location where the model is to be written to.
+     * This location may only be set for the following model formats:
+     *   "tflite", "edgetpu_tflite", "core_ml", "docker".
+     *  Under the directory given as the destination a new one with name
+     *  "model-export-<model-display-name>-<timestamp-of-export-call>",
+     *  where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format,
+     *  will be created. Inside the model and any of its supporting files
+     *  will be written, as described
+     * [here](https:
+     * //cloud.google.com/vision/automl/alpha/d
+     * // ocs/predict#deployment_to_devices).
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + public com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination() { + if (gcsDestinationBuilder_ == null) { + if (destinationCase_ == 1) { + return (com.google.cloud.automl.v1beta1.GcsDestination) destination_; + } + return com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance(); + } else { + if (destinationCase_ == 1) { + return gcsDestinationBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * The Google Cloud Storage location where the model is to be written to.
+     * This location may only be set for the following model formats:
+     *   "tflite", "edgetpu_tflite", "core_ml", "docker".
+     *  Under the directory given as the destination a new one with name
+     *  "model-export-<model-display-name>-<timestamp-of-export-call>",
+     *  where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format,
+     *  will be created. Inside the model and any of its supporting files
+     *  will be written, as described
+     * [here](https:
+     * //cloud.google.com/vision/automl/alpha/d
+     * // ocs/predict#deployment_to_devices).
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + public Builder setGcsDestination(com.google.cloud.automl.v1beta1.GcsDestination value) { + if (gcsDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + gcsDestinationBuilder_.setMessage(value); + } + destinationCase_ = 1; + return this; + } + /** + * + * + *
+     * The Google Cloud Storage location where the model is to be written to.
+     * This location may only be set for the following model formats:
+     *   "tflite", "edgetpu_tflite", "core_ml", "docker".
+     *  Under the directory given as the destination a new one with name
+     *  "model-export-<model-display-name>-<timestamp-of-export-call>",
+     *  where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format,
+     *  will be created. Inside the model and any of its supporting files
+     *  will be written, as described
+     * [here](https:
+     * //cloud.google.com/vision/automl/alpha/d
+     * // ocs/predict#deployment_to_devices).
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + public Builder setGcsDestination( + com.google.cloud.automl.v1beta1.GcsDestination.Builder builderForValue) { + if (gcsDestinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + gcsDestinationBuilder_.setMessage(builderForValue.build()); + } + destinationCase_ = 1; + return this; + } + /** + * + * + *
+     * The Google Cloud Storage location where the model is to be written to.
+     * This location may only be set for the following model formats:
+     *   "tflite", "edgetpu_tflite", "core_ml", "docker".
+     *  Under the directory given as the destination a new one with name
+     *  "model-export-<model-display-name>-<timestamp-of-export-call>",
+     *  where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format,
+     *  will be created. Inside the model and any of its supporting files
+     *  will be written, as described
+     * [here](https:
+     * //cloud.google.com/vision/automl/alpha/d
+     * // ocs/predict#deployment_to_devices).
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + public Builder mergeGcsDestination(com.google.cloud.automl.v1beta1.GcsDestination value) { + if (gcsDestinationBuilder_ == null) { + if (destinationCase_ == 1 + && destination_ + != com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.automl.v1beta1.GcsDestination.newBuilder( + (com.google.cloud.automl.v1beta1.GcsDestination) destination_) + .mergeFrom(value) + .buildPartial(); + } else { + destination_ = value; + } + onChanged(); + } else { + if (destinationCase_ == 1) { + gcsDestinationBuilder_.mergeFrom(value); + } + gcsDestinationBuilder_.setMessage(value); + } + destinationCase_ = 1; + return this; + } + /** + * + * + *
+     * The Google Cloud Storage location where the model is to be written to.
+     * This location may only be set for the following model formats:
+     *   "tflite", "edgetpu_tflite", "core_ml", "docker".
+     *  Under the directory given as the destination a new one with name
+     *  "model-export-<model-display-name>-<timestamp-of-export-call>",
+     *  where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format,
+     *  will be created. Inside the model and any of its supporting files
+     *  will be written, as described
+     * [here](https:
+     * //cloud.google.com/vision/automl/alpha/d
+     * // ocs/predict#deployment_to_devices).
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + public Builder clearGcsDestination() { + if (gcsDestinationBuilder_ == null) { + if (destinationCase_ == 1) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + } else { + if (destinationCase_ == 1) { + destinationCase_ = 0; + destination_ = null; + } + gcsDestinationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Google Cloud Storage location where the model is to be written to.
+     * This location may only be set for the following model formats:
+     *   "tflite", "edgetpu_tflite", "core_ml", "docker".
+     *  Under the directory given as the destination a new one with name
+     *  "model-export-<model-display-name>-<timestamp-of-export-call>",
+     *  where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format,
+     *  will be created. Inside the model and any of its supporting files
+     *  will be written, as described
+     * [here](https:
+     * //cloud.google.com/vision/automl/alpha/d
+     * // ocs/predict#deployment_to_devices).
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + public com.google.cloud.automl.v1beta1.GcsDestination.Builder getGcsDestinationBuilder() { + return getGcsDestinationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The Google Cloud Storage location where the model is to be written to.
+     * This location may only be set for the following model formats:
+     *   "tflite", "edgetpu_tflite", "core_ml", "docker".
+     *  Under the directory given as the destination a new one with name
+     *  "model-export-<model-display-name>-<timestamp-of-export-call>",
+     *  where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format,
+     *  will be created. Inside the model and any of its supporting files
+     *  will be written, as described
+     * [here](https:
+     * //cloud.google.com/vision/automl/alpha/d
+     * // ocs/predict#deployment_to_devices).
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() { + if ((destinationCase_ == 1) && (gcsDestinationBuilder_ != null)) { + return gcsDestinationBuilder_.getMessageOrBuilder(); + } else { + if (destinationCase_ == 1) { + return (com.google.cloud.automl.v1beta1.GcsDestination) destination_; + } + return com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * The Google Cloud Storage location where the model is to be written to.
+     * This location may only be set for the following model formats:
+     *   "tflite", "edgetpu_tflite", "core_ml", "docker".
+     *  Under the directory given as the destination a new one with name
+     *  "model-export-<model-display-name>-<timestamp-of-export-call>",
+     *  where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format,
+     *  will be created. Inside the model and any of its supporting files
+     *  will be written, as described
+     * [here](https:
+     * //cloud.google.com/vision/automl/alpha/d
+     * // ocs/predict#deployment_to_devices).
+     * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.GcsDestination, + com.google.cloud.automl.v1beta1.GcsDestination.Builder, + com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder> + getGcsDestinationFieldBuilder() { + if (gcsDestinationBuilder_ == null) { + if (!(destinationCase_ == 1)) { + destination_ = com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance(); + } + gcsDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.GcsDestination, + com.google.cloud.automl.v1beta1.GcsDestination.Builder, + com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder>( + (com.google.cloud.automl.v1beta1.GcsDestination) destination_, + getParentForChildren(), + isClean()); + destination_ = null; + } + destinationCase_ = 1; + onChanged(); + ; + return gcsDestinationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.GcrDestination, + com.google.cloud.automl.v1beta1.GcrDestination.Builder, + com.google.cloud.automl.v1beta1.GcrDestinationOrBuilder> + gcrDestinationBuilder_; + /** + * + * + *
+     * The GCR location where model image is to be pushed to. This location
+     * may only be set for the following model formats:
+     *   "docker".
+     * The model image will be created under the given URI.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; + */ + public boolean hasGcrDestination() { + return destinationCase_ == 3; + } + /** + * + * + *
+     * The GCR location where model image is to be pushed to. This location
+     * may only be set for the following model formats:
+     *   "docker".
+     * The model image will be created under the given URI.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; + */ + public com.google.cloud.automl.v1beta1.GcrDestination getGcrDestination() { + if (gcrDestinationBuilder_ == null) { + if (destinationCase_ == 3) { + return (com.google.cloud.automl.v1beta1.GcrDestination) destination_; + } + return com.google.cloud.automl.v1beta1.GcrDestination.getDefaultInstance(); + } else { + if (destinationCase_ == 3) { + return gcrDestinationBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.GcrDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * The GCR location where model image is to be pushed to. This location
+     * may only be set for the following model formats:
+     *   "docker".
+     * The model image will be created under the given URI.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; + */ + public Builder setGcrDestination(com.google.cloud.automl.v1beta1.GcrDestination value) { + if (gcrDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + gcrDestinationBuilder_.setMessage(value); + } + destinationCase_ = 3; + return this; + } + /** + * + * + *
+     * The GCR location where model image is to be pushed to. This location
+     * may only be set for the following model formats:
+     *   "docker".
+     * The model image will be created under the given URI.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; + */ + public Builder setGcrDestination( + com.google.cloud.automl.v1beta1.GcrDestination.Builder builderForValue) { + if (gcrDestinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + gcrDestinationBuilder_.setMessage(builderForValue.build()); + } + destinationCase_ = 3; + return this; + } + /** + * + * + *
+     * The GCR location where model image is to be pushed to. This location
+     * may only be set for the following model formats:
+     *   "docker".
+     * The model image will be created under the given URI.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; + */ + public Builder mergeGcrDestination(com.google.cloud.automl.v1beta1.GcrDestination value) { + if (gcrDestinationBuilder_ == null) { + if (destinationCase_ == 3 + && destination_ + != com.google.cloud.automl.v1beta1.GcrDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.automl.v1beta1.GcrDestination.newBuilder( + (com.google.cloud.automl.v1beta1.GcrDestination) destination_) + .mergeFrom(value) + .buildPartial(); + } else { + destination_ = value; + } + onChanged(); + } else { + if (destinationCase_ == 3) { + gcrDestinationBuilder_.mergeFrom(value); + } + gcrDestinationBuilder_.setMessage(value); + } + destinationCase_ = 3; + return this; + } + /** + * + * + *
+     * The GCR location where model image is to be pushed to. This location
+     * may only be set for the following model formats:
+     *   "docker".
+     * The model image will be created under the given URI.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; + */ + public Builder clearGcrDestination() { + if (gcrDestinationBuilder_ == null) { + if (destinationCase_ == 3) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + } else { + if (destinationCase_ == 3) { + destinationCase_ = 0; + destination_ = null; + } + gcrDestinationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The GCR location where model image is to be pushed to. This location
+     * may only be set for the following model formats:
+     *   "docker".
+     * The model image will be created under the given URI.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; + */ + public com.google.cloud.automl.v1beta1.GcrDestination.Builder getGcrDestinationBuilder() { + return getGcrDestinationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The GCR location where model image is to be pushed to. This location
+     * may only be set for the following model formats:
+     *   "docker".
+     * The model image will be created under the given URI.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; + */ + public com.google.cloud.automl.v1beta1.GcrDestinationOrBuilder getGcrDestinationOrBuilder() { + if ((destinationCase_ == 3) && (gcrDestinationBuilder_ != null)) { + return gcrDestinationBuilder_.getMessageOrBuilder(); + } else { + if (destinationCase_ == 3) { + return (com.google.cloud.automl.v1beta1.GcrDestination) destination_; + } + return com.google.cloud.automl.v1beta1.GcrDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * The GCR location where model image is to be pushed to. This location
+     * may only be set for the following model formats:
+     *   "docker".
+     * The model image will be created under the given URI.
+     * 
+ * + * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.GcrDestination, + com.google.cloud.automl.v1beta1.GcrDestination.Builder, + com.google.cloud.automl.v1beta1.GcrDestinationOrBuilder> + getGcrDestinationFieldBuilder() { + if (gcrDestinationBuilder_ == null) { + if (!(destinationCase_ == 3)) { + destination_ = com.google.cloud.automl.v1beta1.GcrDestination.getDefaultInstance(); + } + gcrDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.GcrDestination, + com.google.cloud.automl.v1beta1.GcrDestination.Builder, + com.google.cloud.automl.v1beta1.GcrDestinationOrBuilder>( + (com.google.cloud.automl.v1beta1.GcrDestination) destination_, + getParentForChildren(), + isClean()); + destination_ = null; + } + destinationCase_ = 3; + onChanged(); + ; + return gcrDestinationBuilder_; + } + + private java.lang.Object modelFormat_ = ""; + /** + * + * + *
+     * The format in which the model must be exported. The available, and default,
+     * formats depend on the problem and model type (if given problem and type
+     * combination doesn't have a format listed, it means its models are not
+     * exportable):
+     * *  For Image Classification mobile-low-latency-1, mobile-versatile-1,
+     *        mobile-high-accuracy-1:
+     *      "tflite" (default), "edgetpu_tflite", "tf_saved_model", "docker".
+     * *  For Image Classification mobile-core-ml-low-latency-1,
+     *        mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1:
+     *      "core_ml" (default).
+     * Formats description:
+     * * tflite - Used for Android mobile devices.
+     * * edgetpu_tflite - Used for [Edge TPU](https://cloud.google.com/edge-tpu/)
+     *                    devices.
+     * * tf_saved_model - A tensorflow model in SavedModel format.
+     * * docker - Used for Docker containers. Use the params field to customize
+     *            the container. The container is verified to work correctly on
+     *            ubuntu 16.04 operating system.
+     * * core_ml - Used for iOS mobile devices.
+     * 
+ * + * string model_format = 4; + */ + public java.lang.String getModelFormat() { + java.lang.Object ref = modelFormat_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelFormat_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The format in which the model must be exported. The available, and default,
+     * formats depend on the problem and model type (if given problem and type
+     * combination doesn't have a format listed, it means its models are not
+     * exportable):
+     * *  For Image Classification mobile-low-latency-1, mobile-versatile-1,
+     *        mobile-high-accuracy-1:
+     *      "tflite" (default), "edgetpu_tflite", "tf_saved_model", "docker".
+     * *  For Image Classification mobile-core-ml-low-latency-1,
+     *        mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1:
+     *      "core_ml" (default).
+     * Formats description:
+     * * tflite - Used for Android mobile devices.
+     * * edgetpu_tflite - Used for [Edge TPU](https://cloud.google.com/edge-tpu/)
+     *                    devices.
+     * * tf_saved_model - A tensorflow model in SavedModel format.
+     * * docker - Used for Docker containers. Use the params field to customize
+     *            the container. The container is verified to work correctly on
+     *            ubuntu 16.04 operating system.
+     * * core_ml - Used for iOS mobile devices.
+     * 
+ * + * string model_format = 4; + */ + public com.google.protobuf.ByteString getModelFormatBytes() { + java.lang.Object ref = modelFormat_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelFormat_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The format in which the model must be exported. The available, and default,
+     * formats depend on the problem and model type (if given problem and type
+     * combination doesn't have a format listed, it means its models are not
+     * exportable):
+     * *  For Image Classification mobile-low-latency-1, mobile-versatile-1,
+     *        mobile-high-accuracy-1:
+     *      "tflite" (default), "edgetpu_tflite", "tf_saved_model", "docker".
+     * *  For Image Classification mobile-core-ml-low-latency-1,
+     *        mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1:
+     *      "core_ml" (default).
+     * Formats description:
+     * * tflite - Used for Android mobile devices.
+     * * edgetpu_tflite - Used for [Edge TPU](https://cloud.google.com/edge-tpu/)
+     *                    devices.
+     * * tf_saved_model - A tensorflow model in SavedModel format.
+     * * docker - Used for Docker containers. Use the params field to customize
+     *            the container. The container is verified to work correctly on
+     *            ubuntu 16.04 operating system.
+     * * core_ml - Used for iOS mobile devices.
+     * 
+ * + * string model_format = 4; + */ + public Builder setModelFormat(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + modelFormat_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The format in which the model must be exported. The available, and default,
+     * formats depend on the problem and model type (if given problem and type
+     * combination doesn't have a format listed, it means its models are not
+     * exportable):
+     * *  For Image Classification mobile-low-latency-1, mobile-versatile-1,
+     *        mobile-high-accuracy-1:
+     *      "tflite" (default), "edgetpu_tflite", "tf_saved_model", "docker".
+     * *  For Image Classification mobile-core-ml-low-latency-1,
+     *        mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1:
+     *      "core_ml" (default).
+     * Formats description:
+     * * tflite - Used for Android mobile devices.
+     * * edgetpu_tflite - Used for [Edge TPU](https://cloud.google.com/edge-tpu/)
+     *                    devices.
+     * * tf_saved_model - A tensorflow model in SavedModel format.
+     * * docker - Used for Docker containers. Use the params field to customize
+     *            the container. The container is verified to work correctly on
+     *            ubuntu 16.04 operating system.
+     * * core_ml - Used for iOS mobile devices.
+     * 
+ * + * string model_format = 4; + */ + public Builder clearModelFormat() { + + modelFormat_ = getDefaultInstance().getModelFormat(); + onChanged(); + return this; + } + /** + * + * + *
+     * The format in which the model must be exported. The available, and default,
+     * formats depend on the problem and model type (if given problem and type
+     * combination doesn't have a format listed, it means its models are not
+     * exportable):
+     * *  For Image Classification mobile-low-latency-1, mobile-versatile-1,
+     *        mobile-high-accuracy-1:
+     *      "tflite" (default), "edgetpu_tflite", "tf_saved_model", "docker".
+     * *  For Image Classification mobile-core-ml-low-latency-1,
+     *        mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1:
+     *      "core_ml" (default).
+     * Formats description:
+     * * tflite - Used for Android mobile devices.
+     * * edgetpu_tflite - Used for [Edge TPU](https://cloud.google.com/edge-tpu/)
+     *                    devices.
+     * * tf_saved_model - A tensorflow model in SavedModel format.
+     * * docker - Used for Docker containers. Use the params field to customize
+     *            the container. The container is verified to work correctly on
+     *            ubuntu 16.04 operating system.
+     * * core_ml - Used for iOS mobile devices.
+     * 
+ * + * string model_format = 4; + */ + public Builder setModelFormatBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + modelFormat_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField internalGetParams() { + if (params_ == null) { + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + } + return params_; + } + + private com.google.protobuf.MapField + internalGetMutableParams() { + onChanged(); + ; + if (params_ == null) { + params_ = com.google.protobuf.MapField.newMapField(ParamsDefaultEntryHolder.defaultEntry); + } + if (!params_.isMutable()) { + params_ = params_.copy(); + } + return params_; + } + + public int getParamsCount() { + return internalGetParams().getMap().size(); + } + /** + * + * + *
+     * Additional model-type and format specific parameters describing the
+     * requirements for the to be exported model files, any string must be up to
+     * 25000 characters long.
+     *  * For `docker` format:
+     *     `cpu_architecture` - (string) "x86_64" (default).
+     *     `gpu_architecture` - (string) "none" (default), "nvidia".
+     * 
+ * + * map<string, string> params = 2; + */ + public boolean containsParams(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetParams().getMap().containsKey(key); + } + /** Use {@link #getParamsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getParams() { + return getParamsMap(); + } + /** + * + * + *
+     * Additional model-type and format specific parameters describing the
+     * requirements for the to be exported model files, any string must be up to
+     * 25000 characters long.
+     *  * For `docker` format:
+     *     `cpu_architecture` - (string) "x86_64" (default).
+     *     `gpu_architecture` - (string) "none" (default), "nvidia".
+     * 
+ * + * map<string, string> params = 2; + */ + public java.util.Map getParamsMap() { + return internalGetParams().getMap(); + } + /** + * + * + *
+     * Additional model-type and format specific parameters describing the
+     * requirements for the to be exported model files, any string must be up to
+     * 25000 characters long.
+     *  * For `docker` format:
+     *     `cpu_architecture` - (string) "x86_64" (default).
+     *     `gpu_architecture` - (string) "none" (default), "nvidia".
+     * 
+ * + * map<string, string> params = 2; + */ + public java.lang.String getParamsOrDefault( + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetParams().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Additional model-type and format specific parameters describing the
+     * requirements for the to be exported model files, any string must be up to
+     * 25000 characters long.
+     *  * For `docker` format:
+     *     `cpu_architecture` - (string) "x86_64" (default).
+     *     `gpu_architecture` - (string) "none" (default), "nvidia".
+     * 
+ * + * map<string, string> params = 2; + */ + public java.lang.String getParamsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetParams().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearParams() { + internalGetMutableParams().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Additional model-type and format specific parameters describing the
+     * requirements for the to be exported model files, any string must be up to
+     * 25000 characters long.
+     *  * For `docker` format:
+     *     `cpu_architecture` - (string) "x86_64" (default).
+     *     `gpu_architecture` - (string) "none" (default), "nvidia".
+     * 
+ * + * map<string, string> params = 2; + */ + public Builder removeParams(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableParams().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableParams() { + return internalGetMutableParams().getMutableMap(); + } + /** + * + * + *
+     * Additional model-type and format specific parameters describing the
+     * requirements for the to be exported model files, any string must be up to
+     * 25000 characters long.
+     *  * For `docker` format:
+     *     `cpu_architecture` - (string) "x86_64" (default).
+     *     `gpu_architecture` - (string) "none" (default), "nvidia".
+     * 
+ * + * map<string, string> params = 2; + */ + public Builder putParams(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableParams().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Additional model-type and format specific parameters describing the
+     * requirements for the to be exported model files, any string must be up to
+     * 25000 characters long.
+     *  * For `docker` format:
+     *     `cpu_architecture` - (string) "x86_64" (default).
+     *     `gpu_architecture` - (string) "none" (default), "nvidia".
+     * 
+ * + * map<string, string> params = 2; + */ + public Builder putAllParams(java.util.Map values) { + internalGetMutableParams().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.ModelExportOutputConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.ModelExportOutputConfig) + private static final com.google.cloud.automl.v1beta1.ModelExportOutputConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.ModelExportOutputConfig(); + } + + public static com.google.cloud.automl.v1beta1.ModelExportOutputConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelExportOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ModelExportOutputConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.ModelExportOutputConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfigOrBuilder.java new file mode 100644 index 000000000000..bc9811150532 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelExportOutputConfigOrBuilder.java @@ -0,0 +1,250 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/io.proto + +package com.google.cloud.automl.v1beta1; + +public interface ModelExportOutputConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.ModelExportOutputConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Google Cloud Storage location where the model is to be written to.
+   * This location may only be set for the following model formats:
+   *   "tflite", "edgetpu_tflite", "core_ml", "docker".
+   *  Under the directory given as the destination a new one with name
+   *  "model-export-<model-display-name>-<timestamp-of-export-call>",
+   *  where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format,
+   *  will be created. Inside the model and any of its supporting files
+   *  will be written, as described
+   * [here](https:
+   * //cloud.google.com/vision/automl/alpha/d
+   * // ocs/predict#deployment_to_devices).
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + boolean hasGcsDestination(); + /** + * + * + *
+   * The Google Cloud Storage location where the model is to be written to.
+   * This location may only be set for the following model formats:
+   *   "tflite", "edgetpu_tflite", "core_ml", "docker".
+   *  Under the directory given as the destination a new one with name
+   *  "model-export-<model-display-name>-<timestamp-of-export-call>",
+   *  where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format,
+   *  will be created. Inside the model and any of its supporting files
+   *  will be written, as described
+   * [here](https:
+   * //cloud.google.com/vision/automl/alpha/d
+   * // ocs/predict#deployment_to_devices).
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination(); + /** + * + * + *
+   * The Google Cloud Storage location where the model is to be written to.
+   * This location may only be set for the following model formats:
+   *   "tflite", "edgetpu_tflite", "core_ml", "docker".
+   *  Under the directory given as the destination a new one with name
+   *  "model-export-<model-display-name>-<timestamp-of-export-call>",
+   *  where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format,
+   *  will be created. Inside the model and any of its supporting files
+   *  will be written, as described
+   * [here](https:
+   * //cloud.google.com/vision/automl/alpha/d
+   * // ocs/predict#deployment_to_devices).
+   * 
+ * + * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; + */ + com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); + + /** + * + * + *
+   * The GCR location where model image is to be pushed to. This location
+   * may only be set for the following model formats:
+   *   "docker".
+   * The model image will be created under the given URI.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; + */ + boolean hasGcrDestination(); + /** + * + * + *
+   * The GCR location where model image is to be pushed to. This location
+   * may only be set for the following model formats:
+   *   "docker".
+   * The model image will be created under the given URI.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; + */ + com.google.cloud.automl.v1beta1.GcrDestination getGcrDestination(); + /** + * + * + *
+   * The GCR location where model image is to be pushed to. This location
+   * may only be set for the following model formats:
+   *   "docker".
+   * The model image will be created under the given URI.
+   * 
+ * + * .google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3; + */ + com.google.cloud.automl.v1beta1.GcrDestinationOrBuilder getGcrDestinationOrBuilder(); + + /** + * + * + *
+   * The format in which the model must be exported. The available, and default,
+   * formats depend on the problem and model type (if given problem and type
+   * combination doesn't have a format listed, it means its models are not
+   * exportable):
+   * *  For Image Classification mobile-low-latency-1, mobile-versatile-1,
+   *        mobile-high-accuracy-1:
+   *      "tflite" (default), "edgetpu_tflite", "tf_saved_model", "docker".
+   * *  For Image Classification mobile-core-ml-low-latency-1,
+   *        mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1:
+   *      "core_ml" (default).
+   * Formats description:
+   * * tflite - Used for Android mobile devices.
+   * * edgetpu_tflite - Used for [Edge TPU](https://cloud.google.com/edge-tpu/)
+   *                    devices.
+   * * tf_saved_model - A tensorflow model in SavedModel format.
+   * * docker - Used for Docker containers. Use the params field to customize
+   *            the container. The container is verified to work correctly on
+   *            ubuntu 16.04 operating system.
+   * * core_ml - Used for iOS mobile devices.
+   * 
+ * + * string model_format = 4; + */ + java.lang.String getModelFormat(); + /** + * + * + *
+   * The format in which the model must be exported. The available, and default,
+   * formats depend on the problem and model type (if given problem and type
+   * combination doesn't have a format listed, it means its models are not
+   * exportable):
+   * *  For Image Classification mobile-low-latency-1, mobile-versatile-1,
+   *        mobile-high-accuracy-1:
+   *      "tflite" (default), "edgetpu_tflite", "tf_saved_model", "docker".
+   * *  For Image Classification mobile-core-ml-low-latency-1,
+   *        mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1:
+   *      "core_ml" (default).
+   * Formats description:
+   * * tflite - Used for Android mobile devices.
+   * * edgetpu_tflite - Used for [Edge TPU](https://cloud.google.com/edge-tpu/)
+   *                    devices.
+   * * tf_saved_model - A tensorflow model in SavedModel format.
+   * * docker - Used for Docker containers. Use the params field to customize
+   *            the container. The container is verified to work correctly on
+   *            ubuntu 16.04 operating system.
+   * * core_ml - Used for iOS mobile devices.
+   * 
+ * + * string model_format = 4; + */ + com.google.protobuf.ByteString getModelFormatBytes(); + + /** + * + * + *
+   * Additional model-type and format specific parameters describing the
+   * requirements for the to be exported model files, any string must be up to
+   * 25000 characters long.
+   *  * For `docker` format:
+   *     `cpu_architecture` - (string) "x86_64" (default).
+   *     `gpu_architecture` - (string) "none" (default), "nvidia".
+   * 
+ * + * map<string, string> params = 2; + */ + int getParamsCount(); + /** + * + * + *
+   * Additional model-type and format specific parameters describing the
+   * requirements for the to be exported model files, any string must be up to
+   * 25000 characters long.
+   *  * For `docker` format:
+   *     `cpu_architecture` - (string) "x86_64" (default).
+   *     `gpu_architecture` - (string) "none" (default), "nvidia".
+   * 
+ * + * map<string, string> params = 2; + */ + boolean containsParams(java.lang.String key); + /** Use {@link #getParamsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getParams(); + /** + * + * + *
+   * Additional model-type and format specific parameters describing the
+   * requirements for the to be exported model files, any string must be up to
+   * 25000 characters long.
+   *  * For `docker` format:
+   *     `cpu_architecture` - (string) "x86_64" (default).
+   *     `gpu_architecture` - (string) "none" (default), "nvidia".
+   * 
+ * + * map<string, string> params = 2; + */ + java.util.Map getParamsMap(); + /** + * + * + *
+   * Additional model-type and format specific parameters describing the
+   * requirements for the to be exported model files, any string must be up to
+   * 25000 characters long.
+   *  * For `docker` format:
+   *     `cpu_architecture` - (string) "x86_64" (default).
+   *     `gpu_architecture` - (string) "none" (default), "nvidia".
+   * 
+ * + * map<string, string> params = 2; + */ + java.lang.String getParamsOrDefault(java.lang.String key, java.lang.String defaultValue); + /** + * + * + *
+   * Additional model-type and format specific parameters describing the
+   * requirements for the to be exported model files, any string must be up to
+   * 25000 characters long.
+   *  * For `docker` format:
+   *     `cpu_architecture` - (string) "x86_64" (default).
+   *     `gpu_architecture` - (string) "none" (default), "nvidia".
+   * 
+ * + * map<string, string> params = 2; + */ + java.lang.String getParamsOrThrow(java.lang.String key); + + public com.google.cloud.automl.v1beta1.ModelExportOutputConfig.DestinationCase + getDestinationCase(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOrBuilder.java index 2956e67215ab..8f718dd1f1b3 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOrBuilder.java @@ -8,6 +8,41 @@ public interface ModelOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.Model) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Metadata for translation models.
+   * 
+ * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + */ + boolean hasTranslationModelMetadata(); + /** + * + * + *
+   * Metadata for translation models.
+   * 
+ * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + */ + com.google.cloud.automl.v1beta1.TranslationModelMetadata getTranslationModelMetadata(); + /** + * + * + *
+   * Metadata for translation models.
+   * 
+ * + * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + */ + com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder + getTranslationModelMetadataOrBuilder(); + /** * * @@ -90,36 +125,186 @@ public interface ModelOrBuilder * * *
-   * Metadata for translation models.
+   * Metadata for image object detection models.
    * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; * */ - boolean hasTranslationModelMetadata(); + boolean hasImageObjectDetectionModelMetadata(); /** * * *
-   * Metadata for translation models.
+   * Metadata for image object detection models.
    * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; * */ - com.google.cloud.automl.v1beta1.TranslationModelMetadata getTranslationModelMetadata(); + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata + getImageObjectDetectionModelMetadata(); /** * * *
-   * Metadata for translation models.
+   * Metadata for image object detection models.
    * 
* - * .google.cloud.automl.v1beta1.TranslationModelMetadata translation_model_metadata = 15; + * + * .google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; * */ - com.google.cloud.automl.v1beta1.TranslationModelMetadataOrBuilder - getTranslationModelMetadataOrBuilder(); + com.google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadataOrBuilder + getImageObjectDetectionModelMetadataOrBuilder(); + + /** + * + * + *
+   * Metadata for video classification models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + */ + boolean hasVideoClassificationModelMetadata(); + /** + * + * + *
+   * Metadata for video classification models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + */ + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata + getVideoClassificationModelMetadata(); + /** + * + * + *
+   * Metadata for video classification models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23; + * + */ + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadataOrBuilder + getVideoClassificationModelMetadataOrBuilder(); + + /** + * + * + *
+   * Metadata for text extraction models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + */ + boolean hasTextExtractionModelMetadata(); + /** + * + * + *
+   * Metadata for text extraction models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + */ + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata getTextExtractionModelMetadata(); + /** + * + * + *
+   * Metadata for text extraction models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextExtractionModelMetadata text_extraction_model_metadata = 19; + * + */ + com.google.cloud.automl.v1beta1.TextExtractionModelMetadataOrBuilder + getTextExtractionModelMetadataOrBuilder(); + + /** + * + * + *
+   * Metadata for Tables models.
+   * 
+ * + * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; + */ + boolean hasTablesModelMetadata(); + /** + * + * + *
+   * Metadata for Tables models.
+   * 
+ * + * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; + */ + com.google.cloud.automl.v1beta1.TablesModelMetadata getTablesModelMetadata(); + /** + * + * + *
+   * Metadata for Tables models.
+   * 
+ * + * .google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24; + */ + com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder getTablesModelMetadataOrBuilder(); + + /** + * + * + *
+   * Metadata for text sentiment models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + */ + boolean hasTextSentimentModelMetadata(); + /** + * + * + *
+   * Metadata for text sentiment models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + */ + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata getTextSentimentModelMetadata(); + /** + * + * + *
+   * Metadata for text sentiment models.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; + * + */ + com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder + getTextSentimentModelMetadataOrBuilder(); /** * @@ -151,9 +336,9 @@ public interface ModelOrBuilder * *
    * Required. The name of the model to show in the interface. The name can be
-   * up to 32 characters
-   * long and can consist only of ASCII Latin letters A-Z and a-z, underscores
-   * (_), and ASCII digits 0-9.
+   * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+   * and a-z, underscores
+   * (_), and ASCII digits 0-9. It must start with a letter.
    * 
* * string display_name = 2; @@ -164,9 +349,9 @@ public interface ModelOrBuilder * *
    * Required. The name of the model to show in the interface. The name can be
-   * up to 32 characters
-   * long and can consist only of ASCII Latin letters A-Z and a-z, underscores
-   * (_), and ASCII digits 0-9.
+   * up to 32 characters long and can consist only of ASCII Latin letters A-Z
+   * and a-z, underscores
+   * (_), and ASCII digits 0-9. It must start with a letter.
    * 
* * string display_name = 2; @@ -179,8 +364,7 @@ public interface ModelOrBuilder *
    * Required.
    * The resource ID of the dataset used to create the model. The dataset must
-   * come from the
-   * same ancestor project and location.
+   * come from the same ancestor project and location.
    * 
* * string dataset_id = 3; @@ -192,8 +376,7 @@ public interface ModelOrBuilder *
    * Required.
    * The resource ID of the dataset used to create the model. The dataset must
-   * come from the
-   * same ancestor project and location.
+   * come from the same ancestor project and location.
    * 
* * string dataset_id = 3; @@ -272,7 +455,8 @@ public interface ModelOrBuilder * * *
-   * Output only. Deployment state of the model.
+   * Output only. Deployment state of the model. A model can only serve
+   * prediction requests after it gets deployed.
    * 
* * .google.cloud.automl.v1beta1.Model.DeploymentState deployment_state = 8; @@ -282,7 +466,8 @@ public interface ModelOrBuilder * * *
-   * Output only. Deployment state of the model.
+   * Output only. Deployment state of the model. A model can only serve
+   * prediction requests after it gets deployed.
    * 
* * .google.cloud.automl.v1beta1.Model.DeploymentState deployment_state = 8; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java index bb0f8c9b5ca6..388c06dba61a 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/ModelOuterClass.java @@ -28,30 +28,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n\'google/cloud/automl/v1beta1/model.prot" + "o\022\033google.cloud.automl.v1beta1\032\034google/a" + "pi/annotations.proto\032\'google/cloud/autom" - + "l/v1beta1/image.proto\032&google/cloud/auto" - + "ml/v1beta1/text.proto\032-google/cloud/auto" - + "ml/v1beta1/translation.proto\032\037google/pro" - + "tobuf/timestamp.proto\"\213\005\n\005Model\022l\n#image" - + "_classification_model_metadata\030\r \001(\0132=.g" - + "oogle.cloud.automl.v1beta1.ImageClassifi" - + "cationModelMetadataH\000\022j\n\"text_classifica" - + "tion_model_metadata\030\016 \001(\0132<.google.cloud" - + ".automl.v1beta1.TextClassificationModelM" - + "etadataH\000\022[\n\032translation_model_metadata\030" - + "\017 \001(\01325.google.cloud.automl.v1beta1.Tran" - + "slationModelMetadataH\000\022\014\n\004name\030\001 \001(\t\022\024\n\014" - + "display_name\030\002 \001(\t\022\022\n\ndataset_id\030\003 \001(\t\022/" - + "\n\013create_time\030\007 \001(\0132\032.google.protobuf.Ti" - + "mestamp\022/\n\013update_time\030\013 \001(\0132\032.google.pr" - + "otobuf.Timestamp\022L\n\020deployment_state\030\010 \001" - + "(\01622.google.cloud.automl.v1beta1.Model.D" - + "eploymentState\"Q\n\017DeploymentState\022 \n\034DEP" - + "LOYMENT_STATE_UNSPECIFIED\020\000\022\014\n\010DEPLOYED\020" - + "\001\022\016\n\nUNDEPLOYED\020\002B\020\n\016model_metadataB\204\001\n\037" - + "com.google.cloud.automl.v1beta1P\001ZAgoogl" - + "e.golang.org/genproto/googleapis/cloud/a" - + "utoml/v1beta1;automl\312\002\033Google\\Cloud\\Auto" - + "Ml\\V1beta1b\006proto3" + + "l/v1beta1/image.proto\032(google/cloud/auto" + + "ml/v1beta1/tables.proto\032&google/cloud/au" + + "toml/v1beta1/text.proto\032-google/cloud/au" + + "toml/v1beta1/translation.proto\032\'google/c" + + "loud/automl/v1beta1/video.proto\032\037google/" + + "protobuf/timestamp.proto\"\203\t\n\005Model\022[\n\032tr" + + "anslation_model_metadata\030\017 \001(\01325.google." + + "cloud.automl.v1beta1.TranslationModelMet" + + "adataH\000\022l\n#image_classification_model_me" + + "tadata\030\r \001(\0132=.google.cloud.automl.v1bet" + + "a1.ImageClassificationModelMetadataH\000\022j\n" + + "\"text_classification_model_metadata\030\016 \001(" + + "\0132<.google.cloud.automl.v1beta1.TextClas" + + "sificationModelMetadataH\000\022o\n%image_objec" + + "t_detection_model_metadata\030\024 \001(\0132>.googl" + + "e.cloud.automl.v1beta1.ImageObjectDetect" + + "ionModelMetadataH\000\022l\n#video_classificati" + + "on_model_metadata\030\027 \001(\0132=.google.cloud.a" + + "utoml.v1beta1.VideoClassificationModelMe" + + "tadataH\000\022b\n\036text_extraction_model_metada" + + "ta\030\023 \001(\01328.google.cloud.automl.v1beta1.T" + + "extExtractionModelMetadataH\000\022Q\n\025tables_m" + + "odel_metadata\030\030 \001(\01320.google.cloud.autom" + + "l.v1beta1.TablesModelMetadataH\000\022`\n\035text_" + + "sentiment_model_metadata\030\026 \001(\01327.google." + + "cloud.automl.v1beta1.TextSentimentModelM" + + "etadataH\000\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030" + + "\002 \001(\t\022\022\n\ndataset_id\030\003 \001(\t\022/\n\013create_time" + + "\030\007 \001(\0132\032.google.protobuf.Timestamp\022/\n\013up" + + "date_time\030\013 \001(\0132\032.google.protobuf.Timest" + + "amp\022L\n\020deployment_state\030\010 \001(\01622.google.c" + + "loud.automl.v1beta1.Model.DeploymentStat" + + "e\"Q\n\017DeploymentState\022 \n\034DEPLOYMENT_STATE" + + "_UNSPECIFIED\020\000\022\014\n\010DEPLOYED\020\001\022\016\n\nUNDEPLOY" + + "ED\020\002B\020\n\016model_metadataB\204\001\n\037com.google.cl" + + "oud.automl.v1beta1P\001ZAgoogle.golang.org/" + + "genproto/googleapis/cloud/automl/v1beta1" + + ";automl\312\002\033Google\\Cloud\\AutoMl\\V1beta1b\006p" + + "roto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -66,8 +81,10 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), com.google.cloud.automl.v1beta1.ImageProto.getDescriptor(), + com.google.cloud.automl.v1beta1.Tables.getDescriptor(), com.google.cloud.automl.v1beta1.TextProto.getDescriptor(), com.google.cloud.automl.v1beta1.TranslationProto.getDescriptor(), + com.google.cloud.automl.v1beta1.VideoProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }, assigner); @@ -77,9 +94,14 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_Model_descriptor, new java.lang.String[] { + "TranslationModelMetadata", "ImageClassificationModelMetadata", "TextClassificationModelMetadata", - "TranslationModelMetadata", + "ImageObjectDetectionModelMetadata", + "VideoClassificationModelMetadata", + "TextExtractionModelMetadata", + "TablesModelMetadata", + "TextSentimentModelMetadata", "Name", "DisplayName", "DatasetId", @@ -90,8 +112,10 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( }); com.google.api.AnnotationsProto.getDescriptor(); com.google.cloud.automl.v1beta1.ImageProto.getDescriptor(); + com.google.cloud.automl.v1beta1.Tables.getDescriptor(); com.google.cloud.automl.v1beta1.TextProto.getDescriptor(); com.google.cloud.automl.v1beta1.TranslationProto.getDescriptor(); + com.google.cloud.automl.v1beta1.VideoProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertex.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertex.java new file mode 100644 index 000000000000..ef46f31ba142 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertex.java @@ -0,0 +1,603 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/geometry.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * A vertex represents a 2D point in the image.
+ * The normalized vertex coordinates are between 0 to 1 fractions relative to
+ * the original plane (image, video). E.g. if the plane (e.g. whole image) would
+ * have size 10 x 20 then a point with normalized coordinates (0.1, 0.3) would
+ * be at the position (1, 6) on that plane.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.NormalizedVertex} + */ +public final class NormalizedVertex extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.NormalizedVertex) + NormalizedVertexOrBuilder { + private static final long serialVersionUID = 0L; + // Use NormalizedVertex.newBuilder() to construct. + private NormalizedVertex(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NormalizedVertex() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NormalizedVertex( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + x_ = input.readFloat(); + break; + } + case 21: + { + y_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Geometry + .internal_static_google_cloud_automl_v1beta1_NormalizedVertex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Geometry + .internal_static_google_cloud_automl_v1beta1_NormalizedVertex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.NormalizedVertex.class, + com.google.cloud.automl.v1beta1.NormalizedVertex.Builder.class); + } + + public static final int X_FIELD_NUMBER = 1; + private float x_; + /** + * + * + *
+   * Required. Horizontal coordinate.
+   * 
+ * + * float x = 1; + */ + public float getX() { + return x_; + } + + public static final int Y_FIELD_NUMBER = 2; + private float y_; + /** + * + * + *
+   * Required. Vertical coordinate.
+   * 
+ * + * float y = 2; + */ + public float getY() { + return y_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (x_ != 0F) { + output.writeFloat(1, x_); + } + if (y_ != 0F) { + output.writeFloat(2, y_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (x_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); + } + if (y_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, y_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.NormalizedVertex)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.NormalizedVertex other = + (com.google.cloud.automl.v1beta1.NormalizedVertex) obj; + + if (java.lang.Float.floatToIntBits(getX()) != java.lang.Float.floatToIntBits(other.getX())) + return false; + if (java.lang.Float.floatToIntBits(getY()) != java.lang.Float.floatToIntBits(other.getY())) + return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + X_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getX()); + hash = (37 * hash) + Y_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getY()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.NormalizedVertex parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.NormalizedVertex parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.NormalizedVertex parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.NormalizedVertex parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.NormalizedVertex parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.NormalizedVertex parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.NormalizedVertex parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.NormalizedVertex parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.NormalizedVertex parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.NormalizedVertex parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.NormalizedVertex parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.NormalizedVertex parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.NormalizedVertex prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A vertex represents a 2D point in the image.
+   * The normalized vertex coordinates are between 0 to 1 fractions relative to
+   * the original plane (image, video). E.g. if the plane (e.g. whole image) would
+   * have size 10 x 20 then a point with normalized coordinates (0.1, 0.3) would
+   * be at the position (1, 6) on that plane.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.NormalizedVertex} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.NormalizedVertex) + com.google.cloud.automl.v1beta1.NormalizedVertexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Geometry + .internal_static_google_cloud_automl_v1beta1_NormalizedVertex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Geometry + .internal_static_google_cloud_automl_v1beta1_NormalizedVertex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.NormalizedVertex.class, + com.google.cloud.automl.v1beta1.NormalizedVertex.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.NormalizedVertex.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + x_ = 0F; + + y_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Geometry + .internal_static_google_cloud_automl_v1beta1_NormalizedVertex_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.NormalizedVertex getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.NormalizedVertex.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.NormalizedVertex build() { + com.google.cloud.automl.v1beta1.NormalizedVertex result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.NormalizedVertex buildPartial() { + com.google.cloud.automl.v1beta1.NormalizedVertex result = + new com.google.cloud.automl.v1beta1.NormalizedVertex(this); + result.x_ = x_; + result.y_ = y_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.NormalizedVertex) { + return mergeFrom((com.google.cloud.automl.v1beta1.NormalizedVertex) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.NormalizedVertex other) { + if (other == com.google.cloud.automl.v1beta1.NormalizedVertex.getDefaultInstance()) + return this; + if (other.getX() != 0F) { + setX(other.getX()); + } + if (other.getY() != 0F) { + setY(other.getY()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.NormalizedVertex parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.NormalizedVertex) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private float x_; + /** + * + * + *
+     * Required. Horizontal coordinate.
+     * 
+ * + * float x = 1; + */ + public float getX() { + return x_; + } + /** + * + * + *
+     * Required. Horizontal coordinate.
+     * 
+ * + * float x = 1; + */ + public Builder setX(float value) { + + x_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Horizontal coordinate.
+     * 
+ * + * float x = 1; + */ + public Builder clearX() { + + x_ = 0F; + onChanged(); + return this; + } + + private float y_; + /** + * + * + *
+     * Required. Vertical coordinate.
+     * 
+ * + * float y = 2; + */ + public float getY() { + return y_; + } + /** + * + * + *
+     * Required. Vertical coordinate.
+     * 
+ * + * float y = 2; + */ + public Builder setY(float value) { + + y_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Vertical coordinate.
+     * 
+ * + * float y = 2; + */ + public Builder clearY() { + + y_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.NormalizedVertex) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.NormalizedVertex) + private static final com.google.cloud.automl.v1beta1.NormalizedVertex DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.NormalizedVertex(); + } + + public static com.google.cloud.automl.v1beta1.NormalizedVertex getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NormalizedVertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NormalizedVertex(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.NormalizedVertex getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertexOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertexOrBuilder.java new file mode 100644 index 000000000000..ff48ad54b6a3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/NormalizedVertexOrBuilder.java @@ -0,0 +1,32 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/geometry.proto + +package com.google.cloud.automl.v1beta1; + +public interface NormalizedVertexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.NormalizedVertex) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Horizontal coordinate.
+   * 
+ * + * float x = 1; + */ + float getX(); + + /** + * + * + *
+   * Required. Vertical coordinate.
+   * 
+ * + * float y = 2; + */ + float getY(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadata.java index 50d5a3c579b7..7c7f81e025de 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadata.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadata.java @@ -52,9 +52,9 @@ private OperationMetadata( break; case 18: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000400) != 0)) { partialFailures_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000400; } partialFailures_.add( input.readMessage(com.google.rpc.Status.parser(), extensionRegistry)); @@ -88,6 +88,26 @@ private OperationMetadata( updateTime_ = subBuilder.buildPartial(); } + break; + } + case 66: + { + com.google.cloud.automl.v1beta1.DeleteOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 8) { + subBuilder = + ((com.google.cloud.automl.v1beta1.DeleteOperationMetadata) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.automl.v1beta1.DeleteOperationMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.DeleteOperationMetadata) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 8; break; } case 82: @@ -116,6 +136,154 @@ private OperationMetadata( progressPercent_ = input.readInt32(); break; } + case 122: + { + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 15) { + subBuilder = + ((com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 15; + break; + } + case 130: + { + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.Builder subBuilder = + null; + if (detailsCase_ == 16) { + subBuilder = + ((com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 16; + break; + } + case 170: + { + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.Builder subBuilder = null; + if (detailsCase_ == 21) { + subBuilder = + ((com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 21; + break; + } + case 178: + { + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.Builder subBuilder = + null; + if (detailsCase_ == 22) { + subBuilder = + ((com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 22; + break; + } + case 194: + { + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.Builder subBuilder = + null; + if (detailsCase_ == 24) { + subBuilder = + ((com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 24; + break; + } + case 202: + { + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.Builder subBuilder = + null; + if (detailsCase_ == 25) { + subBuilder = + ((com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 25; + break; + } + case 210: + { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder + subBuilder = null; + if (detailsCase_ == 26) { + subBuilder = + ((com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) + details_) + .toBuilder(); + } + details_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) + details_); + details_ = subBuilder.buildPartial(); + } + detailsCase_ = 26; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -130,7 +298,7 @@ private OperationMetadata( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000400) != 0)) { partialFailures_ = java.util.Collections.unmodifiableList(partialFailures_); } this.unknownFields = unknownFields.build(); @@ -158,7 +326,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private java.lang.Object details_; public enum DetailsCase implements com.google.protobuf.Internal.EnumLite { + DELETE_DETAILS(8), + DEPLOY_MODEL_DETAILS(24), + UNDEPLOY_MODEL_DETAILS(25), CREATE_MODEL_DETAILS(10), + IMPORT_DATA_DETAILS(15), + BATCH_PREDICT_DETAILS(16), + EXPORT_DATA_DETAILS(21), + EXPORT_MODEL_DETAILS(22), + EXPORT_EVALUATED_EXAMPLES_DETAILS(26), DETAILS_NOT_SET(0); private final int value; @@ -173,8 +349,24 @@ public static DetailsCase valueOf(int value) { public static DetailsCase forNumber(int value) { switch (value) { + case 8: + return DELETE_DETAILS; + case 24: + return DEPLOY_MODEL_DETAILS; + case 25: + return UNDEPLOY_MODEL_DETAILS; case 10: return CREATE_MODEL_DETAILS; + case 15: + return IMPORT_DATA_DETAILS; + case 16: + return BATCH_PREDICT_DETAILS; + case 21: + return EXPORT_DATA_DETAILS; + case 22: + return EXPORT_MODEL_DETAILS; + case 26: + return EXPORT_EVALUATED_EXAMPLES_DETAILS; case 0: return DETAILS_NOT_SET; default: @@ -191,825 +383,3185 @@ public DetailsCase getDetailsCase() { return DetailsCase.forNumber(detailsCase_); } - public static final int CREATE_MODEL_DETAILS_FIELD_NUMBER = 10; + public static final int DELETE_DETAILS_FIELD_NUMBER = 8; /** * * *
-   * Details of CreateModel operation.
+   * Details of a Delete operation.
    * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; - * + * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; */ - public boolean hasCreateModelDetails() { - return detailsCase_ == 10; + public boolean hasDeleteDetails() { + return detailsCase_ == 8; } /** * * *
-   * Details of CreateModel operation.
+   * Details of a Delete operation.
    * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; - * + * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; */ - public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata getCreateModelDetails() { - if (detailsCase_ == 10) { - return (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_; + public com.google.cloud.automl.v1beta1.DeleteOperationMetadata getDeleteDetails() { + if (detailsCase_ == 8) { + return (com.google.cloud.automl.v1beta1.DeleteOperationMetadata) details_; } - return com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.DeleteOperationMetadata.getDefaultInstance(); } /** * * *
-   * Details of CreateModel operation.
+   * Details of a Delete operation.
    * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; - * + * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; */ - public com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder - getCreateModelDetailsOrBuilder() { - if (detailsCase_ == 10) { - return (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_; + public com.google.cloud.automl.v1beta1.DeleteOperationMetadataOrBuilder + getDeleteDetailsOrBuilder() { + if (detailsCase_ == 8) { + return (com.google.cloud.automl.v1beta1.DeleteOperationMetadata) details_; } - return com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.DeleteOperationMetadata.getDefaultInstance(); } - public static final int PROGRESS_PERCENT_FIELD_NUMBER = 13; - private int progressPercent_; + public static final int DEPLOY_MODEL_DETAILS_FIELD_NUMBER = 24; /** * * *
-   * Output only. Progress of operation. Range: [0, 100].
+   * Details of a DeployModel operation.
    * 
* - * int32 progress_percent = 13; + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * */ - public int getProgressPercent() { - return progressPercent_; + public boolean hasDeployModelDetails() { + return detailsCase_ == 24; } - - public static final int PARTIAL_FAILURES_FIELD_NUMBER = 2; - private java.util.List partialFailures_; /** * * *
-   * 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.
+   * Details of a DeployModel operation.
    * 
* - * repeated .google.rpc.Status partial_failures = 2; + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * */ - public java.util.List getPartialFailuresList() { - return partialFailures_; + public com.google.cloud.automl.v1beta1.DeployModelOperationMetadata getDeployModelDetails() { + if (detailsCase_ == 24) { + return (com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.getDefaultInstance(); } /** * * *
-   * 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.
+   * Details of a DeployModel operation.
    * 
* - * repeated .google.rpc.Status partial_failures = 2; + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * */ - public java.util.List - getPartialFailuresOrBuilderList() { - return partialFailures_; + public com.google.cloud.automl.v1beta1.DeployModelOperationMetadataOrBuilder + getDeployModelDetailsOrBuilder() { + if (detailsCase_ == 24) { + return (com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.getDefaultInstance(); } + + public static final int UNDEPLOY_MODEL_DETAILS_FIELD_NUMBER = 25; /** * * *
-   * 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.
+   * Details of an UndeployModel operation.
    * 
* - * repeated .google.rpc.Status partial_failures = 2; + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * */ - public int getPartialFailuresCount() { - return partialFailures_.size(); + public boolean hasUndeployModelDetails() { + return detailsCase_ == 25; } /** * * *
-   * 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.
+   * Details of an UndeployModel operation.
    * 
* - * repeated .google.rpc.Status partial_failures = 2; + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * */ - public com.google.rpc.Status getPartialFailures(int index) { - return partialFailures_.get(index); + public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata getUndeployModelDetails() { + if (detailsCase_ == 25) { + return (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.getDefaultInstance(); } /** * * *
-   * 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.
+   * Details of an UndeployModel operation.
    * 
* - * repeated .google.rpc.Status partial_failures = 2; + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * */ - public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) { - return partialFailures_.get(index); + public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadataOrBuilder + getUndeployModelDetailsOrBuilder() { + if (detailsCase_ == 25) { + return (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.getDefaultInstance(); } - public static final int CREATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp createTime_; + public static final int CREATE_MODEL_DETAILS_FIELD_NUMBER = 10; /** * * *
-   * Output only. Time when the operation was created.
+   * Details of CreateModel operation.
    * 
* - * .google.protobuf.Timestamp create_time = 3; + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * */ - public boolean hasCreateTime() { - return createTime_ != null; + public boolean hasCreateModelDetails() { + return detailsCase_ == 10; } /** * * *
-   * Output only. Time when the operation was created.
+   * Details of CreateModel operation.
    * 
* - * .google.protobuf.Timestamp create_time = 3; + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * */ - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata getCreateModelDetails() { + if (detailsCase_ == 10) { + return (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance(); } /** * * *
-   * Output only. Time when the operation was created.
+   * Details of CreateModel operation.
    * 
* - * .google.protobuf.Timestamp create_time = 3; + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + public com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder + getCreateModelDetailsOrBuilder() { + if (detailsCase_ == 10) { + return (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance(); } - public static final int UPDATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp updateTime_; + public static final int IMPORT_DATA_DETAILS_FIELD_NUMBER = 15; /** * * *
-   * Output only. Time when the operation was updated for the last time.
+   * Details of ImportData operation.
    * 
* - * .google.protobuf.Timestamp update_time = 4; + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; */ - public boolean hasUpdateTime() { - return updateTime_ != null; + public boolean hasImportDataDetails() { + return detailsCase_ == 15; } /** * * *
-   * Output only. Time when the operation was updated for the last time.
+   * Details of ImportData operation.
    * 
* - * .google.protobuf.Timestamp update_time = 4; + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; */ - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + public com.google.cloud.automl.v1beta1.ImportDataOperationMetadata getImportDataDetails() { + if (detailsCase_ == 15) { + return (com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.getDefaultInstance(); } /** * * *
-   * Output only. Time when the operation was updated for the last time.
+   * Details of ImportData operation.
    * 
* - * .google.protobuf.Timestamp update_time = 4; + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + public com.google.cloud.automl.v1beta1.ImportDataOperationMetadataOrBuilder + getImportDataDetailsOrBuilder() { + if (detailsCase_ == 15) { + return (com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.getDefaultInstance(); } - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + public static final int BATCH_PREDICT_DETAILS_FIELD_NUMBER = 16; + /** + * + * + *
+   * Details of BatchPredict operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * + */ + public boolean hasBatchPredictDetails() { + return detailsCase_ == 16; } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < partialFailures_.size(); i++) { - output.writeMessage(2, partialFailures_.get(i)); - } - if (createTime_ != null) { - output.writeMessage(3, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(4, getUpdateTime()); - } - if (detailsCase_ == 10) { - output.writeMessage( - 10, (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_); - } - if (progressPercent_ != 0) { - output.writeInt32(13, progressPercent_); + /** + * + * + *
+   * Details of BatchPredict operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * + */ + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata getBatchPredictDetails() { + if (detailsCase_ == 16) { + return (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) details_; } - unknownFields.writeTo(output); + return com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.getDefaultInstance(); } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < partialFailures_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, partialFailures_.get(i)); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); - } - if (detailsCase_ == 10) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_); - } - if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, progressPercent_); + /** + * + * + *
+   * Details of BatchPredict operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * + */ + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadataOrBuilder + getBatchPredictDetailsOrBuilder() { + if (detailsCase_ == 16) { + return (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) details_; } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; + return com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.getDefaultInstance(); } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.automl.v1beta1.OperationMetadata)) { - return super.equals(obj); - } - com.google.cloud.automl.v1beta1.OperationMetadata other = - (com.google.cloud.automl.v1beta1.OperationMetadata) obj; - - if (getProgressPercent() != other.getProgressPercent()) return false; - if (!getPartialFailuresList().equals(other.getPartialFailuresList())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!getDetailsCase().equals(other.getDetailsCase())) return false; - switch (detailsCase_) { - case 10: - if (!getCreateModelDetails().equals(other.getCreateModelDetails())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; + public static final int EXPORT_DATA_DETAILS_FIELD_NUMBER = 21; + /** + * + * + *
+   * Details of ExportData operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + */ + public boolean hasExportDataDetails() { + return detailsCase_ == 21; } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROGRESS_PERCENT_FIELD_NUMBER; - hash = (53 * hash) + getProgressPercent(); - if (getPartialFailuresCount() > 0) { - hash = (37 * hash) + PARTIAL_FAILURES_FIELD_NUMBER; - hash = (53 * hash) + getPartialFailuresList().hashCode(); - } - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - switch (detailsCase_) { - case 10: - hash = (37 * hash) + CREATE_MODEL_DETAILS_FIELD_NUMBER; - hash = (53 * hash) + getCreateModelDetails().hashCode(); - break; - case 0: - default: + /** + * + * + *
+   * Details of ExportData operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + */ + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata getExportDataDetails() { + if (detailsCase_ == 21) { + return (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) details_; } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.getDefaultInstance(); } - - public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
+   * Details of ExportData operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + */ + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadataOrBuilder + getExportDataDetailsOrBuilder() { + if (detailsCase_ == 21) { + return (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.getDefaultInstance(); } - public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + public static final int EXPORT_MODEL_DETAILS_FIELD_NUMBER = 22; + /** + * + * + *
+   * Details of ExportModel operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * + */ + public boolean hasExportModelDetails() { + return detailsCase_ == 22; } - - public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
+   * Details of ExportModel operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * + */ + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata getExportModelDetails() { + if (detailsCase_ == 22) { + return (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.getDefaultInstance(); } - - public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + /** + * + * + *
+   * Details of ExportModel operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * + */ + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadataOrBuilder + getExportModelDetailsOrBuilder() { + if (detailsCase_ == 22) { + return (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.getDefaultInstance(); } - public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + public static final int EXPORT_EVALUATED_EXAMPLES_DETAILS_FIELD_NUMBER = 26; + /** + * + * + *
+   * Details of ExportEvaluatedExamples operation.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + */ + public boolean hasExportEvaluatedExamplesDetails() { + return detailsCase_ == 26; } - - public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + /** + * + * + *
+   * Details of ExportEvaluatedExamples operation.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + */ + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + getExportEvaluatedExamplesDetails() { + if (detailsCase_ == 26) { + return (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .getDefaultInstance(); } - - public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
+   * Details of ExportEvaluatedExamples operation.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + */ + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder + getExportEvaluatedExamplesDetailsOrBuilder() { + if (detailsCase_ == 26) { + return (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .getDefaultInstance(); } - public static com.google.cloud.automl.v1beta1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static final int PROGRESS_PERCENT_FIELD_NUMBER = 13; + private int progressPercent_; + /** + * + * + *
+   * Output only. Progress of operation. Range: [0, 100].
+   * Not used currently.
+   * 
+ * + * int32 progress_percent = 13; + */ + public int getProgressPercent() { + return progressPercent_; } - public static com.google.cloud.automl.v1beta1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static final int PARTIAL_FAILURES_FIELD_NUMBER = 2; + private java.util.List partialFailures_; + /** + * + * + *
+   * 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; + */ + public java.util.List getPartialFailuresList() { + return partialFailures_; } - - public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + /** + * + * + *
+   * 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; + */ + public java.util.List + getPartialFailuresOrBuilderList() { + return partialFailures_; } - - public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
+   * 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; + */ + public int getPartialFailuresCount() { + return partialFailures_.size(); } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + /** + * + * + *
+   * 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; + */ + public com.google.rpc.Status getPartialFailures(int index) { + return partialFailures_.get(index); } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + /** + * + * + *
+   * 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; + */ + public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) { + return partialFailures_.get(index); } - public static Builder newBuilder(com.google.cloud.automl.v1beta1.OperationMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Time when the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3; + */ + public boolean hasCreateTime() { + return createTime_ != null; } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + /** + * + * + *
+   * Output only. Time when the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3; + */ + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Time when the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Time when the operation was updated for the last time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public boolean hasUpdateTime() { + return updateTime_ != null; } /** * * *
-   * Metadata used across all long running operations returned by AutoML API.
+   * Output only. Time when the operation was updated for the last time.
    * 
* - * Protobuf type {@code google.cloud.automl.v1beta1.OperationMetadata} + * .google.protobuf.Timestamp update_time = 4; */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.OperationMetadata) - com.google.cloud.automl.v1beta1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.automl.v1beta1.Operations - .internal_static_google_cloud_automl_v1beta1_OperationMetadata_descriptor; - } + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Time when the operation was updated for the last time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.automl.v1beta1.Operations - .internal_static_google_cloud_automl_v1beta1_OperationMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.automl.v1beta1.OperationMetadata.class, - com.google.cloud.automl.v1beta1.OperationMetadata.Builder.class); - } + private byte memoizedIsInitialized = -1; - // Construct using com.google.cloud.automl.v1beta1.OperationMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + memoizedIsInitialized = 1; + return true; + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPartialFailuresFieldBuilder(); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < partialFailures_.size(); i++) { + output.writeMessage(2, partialFailures_.get(i)); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(4, getUpdateTime()); + } + if (detailsCase_ == 8) { + output.writeMessage(8, (com.google.cloud.automl.v1beta1.DeleteOperationMetadata) details_); + } + if (detailsCase_ == 10) { + output.writeMessage( + 10, (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_); + } + if (progressPercent_ != 0) { + output.writeInt32(13, progressPercent_); + } + if (detailsCase_ == 15) { + output.writeMessage( + 15, (com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) details_); + } + if (detailsCase_ == 16) { + output.writeMessage( + 16, (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) details_); + } + if (detailsCase_ == 21) { + output.writeMessage( + 21, (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) details_); + } + if (detailsCase_ == 22) { + output.writeMessage( + 22, (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) details_); + } + if (detailsCase_ == 24) { + output.writeMessage( + 24, (com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) details_); + } + if (detailsCase_ == 25) { + output.writeMessage( + 25, (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) details_); + } + if (detailsCase_ == 26) { + output.writeMessage( + 26, (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) details_); } + unknownFields.writeTo(output); + } - @java.lang.Override - public Builder clear() { - super.clear(); - progressPercent_ = 0; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - if (partialFailuresBuilder_ == null) { - partialFailures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - partialFailuresBuilder_.clear(); - } - if (createTimeBuilder_ == null) { + size = 0; + for (int i = 0; i < partialFailures_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, partialFailures_.get(i)); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (detailsCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.automl.v1beta1.DeleteOperationMetadata) details_); + } + if (detailsCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_); + } + if (progressPercent_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(13, progressPercent_); + } + if (detailsCase_ == 15) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, (com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) details_); + } + if (detailsCase_ == 16) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) details_); + } + if (detailsCase_ == 21) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 21, (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) details_); + } + if (detailsCase_ == 22) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) details_); + } + if (detailsCase_ == 24) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 24, (com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) details_); + } + if (detailsCase_ == 25) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 25, (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) details_); + } + if (detailsCase_ == 26) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 26, + (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) details_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.OperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.OperationMetadata other = + (com.google.cloud.automl.v1beta1.OperationMetadata) obj; + + if (getProgressPercent() != other.getProgressPercent()) return false; + if (!getPartialFailuresList().equals(other.getPartialFailuresList())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getDetailsCase().equals(other.getDetailsCase())) return false; + switch (detailsCase_) { + case 8: + if (!getDeleteDetails().equals(other.getDeleteDetails())) return false; + break; + case 24: + if (!getDeployModelDetails().equals(other.getDeployModelDetails())) return false; + break; + case 25: + if (!getUndeployModelDetails().equals(other.getUndeployModelDetails())) return false; + break; + case 10: + if (!getCreateModelDetails().equals(other.getCreateModelDetails())) return false; + break; + case 15: + if (!getImportDataDetails().equals(other.getImportDataDetails())) return false; + break; + case 16: + if (!getBatchPredictDetails().equals(other.getBatchPredictDetails())) return false; + break; + case 21: + if (!getExportDataDetails().equals(other.getExportDataDetails())) return false; + break; + case 22: + if (!getExportModelDetails().equals(other.getExportModelDetails())) return false; + break; + case 26: + if (!getExportEvaluatedExamplesDetails().equals(other.getExportEvaluatedExamplesDetails())) + return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROGRESS_PERCENT_FIELD_NUMBER; + hash = (53 * hash) + getProgressPercent(); + if (getPartialFailuresCount() > 0) { + hash = (37 * hash) + PARTIAL_FAILURES_FIELD_NUMBER; + hash = (53 * hash) + getPartialFailuresList().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + switch (detailsCase_) { + case 8: + hash = (37 * hash) + DELETE_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getDeleteDetails().hashCode(); + break; + case 24: + hash = (37 * hash) + DEPLOY_MODEL_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getDeployModelDetails().hashCode(); + break; + case 25: + hash = (37 * hash) + UNDEPLOY_MODEL_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getUndeployModelDetails().hashCode(); + break; + case 10: + hash = (37 * hash) + CREATE_MODEL_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getCreateModelDetails().hashCode(); + break; + case 15: + hash = (37 * hash) + IMPORT_DATA_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getImportDataDetails().hashCode(); + break; + case 16: + hash = (37 * hash) + BATCH_PREDICT_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getBatchPredictDetails().hashCode(); + break; + case 21: + hash = (37 * hash) + EXPORT_DATA_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getExportDataDetails().hashCode(); + break; + case 22: + hash = (37 * hash) + EXPORT_MODEL_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getExportModelDetails().hashCode(); + break; + case 26: + hash = (37 * hash) + EXPORT_EVALUATED_EXAMPLES_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getExportEvaluatedExamplesDetails().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.OperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Metadata used across all long running operations returned by AutoML API.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.OperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.OperationMetadata) + com.google.cloud.automl.v1beta1.OperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.OperationMetadata.class, + com.google.cloud.automl.v1beta1.OperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.OperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPartialFailuresFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + progressPercent_ = 0; + + if (partialFailuresBuilder_ == null) { + partialFailures_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + } else { + partialFailuresBuilder_.clear(); + } + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + detailsCase_ = 0; + details_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_OperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.OperationMetadata getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.OperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.OperationMetadata build() { + com.google.cloud.automl.v1beta1.OperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.OperationMetadata buildPartial() { + com.google.cloud.automl.v1beta1.OperationMetadata result = + new com.google.cloud.automl.v1beta1.OperationMetadata(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (detailsCase_ == 8) { + if (deleteDetailsBuilder_ == null) { + result.details_ = details_; + } else { + result.details_ = deleteDetailsBuilder_.build(); + } + } + if (detailsCase_ == 24) { + if (deployModelDetailsBuilder_ == null) { + result.details_ = details_; + } else { + result.details_ = deployModelDetailsBuilder_.build(); + } + } + if (detailsCase_ == 25) { + if (undeployModelDetailsBuilder_ == null) { + result.details_ = details_; + } else { + result.details_ = undeployModelDetailsBuilder_.build(); + } + } + if (detailsCase_ == 10) { + if (createModelDetailsBuilder_ == null) { + result.details_ = details_; + } else { + result.details_ = createModelDetailsBuilder_.build(); + } + } + if (detailsCase_ == 15) { + if (importDataDetailsBuilder_ == null) { + result.details_ = details_; + } else { + result.details_ = importDataDetailsBuilder_.build(); + } + } + if (detailsCase_ == 16) { + if (batchPredictDetailsBuilder_ == null) { + result.details_ = details_; + } else { + result.details_ = batchPredictDetailsBuilder_.build(); + } + } + if (detailsCase_ == 21) { + if (exportDataDetailsBuilder_ == null) { + result.details_ = details_; + } else { + result.details_ = exportDataDetailsBuilder_.build(); + } + } + if (detailsCase_ == 22) { + if (exportModelDetailsBuilder_ == null) { + result.details_ = details_; + } else { + result.details_ = exportModelDetailsBuilder_.build(); + } + } + if (detailsCase_ == 26) { + if (exportEvaluatedExamplesDetailsBuilder_ == null) { + result.details_ = details_; + } else { + result.details_ = exportEvaluatedExamplesDetailsBuilder_.build(); + } + } + result.progressPercent_ = progressPercent_; + if (partialFailuresBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + partialFailures_ = java.util.Collections.unmodifiableList(partialFailures_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.partialFailures_ = partialFailures_; + } else { + result.partialFailures_ = partialFailuresBuilder_.build(); + } + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + result.detailsCase_ = detailsCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.OperationMetadata) { + return mergeFrom((com.google.cloud.automl.v1beta1.OperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.OperationMetadata other) { + if (other == com.google.cloud.automl.v1beta1.OperationMetadata.getDefaultInstance()) + return this; + if (other.getProgressPercent() != 0) { + setProgressPercent(other.getProgressPercent()); + } + if (partialFailuresBuilder_ == null) { + if (!other.partialFailures_.isEmpty()) { + if (partialFailures_.isEmpty()) { + partialFailures_ = other.partialFailures_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensurePartialFailuresIsMutable(); + partialFailures_.addAll(other.partialFailures_); + } + onChanged(); + } + } else { + if (!other.partialFailures_.isEmpty()) { + if (partialFailuresBuilder_.isEmpty()) { + partialFailuresBuilder_.dispose(); + partialFailuresBuilder_ = null; + partialFailures_ = other.partialFailures_; + bitField0_ = (bitField0_ & ~0x00000400); + partialFailuresBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartialFailuresFieldBuilder() + : null; + } else { + partialFailuresBuilder_.addAllMessages(other.partialFailures_); + } + } + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + switch (other.getDetailsCase()) { + case DELETE_DETAILS: + { + mergeDeleteDetails(other.getDeleteDetails()); + break; + } + case DEPLOY_MODEL_DETAILS: + { + mergeDeployModelDetails(other.getDeployModelDetails()); + break; + } + case UNDEPLOY_MODEL_DETAILS: + { + mergeUndeployModelDetails(other.getUndeployModelDetails()); + break; + } + case CREATE_MODEL_DETAILS: + { + mergeCreateModelDetails(other.getCreateModelDetails()); + break; + } + case IMPORT_DATA_DETAILS: + { + mergeImportDataDetails(other.getImportDataDetails()); + break; + } + case BATCH_PREDICT_DETAILS: + { + mergeBatchPredictDetails(other.getBatchPredictDetails()); + break; + } + case EXPORT_DATA_DETAILS: + { + mergeExportDataDetails(other.getExportDataDetails()); + break; + } + case EXPORT_MODEL_DETAILS: + { + mergeExportModelDetails(other.getExportModelDetails()); + break; + } + case EXPORT_EVALUATED_EXAMPLES_DETAILS: + { + mergeExportEvaluatedExamplesDetails(other.getExportEvaluatedExamplesDetails()); + break; + } + case DETAILS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.OperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.OperationMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int detailsCase_ = 0; + private java.lang.Object details_; + + public DetailsCase getDetailsCase() { + return DetailsCase.forNumber(detailsCase_); + } + + public Builder clearDetails() { + detailsCase_ = 0; + details_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DeleteOperationMetadata, + com.google.cloud.automl.v1beta1.DeleteOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.DeleteOperationMetadataOrBuilder> + deleteDetailsBuilder_; + /** + * + * + *
+     * Details of a Delete operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; + */ + public boolean hasDeleteDetails() { + return detailsCase_ == 8; + } + /** + * + * + *
+     * Details of a Delete operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; + */ + public com.google.cloud.automl.v1beta1.DeleteOperationMetadata getDeleteDetails() { + if (deleteDetailsBuilder_ == null) { + if (detailsCase_ == 8) { + return (com.google.cloud.automl.v1beta1.DeleteOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.DeleteOperationMetadata.getDefaultInstance(); + } else { + if (detailsCase_ == 8) { + return deleteDetailsBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.DeleteOperationMetadata.getDefaultInstance(); + } + } + /** + * + * + *
+     * Details of a Delete operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; + */ + public Builder setDeleteDetails(com.google.cloud.automl.v1beta1.DeleteOperationMetadata value) { + if (deleteDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + deleteDetailsBuilder_.setMessage(value); + } + detailsCase_ = 8; + return this; + } + /** + * + * + *
+     * Details of a Delete operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; + */ + public Builder setDeleteDetails( + com.google.cloud.automl.v1beta1.DeleteOperationMetadata.Builder builderForValue) { + if (deleteDetailsBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + deleteDetailsBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 8; + return this; + } + /** + * + * + *
+     * Details of a Delete operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; + */ + public Builder mergeDeleteDetails( + com.google.cloud.automl.v1beta1.DeleteOperationMetadata value) { + if (deleteDetailsBuilder_ == null) { + if (detailsCase_ == 8 + && details_ + != com.google.cloud.automl.v1beta1.DeleteOperationMetadata.getDefaultInstance()) { + details_ = + com.google.cloud.automl.v1beta1.DeleteOperationMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.DeleteOperationMetadata) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 8) { + deleteDetailsBuilder_.mergeFrom(value); + } + deleteDetailsBuilder_.setMessage(value); + } + detailsCase_ = 8; + return this; + } + /** + * + * + *
+     * Details of a Delete operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; + */ + public Builder clearDeleteDetails() { + if (deleteDetailsBuilder_ == null) { + if (detailsCase_ == 8) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 8) { + detailsCase_ = 0; + details_ = null; + } + deleteDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Details of a Delete operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; + */ + public com.google.cloud.automl.v1beta1.DeleteOperationMetadata.Builder + getDeleteDetailsBuilder() { + return getDeleteDetailsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Details of a Delete operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; + */ + public com.google.cloud.automl.v1beta1.DeleteOperationMetadataOrBuilder + getDeleteDetailsOrBuilder() { + if ((detailsCase_ == 8) && (deleteDetailsBuilder_ != null)) { + return deleteDetailsBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 8) { + return (com.google.cloud.automl.v1beta1.DeleteOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.DeleteOperationMetadata.getDefaultInstance(); + } + } + /** + * + * + *
+     * Details of a Delete operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DeleteOperationMetadata, + com.google.cloud.automl.v1beta1.DeleteOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.DeleteOperationMetadataOrBuilder> + getDeleteDetailsFieldBuilder() { + if (deleteDetailsBuilder_ == null) { + if (!(detailsCase_ == 8)) { + details_ = com.google.cloud.automl.v1beta1.DeleteOperationMetadata.getDefaultInstance(); + } + deleteDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DeleteOperationMetadata, + com.google.cloud.automl.v1beta1.DeleteOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.DeleteOperationMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.DeleteOperationMetadata) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 8; + onChanged(); + ; + return deleteDetailsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata, + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.DeployModelOperationMetadataOrBuilder> + deployModelDetailsBuilder_; + /** + * + * + *
+     * Details of a DeployModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * + */ + public boolean hasDeployModelDetails() { + return detailsCase_ == 24; + } + /** + * + * + *
+     * Details of a DeployModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * + */ + public com.google.cloud.automl.v1beta1.DeployModelOperationMetadata getDeployModelDetails() { + if (deployModelDetailsBuilder_ == null) { + if (detailsCase_ == 24) { + return (com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.getDefaultInstance(); + } else { + if (detailsCase_ == 24) { + return deployModelDetailsBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.getDefaultInstance(); + } + } + /** + * + * + *
+     * Details of a DeployModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * + */ + public Builder setDeployModelDetails( + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata value) { + if (deployModelDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + deployModelDetailsBuilder_.setMessage(value); + } + detailsCase_ = 24; + return this; + } + /** + * + * + *
+     * Details of a DeployModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * + */ + public Builder setDeployModelDetails( + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.Builder builderForValue) { + if (deployModelDetailsBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + deployModelDetailsBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 24; + return this; + } + /** + * + * + *
+     * Details of a DeployModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * + */ + public Builder mergeDeployModelDetails( + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata value) { + if (deployModelDetailsBuilder_ == null) { + if (detailsCase_ == 24 + && details_ + != com.google.cloud.automl.v1beta1.DeployModelOperationMetadata + .getDefaultInstance()) { + details_ = + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 24) { + deployModelDetailsBuilder_.mergeFrom(value); + } + deployModelDetailsBuilder_.setMessage(value); + } + detailsCase_ = 24; + return this; + } + /** + * + * + *
+     * Details of a DeployModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * + */ + public Builder clearDeployModelDetails() { + if (deployModelDetailsBuilder_ == null) { + if (detailsCase_ == 24) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 24) { + detailsCase_ = 0; + details_ = null; + } + deployModelDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Details of a DeployModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * + */ + public com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.Builder + getDeployModelDetailsBuilder() { + return getDeployModelDetailsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Details of a DeployModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * + */ + public com.google.cloud.automl.v1beta1.DeployModelOperationMetadataOrBuilder + getDeployModelDetailsOrBuilder() { + if ((detailsCase_ == 24) && (deployModelDetailsBuilder_ != null)) { + return deployModelDetailsBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 24) { + return (com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.getDefaultInstance(); + } + } + /** + * + * + *
+     * Details of a DeployModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata, + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.DeployModelOperationMetadataOrBuilder> + getDeployModelDetailsFieldBuilder() { + if (deployModelDetailsBuilder_ == null) { + if (!(detailsCase_ == 24)) { + details_ = + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.getDefaultInstance(); + } + deployModelDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata, + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.DeployModelOperationMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.DeployModelOperationMetadata) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 24; + onChanged(); + ; + return deployModelDetailsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata, + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadataOrBuilder> + undeployModelDetailsBuilder_; + /** + * + * + *
+     * Details of an UndeployModel operation.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + */ + public boolean hasUndeployModelDetails() { + return detailsCase_ == 25; + } + /** + * + * + *
+     * Details of an UndeployModel operation.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + */ + public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata + getUndeployModelDetails() { + if (undeployModelDetailsBuilder_ == null) { + if (detailsCase_ == 25) { + return (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.getDefaultInstance(); + } else { + if (detailsCase_ == 25) { + return undeployModelDetailsBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.getDefaultInstance(); + } + } + /** + * + * + *
+     * Details of an UndeployModel operation.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + */ + public Builder setUndeployModelDetails( + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata value) { + if (undeployModelDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + undeployModelDetailsBuilder_.setMessage(value); + } + detailsCase_ = 25; + return this; + } + /** + * + * + *
+     * Details of an UndeployModel operation.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + */ + public Builder setUndeployModelDetails( + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.Builder builderForValue) { + if (undeployModelDetailsBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + undeployModelDetailsBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 25; + return this; + } + /** + * + * + *
+     * Details of an UndeployModel operation.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + */ + public Builder mergeUndeployModelDetails( + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata value) { + if (undeployModelDetailsBuilder_ == null) { + if (detailsCase_ == 25 + && details_ + != com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata + .getDefaultInstance()) { + details_ = + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 25) { + undeployModelDetailsBuilder_.mergeFrom(value); + } + undeployModelDetailsBuilder_.setMessage(value); + } + detailsCase_ = 25; + return this; + } + /** + * + * + *
+     * Details of an UndeployModel operation.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + */ + public Builder clearUndeployModelDetails() { + if (undeployModelDetailsBuilder_ == null) { + if (detailsCase_ == 25) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 25) { + detailsCase_ = 0; + details_ = null; + } + undeployModelDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Details of an UndeployModel operation.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + */ + public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.Builder + getUndeployModelDetailsBuilder() { + return getUndeployModelDetailsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Details of an UndeployModel operation.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + */ + public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadataOrBuilder + getUndeployModelDetailsOrBuilder() { + if ((detailsCase_ == 25) && (undeployModelDetailsBuilder_ != null)) { + return undeployModelDetailsBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 25) { + return (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.getDefaultInstance(); + } + } + /** + * + * + *
+     * Details of an UndeployModel operation.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata, + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadataOrBuilder> + getUndeployModelDetailsFieldBuilder() { + if (undeployModelDetailsBuilder_ == null) { + if (!(detailsCase_ == 25)) { + details_ = + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.getDefaultInstance(); + } + undeployModelDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata, + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 25; + onChanged(); + ; + return undeployModelDetailsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata, + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder> + createModelDetailsBuilder_; + /** + * + * + *
+     * Details of CreateModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + */ + public boolean hasCreateModelDetails() { + return detailsCase_ == 10; + } + /** + * + * + *
+     * Details of CreateModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + */ + public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata getCreateModelDetails() { + if (createModelDetailsBuilder_ == null) { + if (detailsCase_ == 10) { + return (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance(); + } else { + if (detailsCase_ == 10) { + return createModelDetailsBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance(); + } + } + /** + * + * + *
+     * Details of CreateModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + */ + public Builder setCreateModelDetails( + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata value) { + if (createModelDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + createModelDetailsBuilder_.setMessage(value); + } + detailsCase_ = 10; + return this; + } + /** + * + * + *
+     * Details of CreateModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + */ + public Builder setCreateModelDetails( + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder builderForValue) { + if (createModelDetailsBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + createModelDetailsBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 10; + return this; + } + /** + * + * + *
+     * Details of CreateModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + */ + public Builder mergeCreateModelDetails( + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata value) { + if (createModelDetailsBuilder_ == null) { + if (detailsCase_ == 10 + && details_ + != com.google.cloud.automl.v1beta1.CreateModelOperationMetadata + .getDefaultInstance()) { + details_ = + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 10) { + createModelDetailsBuilder_.mergeFrom(value); + } + createModelDetailsBuilder_.setMessage(value); + } + detailsCase_ = 10; + return this; + } + /** + * + * + *
+     * Details of CreateModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + */ + public Builder clearCreateModelDetails() { + if (createModelDetailsBuilder_ == null) { + if (detailsCase_ == 10) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 10) { + detailsCase_ = 0; + details_ = null; + } + createModelDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Details of CreateModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + */ + public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder + getCreateModelDetailsBuilder() { + return getCreateModelDetailsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Details of CreateModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + */ + public com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder + getCreateModelDetailsOrBuilder() { + if ((detailsCase_ == 10) && (createModelDetailsBuilder_ != null)) { + return createModelDetailsBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 10) { + return (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance(); + } + } + /** + * + * + *
+     * Details of CreateModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata, + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder> + getCreateModelDetailsFieldBuilder() { + if (createModelDetailsBuilder_ == null) { + if (!(detailsCase_ == 10)) { + details_ = + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance(); + } + createModelDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata, + com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 10; + onChanged(); + ; + return createModelDetailsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata, + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.ImportDataOperationMetadataOrBuilder> + importDataDetailsBuilder_; + /** + * + * + *
+     * Details of ImportData operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * + */ + public boolean hasImportDataDetails() { + return detailsCase_ == 15; + } + /** + * + * + *
+     * Details of ImportData operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * + */ + public com.google.cloud.automl.v1beta1.ImportDataOperationMetadata getImportDataDetails() { + if (importDataDetailsBuilder_ == null) { + if (detailsCase_ == 15) { + return (com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.getDefaultInstance(); } else { - createTime_ = null; - createTimeBuilder_ = null; + if (detailsCase_ == 15) { + return importDataDetailsBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.getDefaultInstance(); } - if (updateTimeBuilder_ == null) { - updateTime_ = null; + } + /** + * + * + *
+     * Details of ImportData operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * + */ + public Builder setImportDataDetails( + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata value) { + if (importDataDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); } else { - updateTime_ = null; - updateTimeBuilder_ = null; + importDataDetailsBuilder_.setMessage(value); + } + detailsCase_ = 15; + return this; + } + /** + * + * + *
+     * Details of ImportData operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * + */ + public Builder setImportDataDetails( + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.Builder builderForValue) { + if (importDataDetailsBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + importDataDetailsBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 15; + return this; + } + /** + * + * + *
+     * Details of ImportData operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * + */ + public Builder mergeImportDataDetails( + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata value) { + if (importDataDetailsBuilder_ == null) { + if (detailsCase_ == 15 + && details_ + != com.google.cloud.automl.v1beta1.ImportDataOperationMetadata + .getDefaultInstance()) { + details_ = + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 15) { + importDataDetailsBuilder_.mergeFrom(value); + } + importDataDetailsBuilder_.setMessage(value); + } + detailsCase_ = 15; + return this; + } + /** + * + * + *
+     * Details of ImportData operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * + */ + public Builder clearImportDataDetails() { + if (importDataDetailsBuilder_ == null) { + if (detailsCase_ == 15) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 15) { + detailsCase_ = 0; + details_ = null; + } + importDataDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Details of ImportData operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * + */ + public com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.Builder + getImportDataDetailsBuilder() { + return getImportDataDetailsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Details of ImportData operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * + */ + public com.google.cloud.automl.v1beta1.ImportDataOperationMetadataOrBuilder + getImportDataDetailsOrBuilder() { + if ((detailsCase_ == 15) && (importDataDetailsBuilder_ != null)) { + return importDataDetailsBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 15) { + return (com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.getDefaultInstance(); + } + } + /** + * + * + *
+     * Details of ImportData operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata, + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.ImportDataOperationMetadataOrBuilder> + getImportDataDetailsFieldBuilder() { + if (importDataDetailsBuilder_ == null) { + if (!(detailsCase_ == 15)) { + details_ = + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.getDefaultInstance(); + } + importDataDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata, + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.ImportDataOperationMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.ImportDataOperationMetadata) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 15; + onChanged(); + ; + return importDataDetailsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata, + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadataOrBuilder> + batchPredictDetailsBuilder_; + /** + * + * + *
+     * Details of BatchPredict operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * + */ + public boolean hasBatchPredictDetails() { + return detailsCase_ == 16; + } + /** + * + * + *
+     * Details of BatchPredict operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * + */ + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata getBatchPredictDetails() { + if (batchPredictDetailsBuilder_ == null) { + if (detailsCase_ == 16) { + return (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.getDefaultInstance(); + } else { + if (detailsCase_ == 16) { + return batchPredictDetailsBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.getDefaultInstance(); + } + } + /** + * + * + *
+     * Details of BatchPredict operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * + */ + public Builder setBatchPredictDetails( + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata value) { + if (batchPredictDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + batchPredictDetailsBuilder_.setMessage(value); + } + detailsCase_ = 16; + return this; + } + /** + * + * + *
+     * Details of BatchPredict operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * + */ + public Builder setBatchPredictDetails( + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.Builder builderForValue) { + if (batchPredictDetailsBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + batchPredictDetailsBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 16; + return this; + } + /** + * + * + *
+     * Details of BatchPredict operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * + */ + public Builder mergeBatchPredictDetails( + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata value) { + if (batchPredictDetailsBuilder_ == null) { + if (detailsCase_ == 16 + && details_ + != com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata + .getDefaultInstance()) { + details_ = + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 16) { + batchPredictDetailsBuilder_.mergeFrom(value); + } + batchPredictDetailsBuilder_.setMessage(value); + } + detailsCase_ = 16; + return this; + } + /** + * + * + *
+     * Details of BatchPredict operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * + */ + public Builder clearBatchPredictDetails() { + if (batchPredictDetailsBuilder_ == null) { + if (detailsCase_ == 16) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 16) { + detailsCase_ = 0; + details_ = null; + } + batchPredictDetailsBuilder_.clear(); } - detailsCase_ = 0; - details_ = null; return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.automl.v1beta1.Operations - .internal_static_google_cloud_automl_v1beta1_OperationMetadata_descriptor; + /** + * + * + *
+     * Details of BatchPredict operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * + */ + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.Builder + getBatchPredictDetailsBuilder() { + return getBatchPredictDetailsFieldBuilder().getBuilder(); } - - @java.lang.Override - public com.google.cloud.automl.v1beta1.OperationMetadata getDefaultInstanceForType() { - return com.google.cloud.automl.v1beta1.OperationMetadata.getDefaultInstance(); + /** + * + * + *
+     * Details of BatchPredict operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * + */ + public com.google.cloud.automl.v1beta1.BatchPredictOperationMetadataOrBuilder + getBatchPredictDetailsOrBuilder() { + if ((detailsCase_ == 16) && (batchPredictDetailsBuilder_ != null)) { + return batchPredictDetailsBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 16) { + return (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.getDefaultInstance(); + } } - - @java.lang.Override - public com.google.cloud.automl.v1beta1.OperationMetadata build() { - com.google.cloud.automl.v1beta1.OperationMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
+     * Details of BatchPredict operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata, + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadataOrBuilder> + getBatchPredictDetailsFieldBuilder() { + if (batchPredictDetailsBuilder_ == null) { + if (!(detailsCase_ == 16)) { + details_ = + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.getDefaultInstance(); + } + batchPredictDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata, + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata) details_, + getParentForChildren(), + isClean()); + details_ = null; } - return result; + detailsCase_ = 16; + onChanged(); + ; + return batchPredictDetailsBuilder_; } - @java.lang.Override - public com.google.cloud.automl.v1beta1.OperationMetadata buildPartial() { - com.google.cloud.automl.v1beta1.OperationMetadata result = - new com.google.cloud.automl.v1beta1.OperationMetadata(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (detailsCase_ == 10) { - if (createModelDetailsBuilder_ == null) { - result.details_ = details_; - } else { - result.details_ = createModelDetailsBuilder_.build(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata, + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.ExportDataOperationMetadataOrBuilder> + exportDataDetailsBuilder_; + /** + * + * + *
+     * Details of ExportData operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * + */ + public boolean hasExportDataDetails() { + return detailsCase_ == 21; + } + /** + * + * + *
+     * Details of ExportData operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * + */ + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata getExportDataDetails() { + if (exportDataDetailsBuilder_ == null) { + if (detailsCase_ == 21) { + return (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.getDefaultInstance(); + } else { + if (detailsCase_ == 21) { + return exportDataDetailsBuilder_.getMessage(); } + return com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.getDefaultInstance(); } - result.progressPercent_ = progressPercent_; - if (partialFailuresBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - partialFailures_ = java.util.Collections.unmodifiableList(partialFailures_); - bitField0_ = (bitField0_ & ~0x00000004); + } + /** + * + * + *
+     * Details of ExportData operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * + */ + public Builder setExportDataDetails( + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata value) { + if (exportDataDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - result.partialFailures_ = partialFailures_; + details_ = value; + onChanged(); } else { - result.partialFailures_ = partialFailuresBuilder_.build(); + exportDataDetailsBuilder_.setMessage(value); } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; + detailsCase_ = 21; + return this; + } + /** + * + * + *
+     * Details of ExportData operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * + */ + public Builder setExportDataDetails( + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.Builder builderForValue) { + if (exportDataDetailsBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); } else { - result.createTime_ = createTimeBuilder_.build(); + exportDataDetailsBuilder_.setMessage(builderForValue.build()); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; + detailsCase_ = 21; + return this; + } + /** + * + * + *
+     * Details of ExportData operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * + */ + public Builder mergeExportDataDetails( + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata value) { + if (exportDataDetailsBuilder_ == null) { + if (detailsCase_ == 21 + && details_ + != com.google.cloud.automl.v1beta1.ExportDataOperationMetadata + .getDefaultInstance()) { + details_ = + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (detailsCase_ == 21) { + exportDataDetailsBuilder_.mergeFrom(value); + } + exportDataDetailsBuilder_.setMessage(value); } - result.bitField0_ = to_bitField0_; - result.detailsCase_ = detailsCase_; - onBuilt(); - return result; + detailsCase_ = 21; + return this; } - - @java.lang.Override - public Builder clone() { - return super.clone(); + /** + * + * + *
+     * Details of ExportData operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * + */ + public Builder clearExportDataDetails() { + if (exportDataDetailsBuilder_ == null) { + if (detailsCase_ == 21) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 21) { + detailsCase_ = 0; + details_ = null; + } + exportDataDetailsBuilder_.clear(); + } + return this; } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + /** + * + * + *
+     * Details of ExportData operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * + */ + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.Builder + getExportDataDetailsBuilder() { + return getExportDataDetailsFieldBuilder().getBuilder(); } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
+     * Details of ExportData operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * + */ + public com.google.cloud.automl.v1beta1.ExportDataOperationMetadataOrBuilder + getExportDataDetailsOrBuilder() { + if ((detailsCase_ == 21) && (exportDataDetailsBuilder_ != null)) { + return exportDataDetailsBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 21) { + return (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.getDefaultInstance(); + } } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + * + * + *
+     * Details of ExportData operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata, + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.ExportDataOperationMetadataOrBuilder> + getExportDataDetailsFieldBuilder() { + if (exportDataDetailsBuilder_ == null) { + if (!(detailsCase_ == 21)) { + details_ = + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.getDefaultInstance(); + } + exportDataDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata, + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.ExportDataOperationMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.ExportDataOperationMetadata) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 21; + onChanged(); + ; + return exportDataDetailsBuilder_; } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata, + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.ExportModelOperationMetadataOrBuilder> + exportModelDetailsBuilder_; + /** + * + * + *
+     * Details of ExportModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * + */ + public boolean hasExportModelDetails() { + return detailsCase_ == 22; } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + /** + * + * + *
+     * Details of ExportModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * + */ + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata getExportModelDetails() { + if (exportModelDetailsBuilder_ == null) { + if (detailsCase_ == 22) { + return (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) details_; + } + return com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.getDefaultInstance(); + } else { + if (detailsCase_ == 22) { + return exportModelDetailsBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.getDefaultInstance(); + } + } + /** + * + * + *
+     * Details of ExportModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * + */ + public Builder setExportModelDetails( + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata value) { + if (exportModelDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + exportModelDetailsBuilder_.setMessage(value); + } + detailsCase_ = 22; + return this; } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.automl.v1beta1.OperationMetadata) { - return mergeFrom((com.google.cloud.automl.v1beta1.OperationMetadata) other); + /** + * + * + *
+     * Details of ExportModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * + */ + public Builder setExportModelDetails( + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.Builder builderForValue) { + if (exportModelDetailsBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); } else { - super.mergeFrom(other); - return this; + exportModelDetailsBuilder_.setMessage(builderForValue.build()); } + detailsCase_ = 22; + return this; } - - public Builder mergeFrom(com.google.cloud.automl.v1beta1.OperationMetadata other) { - if (other == com.google.cloud.automl.v1beta1.OperationMetadata.getDefaultInstance()) - return this; - if (other.getProgressPercent() != 0) { - setProgressPercent(other.getProgressPercent()); + /** + * + * + *
+     * Details of ExportModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * + */ + public Builder mergeExportModelDetails( + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata value) { + if (exportModelDetailsBuilder_ == null) { + if (detailsCase_ == 22 + && details_ + != com.google.cloud.automl.v1beta1.ExportModelOperationMetadata + .getDefaultInstance()) { + details_ = + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) details_) + .mergeFrom(value) + .buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 22) { + exportModelDetailsBuilder_.mergeFrom(value); + } + exportModelDetailsBuilder_.setMessage(value); } - if (partialFailuresBuilder_ == null) { - if (!other.partialFailures_.isEmpty()) { - if (partialFailures_.isEmpty()) { - partialFailures_ = other.partialFailures_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensurePartialFailuresIsMutable(); - partialFailures_.addAll(other.partialFailures_); - } + detailsCase_ = 22; + return this; + } + /** + * + * + *
+     * Details of ExportModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * + */ + public Builder clearExportModelDetails() { + if (exportModelDetailsBuilder_ == null) { + if (detailsCase_ == 22) { + detailsCase_ = 0; + details_ = null; onChanged(); } } else { - if (!other.partialFailures_.isEmpty()) { - if (partialFailuresBuilder_.isEmpty()) { - partialFailuresBuilder_.dispose(); - partialFailuresBuilder_ = null; - partialFailures_ = other.partialFailures_; - bitField0_ = (bitField0_ & ~0x00000004); - partialFailuresBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPartialFailuresFieldBuilder() - : null; - } else { - partialFailuresBuilder_.addAllMessages(other.partialFailures_); - } + if (detailsCase_ == 22) { + detailsCase_ = 0; + details_ = null; } + exportModelDetailsBuilder_.clear(); } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - switch (other.getDetailsCase()) { - case CREATE_MODEL_DETAILS: - { - mergeCreateModelDetails(other.getCreateModelDetails()); - break; - } - case DETAILS_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+     * Details of ExportModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * + */ + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.Builder + getExportModelDetailsBuilder() { + return getExportModelDetailsFieldBuilder().getBuilder(); } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.automl.v1beta1.OperationMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.automl.v1beta1.OperationMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + /** + * + * + *
+     * Details of ExportModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * + */ + public com.google.cloud.automl.v1beta1.ExportModelOperationMetadataOrBuilder + getExportModelDetailsOrBuilder() { + if ((detailsCase_ == 22) && (exportModelDetailsBuilder_ != null)) { + return exportModelDetailsBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 22) { + return (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) details_; } + return com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.getDefaultInstance(); } - return this; - } - - private int detailsCase_ = 0; - private java.lang.Object details_; - - public DetailsCase getDetailsCase() { - return DetailsCase.forNumber(detailsCase_); } - - public Builder clearDetails() { - detailsCase_ = 0; - details_ = null; + /** + * + * + *
+     * Details of ExportModel operation.
+     * 
+ * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata, + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.ExportModelOperationMetadataOrBuilder> + getExportModelDetailsFieldBuilder() { + if (exportModelDetailsBuilder_ == null) { + if (!(detailsCase_ == 22)) { + details_ = + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.getDefaultInstance(); + } + exportModelDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata, + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.ExportModelOperationMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.ExportModelOperationMetadata) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 22; onChanged(); - return this; + ; + return exportModelDetailsBuilder_; } - private int bitField0_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata, - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder, - com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder> - createModelDetailsBuilder_; + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder> + exportEvaluatedExamplesDetailsBuilder_; /** * * *
-     * Details of CreateModel operation.
+     * Details of ExportEvaluatedExamples operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; * */ - public boolean hasCreateModelDetails() { - return detailsCase_ == 10; + public boolean hasExportEvaluatedExamplesDetails() { + return detailsCase_ == 26; } /** * * *
-     * Details of CreateModel operation.
+     * Details of ExportEvaluatedExamples operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; * */ - public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata getCreateModelDetails() { - if (createModelDetailsBuilder_ == null) { - if (detailsCase_ == 10) { - return (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_; + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + getExportEvaluatedExamplesDetails() { + if (exportEvaluatedExamplesDetailsBuilder_ == null) { + if (detailsCase_ == 26) { + return (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) + details_; } - return com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .getDefaultInstance(); } else { - if (detailsCase_ == 10) { - return createModelDetailsBuilder_.getMessage(); + if (detailsCase_ == 26) { + return exportEvaluatedExamplesDetailsBuilder_.getMessage(); } - return com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .getDefaultInstance(); } } /** * * *
-     * Details of CreateModel operation.
+     * Details of ExportEvaluatedExamples operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; * */ - public Builder setCreateModelDetails( - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata value) { - if (createModelDetailsBuilder_ == null) { + public Builder setExportEvaluatedExamplesDetails( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata value) { + if (exportEvaluatedExamplesDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } details_ = value; onChanged(); } else { - createModelDetailsBuilder_.setMessage(value); + exportEvaluatedExamplesDetailsBuilder_.setMessage(value); } - detailsCase_ = 10; + detailsCase_ = 26; return this; } /** * * *
-     * Details of CreateModel operation.
+     * Details of ExportEvaluatedExamples operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; * */ - public Builder setCreateModelDetails( - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder builderForValue) { - if (createModelDetailsBuilder_ == null) { + public Builder setExportEvaluatedExamplesDetails( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder + builderForValue) { + if (exportEvaluatedExamplesDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); } else { - createModelDetailsBuilder_.setMessage(builderForValue.build()); + exportEvaluatedExamplesDetailsBuilder_.setMessage(builderForValue.build()); } - detailsCase_ = 10; + detailsCase_ = 26; return this; } /** * * *
-     * Details of CreateModel operation.
+     * Details of ExportEvaluatedExamples operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; * */ - public Builder mergeCreateModelDetails( - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata value) { - if (createModelDetailsBuilder_ == null) { - if (detailsCase_ == 10 + public Builder mergeExportEvaluatedExamplesDetails( + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata value) { + if (exportEvaluatedExamplesDetailsBuilder_ == null) { + if (detailsCase_ == 26 && details_ - != com.google.cloud.automl.v1beta1.CreateModelOperationMetadata + != com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata .getDefaultInstance()) { details_ = - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.newBuilder( - (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_) + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.newBuilder( + (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) + details_) .mergeFrom(value) .buildPartial(); } else { @@ -1017,37 +3569,38 @@ public Builder mergeCreateModelDetails( } onChanged(); } else { - if (detailsCase_ == 10) { - createModelDetailsBuilder_.mergeFrom(value); + if (detailsCase_ == 26) { + exportEvaluatedExamplesDetailsBuilder_.mergeFrom(value); } - createModelDetailsBuilder_.setMessage(value); + exportEvaluatedExamplesDetailsBuilder_.setMessage(value); } - detailsCase_ = 10; + detailsCase_ = 26; return this; } /** * * *
-     * Details of CreateModel operation.
+     * Details of ExportEvaluatedExamples operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; * */ - public Builder clearCreateModelDetails() { - if (createModelDetailsBuilder_ == null) { - if (detailsCase_ == 10) { + public Builder clearExportEvaluatedExamplesDetails() { + if (exportEvaluatedExamplesDetailsBuilder_ == null) { + if (detailsCase_ == 26) { detailsCase_ = 0; details_ = null; onChanged(); } } else { - if (detailsCase_ == 10) { + if (detailsCase_ == 26) { detailsCase_ = 0; details_ = null; } - createModelDetailsBuilder_.clear(); + exportEvaluatedExamplesDetailsBuilder_.clear(); } return this; } @@ -1055,71 +3608,77 @@ public Builder clearCreateModelDetails() { * * *
-     * Details of CreateModel operation.
+     * Details of ExportEvaluatedExamples operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; * */ - public com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder - getCreateModelDetailsBuilder() { - return getCreateModelDetailsFieldBuilder().getBuilder(); + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder + getExportEvaluatedExamplesDetailsBuilder() { + return getExportEvaluatedExamplesDetailsFieldBuilder().getBuilder(); } /** * * *
-     * Details of CreateModel operation.
+     * Details of ExportEvaluatedExamples operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; * */ - public com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder - getCreateModelDetailsOrBuilder() { - if ((detailsCase_ == 10) && (createModelDetailsBuilder_ != null)) { - return createModelDetailsBuilder_.getMessageOrBuilder(); + public com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder + getExportEvaluatedExamplesDetailsOrBuilder() { + if ((detailsCase_ == 26) && (exportEvaluatedExamplesDetailsBuilder_ != null)) { + return exportEvaluatedExamplesDetailsBuilder_.getMessageOrBuilder(); } else { - if (detailsCase_ == 10) { - return (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_; + if (detailsCase_ == 26) { + return (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) + details_; } - return com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance(); + return com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .getDefaultInstance(); } } /** * * *
-     * Details of CreateModel operation.
+     * Details of ExportEvaluatedExamples operation.
      * 
* - * .google.cloud.automl.v1beta1.CreateModelOperationMetadata create_model_details = 10; + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata, - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder, - com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder> - getCreateModelDetailsFieldBuilder() { - if (createModelDetailsBuilder_ == null) { - if (!(detailsCase_ == 10)) { + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder> + getExportEvaluatedExamplesDetailsFieldBuilder() { + if (exportEvaluatedExamplesDetailsBuilder_ == null) { + if (!(detailsCase_ == 26)) { details_ = - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.getDefaultInstance(); + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + .getDefaultInstance(); } - createModelDetailsBuilder_ = + exportEvaluatedExamplesDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata, - com.google.cloud.automl.v1beta1.CreateModelOperationMetadata.Builder, - com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder>( - (com.google.cloud.automl.v1beta1.CreateModelOperationMetadata) details_, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata.Builder, + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder>( + (com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } - detailsCase_ = 10; + detailsCase_ = 26; onChanged(); ; - return createModelDetailsBuilder_; + return exportEvaluatedExamplesDetailsBuilder_; } private int progressPercent_; @@ -1128,6 +3687,7 @@ public Builder clearCreateModelDetails() { * *
      * Output only. Progress of operation. Range: [0, 100].
+     * Not used currently.
      * 
* * int32 progress_percent = 13; @@ -1140,6 +3700,7 @@ public int getProgressPercent() { * *
      * Output only. Progress of operation. Range: [0, 100].
+     * Not used currently.
      * 
* * int32 progress_percent = 13; @@ -1155,6 +3716,7 @@ public Builder setProgressPercent(int value) { * *
      * Output only. Progress of operation. Range: [0, 100].
+     * Not used currently.
      * 
* * int32 progress_percent = 13; @@ -1170,9 +3732,9 @@ public Builder clearProgressPercent() { java.util.Collections.emptyList(); private void ensurePartialFailuresIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000400) != 0)) { partialFailures_ = new java.util.ArrayList(partialFailures_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000400; } } @@ -1416,7 +3978,7 @@ public Builder addAllPartialFailures( public Builder clearPartialFailures() { if (partialFailuresBuilder_ == null) { partialFailures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { partialFailuresBuilder_.clear(); @@ -1557,7 +4119,7 @@ public java.util.List getPartialFailuresBuilderLi com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( partialFailures_, - ((bitField0_ & 0x00000004) != 0), + ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); partialFailures_ = null; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadataOrBuilder.java index f44f30b9ccd6..a410566acf89 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadataOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OperationMetadataOrBuilder.java @@ -8,6 +8,107 @@ public interface OperationMetadataOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.OperationMetadata) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * Details of a Delete operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; + */ + boolean hasDeleteDetails(); + /** + * + * + *
+   * Details of a Delete operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; + */ + com.google.cloud.automl.v1beta1.DeleteOperationMetadata getDeleteDetails(); + /** + * + * + *
+   * Details of a Delete operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.DeleteOperationMetadata delete_details = 8; + */ + com.google.cloud.automl.v1beta1.DeleteOperationMetadataOrBuilder getDeleteDetailsOrBuilder(); + + /** + * + * + *
+   * Details of a DeployModel operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * + */ + boolean hasDeployModelDetails(); + /** + * + * + *
+   * Details of a DeployModel operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * + */ + com.google.cloud.automl.v1beta1.DeployModelOperationMetadata getDeployModelDetails(); + /** + * + * + *
+   * Details of a DeployModel operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.DeployModelOperationMetadata deploy_model_details = 24; + * + */ + com.google.cloud.automl.v1beta1.DeployModelOperationMetadataOrBuilder + getDeployModelDetailsOrBuilder(); + + /** + * + * + *
+   * Details of an UndeployModel operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + */ + boolean hasUndeployModelDetails(); + /** + * + * + *
+   * Details of an UndeployModel operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + */ + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata getUndeployModelDetails(); + /** + * + * + *
+   * Details of an UndeployModel operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.UndeployModelOperationMetadata undeploy_model_details = 25; + * + */ + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadataOrBuilder + getUndeployModelDetailsOrBuilder(); + /** * * @@ -43,11 +144,185 @@ public interface OperationMetadataOrBuilder com.google.cloud.automl.v1beta1.CreateModelOperationMetadataOrBuilder getCreateModelDetailsOrBuilder(); + /** + * + * + *
+   * Details of ImportData operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + */ + boolean hasImportDataDetails(); + /** + * + * + *
+   * Details of ImportData operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + */ + com.google.cloud.automl.v1beta1.ImportDataOperationMetadata getImportDataDetails(); + /** + * + * + *
+   * Details of ImportData operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.ImportDataOperationMetadata import_data_details = 15; + */ + com.google.cloud.automl.v1beta1.ImportDataOperationMetadataOrBuilder + getImportDataDetailsOrBuilder(); + + /** + * + * + *
+   * Details of BatchPredict operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * + */ + boolean hasBatchPredictDetails(); + /** + * + * + *
+   * Details of BatchPredict operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * + */ + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadata getBatchPredictDetails(); + /** + * + * + *
+   * Details of BatchPredict operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.BatchPredictOperationMetadata batch_predict_details = 16; + * + */ + com.google.cloud.automl.v1beta1.BatchPredictOperationMetadataOrBuilder + getBatchPredictDetailsOrBuilder(); + + /** + * + * + *
+   * Details of ExportData operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + */ + boolean hasExportDataDetails(); + /** + * + * + *
+   * Details of ExportData operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + */ + com.google.cloud.automl.v1beta1.ExportDataOperationMetadata getExportDataDetails(); + /** + * + * + *
+   * Details of ExportData operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportDataOperationMetadata export_data_details = 21; + */ + com.google.cloud.automl.v1beta1.ExportDataOperationMetadataOrBuilder + getExportDataDetailsOrBuilder(); + + /** + * + * + *
+   * Details of ExportModel operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * + */ + boolean hasExportModelDetails(); + /** + * + * + *
+   * Details of ExportModel operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * + */ + com.google.cloud.automl.v1beta1.ExportModelOperationMetadata getExportModelDetails(); + /** + * + * + *
+   * Details of ExportModel operation.
+   * 
+ * + * .google.cloud.automl.v1beta1.ExportModelOperationMetadata export_model_details = 22; + * + */ + com.google.cloud.automl.v1beta1.ExportModelOperationMetadataOrBuilder + getExportModelDetailsOrBuilder(); + + /** + * + * + *
+   * Details of ExportEvaluatedExamples operation.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + */ + boolean hasExportEvaluatedExamplesDetails(); + /** + * + * + *
+   * Details of ExportEvaluatedExamples operation.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + */ + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata + getExportEvaluatedExamplesDetails(); + /** + * + * + *
+   * Details of ExportEvaluatedExamples operation.
+   * 
+ * + * + * .google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; + * + */ + com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesOperationMetadataOrBuilder + getExportEvaluatedExamplesDetailsOrBuilder(); + /** * * *
    * Output only. Progress of operation. Range: [0, 100].
+   * Not used currently.
    * 
* * int32 progress_percent = 13; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java index bb0f5af64dca..7b47423e0ca8 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Operations.java @@ -16,10 +16,58 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_automl_v1beta1_OperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_DeleteOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_DeleteOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_DeployModelOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_DeployModelOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_UndeployModelOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_UndeployModelOperationMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ImportDataOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ImportDataOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ExportDataOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ExportDataOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ExportDataOperationMetadata_ExportDataOutputInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ExportDataOperationMetadata_ExportDataOutputInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_BatchPredictOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_BatchPredictOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_BatchPredictOperationMetadata_BatchPredictOutputInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_BatchPredictOperationMetadata_BatchPredictOutputInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ExportModelOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ExportModelOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ExportModelOperationMetadata_ExportModelOutputInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ExportModelOperationMetadata_ExportModelOutputInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOperationMetadata_ExportEvaluatedExamplesOutputInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOperationMetadata_ExportEvaluatedExamplesOutputInfo_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -31,23 +79,71 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n,google/cloud/automl/v1beta1/operations" + ".proto\022\033google.cloud.automl.v1beta1\032\034goo" - + "gle/api/annotations.proto\032\'google/cloud/" - + "automl/v1beta1/model.proto\0322google/cloud" - + "/automl/v1beta1/model_evaluation.proto\032\033" - + "google/protobuf/empty.proto\032\037google/prot" - + "obuf/timestamp.proto\032\027google/rpc/status." - + "proto\"\243\002\n\021OperationMetadata\022Y\n\024create_mo" - + "del_details\030\n \001(\01329.google.cloud.automl." - + "v1beta1.CreateModelOperationMetadataH\000\022\030" - + "\n\020progress_percent\030\r \001(\005\022,\n\020partial_fail" - + "ures\030\002 \003(\0132\022.google.rpc.Status\022/\n\013create" - + "_time\030\003 \001(\0132\032.google.protobuf.Timestamp\022" - + "/\n\013update_time\030\004 \001(\0132\032.google.protobuf.T" - + "imestampB\t\n\007details\"\036\n\034CreateModelOperat" - + "ionMetadataB\204\001\n\037com.google.cloud.automl." - + "v1beta1P\001ZAgoogle.golang.org/genproto/go" - + "ogleapis/cloud/automl/v1beta1;automl\312\002\033G" - + "oogle\\Cloud\\AutoMl\\V1beta1b\006proto3" + + "gle/api/annotations.proto\032$google/cloud/" + + "automl/v1beta1/io.proto\032\'google/cloud/au" + + "toml/v1beta1/model.proto\0322google/cloud/a" + + "utoml/v1beta1/model_evaluation.proto\032\033go" + + "ogle/protobuf/empty.proto\032\037google/protob" + + "uf/timestamp.proto\032\027google/rpc/status.pr" + + "oto\"\213\010\n\021OperationMetadata\022N\n\016delete_deta" + + "ils\030\010 \001(\01324.google.cloud.automl.v1beta1." + + "DeleteOperationMetadataH\000\022Y\n\024deploy_mode" + + "l_details\030\030 \001(\01329.google.cloud.automl.v1" + + "beta1.DeployModelOperationMetadataH\000\022]\n\026" + + "undeploy_model_details\030\031 \001(\0132;.google.cl" + + "oud.automl.v1beta1.UndeployModelOperatio" + + "nMetadataH\000\022Y\n\024create_model_details\030\n \001(" + + "\01329.google.cloud.automl.v1beta1.CreateMo" + + "delOperationMetadataH\000\022W\n\023import_data_de" + + "tails\030\017 \001(\01328.google.cloud.automl.v1beta" + + "1.ImportDataOperationMetadataH\000\022[\n\025batch" + + "_predict_details\030\020 \001(\0132:.google.cloud.au" + + "toml.v1beta1.BatchPredictOperationMetada" + + "taH\000\022W\n\023export_data_details\030\025 \001(\01328.goog" + + "le.cloud.automl.v1beta1.ExportDataOperat" + + "ionMetadataH\000\022Y\n\024export_model_details\030\026 " + + "\001(\01329.google.cloud.automl.v1beta1.Export" + + "ModelOperationMetadataH\000\022r\n!export_evalu" + + "ated_examples_details\030\032 \001(\0132E.google.clo" + + "ud.automl.v1beta1.ExportEvaluatedExample" + + "sOperationMetadataH\000\022\030\n\020progress_percent" + + "\030\r \001(\005\022,\n\020partial_failures\030\002 \003(\0132\022.googl" + + "e.rpc.Status\022/\n\013create_time\030\003 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022/\n\013update_time\030\004 \001" + + "(\0132\032.google.protobuf.TimestampB\t\n\007detail" + + "s\"\031\n\027DeleteOperationMetadata\"\036\n\034DeployMo" + + "delOperationMetadata\" \n\036UndeployModelOpe" + + "rationMetadata\"\036\n\034CreateModelOperationMe" + + "tadata\"\035\n\033ImportDataOperationMetadata\"\357\001" + + "\n\033ExportDataOperationMetadata\022b\n\013output_" + + "info\030\001 \001(\0132M.google.cloud.automl.v1beta1" + + ".ExportDataOperationMetadata.ExportDataO" + + "utputInfo\032l\n\024ExportDataOutputInfo\022\036\n\024gcs" + + "_output_directory\030\001 \001(\tH\000\022!\n\027bigquery_ou" + + "tput_dataset\030\002 \001(\tH\000B\021\n\017output_location\"" + + "\303\002\n\035BatchPredictOperationMetadata\022J\n\014inp" + + "ut_config\030\001 \001(\01324.google.cloud.automl.v1" + + "beta1.BatchPredictInputConfig\022f\n\013output_" + + "info\030\002 \001(\0132Q.google.cloud.automl.v1beta1" + + ".BatchPredictOperationMetadata.BatchPred" + + "ictOutputInfo\032n\n\026BatchPredictOutputInfo\022" + + "\036\n\024gcs_output_directory\030\001 \001(\tH\000\022!\n\027bigqu" + + "ery_output_dataset\030\002 \001(\tH\000B\021\n\017output_loc" + + "ation\"\273\001\n\034ExportModelOperationMetadata\022d" + + "\n\013output_info\030\002 \001(\0132O.google.cloud.autom" + + "l.v1beta1.ExportModelOperationMetadata.E" + + "xportModelOutputInfo\0325\n\025ExportModelOutpu" + + "tInfo\022\034\n\024gcs_output_directory\030\001 \001(\t\"\356\001\n(" + + "ExportEvaluatedExamplesOperationMetadata" + + "\022|\n\013output_info\030\002 \001(\0132g.google.cloud.aut" + + "oml.v1beta1.ExportEvaluatedExamplesOpera" + + "tionMetadata.ExportEvaluatedExamplesOutp" + + "utInfo\032D\n!ExportEvaluatedExamplesOutputI" + + "nfo\022\037\n\027bigquery_output_dataset\030\002 \001(\tB\204\001\n" + + "\037com.google.cloud.automl.v1beta1P\001ZAgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "automl/v1beta1;automl\312\002\033Google\\Cloud\\Aut" + + "oMl\\V1beta1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -61,6 +157,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.automl.v1beta1.Io.getDescriptor(), com.google.cloud.automl.v1beta1.ModelOuterClass.getDescriptor(), com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), @@ -74,20 +171,125 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_OperationMetadata_descriptor, new java.lang.String[] { + "DeleteDetails", + "DeployModelDetails", + "UndeployModelDetails", "CreateModelDetails", + "ImportDataDetails", + "BatchPredictDetails", + "ExportDataDetails", + "ExportModelDetails", + "ExportEvaluatedExamplesDetails", "ProgressPercent", "PartialFailures", "CreateTime", "UpdateTime", "Details", }); - internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_descriptor = + internal_static_google_cloud_automl_v1beta1_DeleteOperationMetadata_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_DeleteOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_DeleteOperationMetadata_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_automl_v1beta1_DeployModelOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_automl_v1beta1_DeployModelOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_DeployModelOperationMetadata_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_automl_v1beta1_UndeployModelOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_automl_v1beta1_UndeployModelOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_UndeployModelOperationMetadata_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_CreateModelOperationMetadata_descriptor, new java.lang.String[] {}); + internal_static_google_cloud_automl_v1beta1_ImportDataOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_automl_v1beta1_ImportDataOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ImportDataOperationMetadata_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_automl_v1beta1_ExportDataOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_automl_v1beta1_ExportDataOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ExportDataOperationMetadata_descriptor, + new java.lang.String[] { + "OutputInfo", + }); + internal_static_google_cloud_automl_v1beta1_ExportDataOperationMetadata_ExportDataOutputInfo_descriptor = + internal_static_google_cloud_automl_v1beta1_ExportDataOperationMetadata_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_automl_v1beta1_ExportDataOperationMetadata_ExportDataOutputInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ExportDataOperationMetadata_ExportDataOutputInfo_descriptor, + new java.lang.String[] { + "GcsOutputDirectory", "BigqueryOutputDataset", "OutputLocation", + }); + internal_static_google_cloud_automl_v1beta1_BatchPredictOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_automl_v1beta1_BatchPredictOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_BatchPredictOperationMetadata_descriptor, + new java.lang.String[] { + "InputConfig", "OutputInfo", + }); + internal_static_google_cloud_automl_v1beta1_BatchPredictOperationMetadata_BatchPredictOutputInfo_descriptor = + internal_static_google_cloud_automl_v1beta1_BatchPredictOperationMetadata_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_automl_v1beta1_BatchPredictOperationMetadata_BatchPredictOutputInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_BatchPredictOperationMetadata_BatchPredictOutputInfo_descriptor, + new java.lang.String[] { + "GcsOutputDirectory", "BigqueryOutputDataset", "OutputLocation", + }); + internal_static_google_cloud_automl_v1beta1_ExportModelOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_automl_v1beta1_ExportModelOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ExportModelOperationMetadata_descriptor, + new java.lang.String[] { + "OutputInfo", + }); + internal_static_google_cloud_automl_v1beta1_ExportModelOperationMetadata_ExportModelOutputInfo_descriptor = + internal_static_google_cloud_automl_v1beta1_ExportModelOperationMetadata_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_automl_v1beta1_ExportModelOperationMetadata_ExportModelOutputInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ExportModelOperationMetadata_ExportModelOutputInfo_descriptor, + new java.lang.String[] { + "GcsOutputDirectory", + }); + internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOperationMetadata_descriptor, + new java.lang.String[] { + "OutputInfo", + }); + internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOperationMetadata_ExportEvaluatedExamplesOutputInfo_descriptor = + internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOperationMetadata_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOperationMetadata_ExportEvaluatedExamplesOutputInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_ExportEvaluatedExamplesOperationMetadata_ExportEvaluatedExamplesOutputInfo_descriptor, + new java.lang.String[] { + "BigqueryOutputDataset", + }); com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.automl.v1beta1.Io.getDescriptor(); com.google.cloud.automl.v1beta1.ModelOuterClass.getDescriptor(); com.google.cloud.automl.v1beta1.ModelEvaluationOuterClass.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfig.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfig.java index 4aa5ce84704e..72c23a9c62d8 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfig.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfig.java @@ -7,7 +7,61 @@ * * *
- * Output configuration.
+ * Output configuration for ExportData.
+ * As destination the
+ * [gcs_destination][google.cloud.automl.v1beta1.OutputConfig.gcs_destination]
+ * must be set unless specified otherwise for a domain.
+ * Only ground truth annotations are exported (not approved annotations are
+ * not exported).
+ * The outputs correspond to how the data was imported, and may be used as
+ * input to import data. The output formats are represented as EBNF with literal
+ * commas and same non-terminal symbols definitions are these in import data's
+ * [InputConfig][google.cloud.automl.v1beta1.InputConfig]:
+ *  *  For Image Object Detection:
+ *         CSV file(s) `image_object_detection_1.csv`,
+ *         `image_object_detection_2.csv`,...,`image_object_detection_N.csv`
+ *         with each line in format:
+ *         ML_USE,GCS_FILE_PATH,LABEL,BOUNDING_BOX
+ *         where GCS_FILE_PATHs point at the original, source locations of the
+ *         imported images.
+ *  *  For Video Classification:
+ *         CSV file `video_classification.csv`, with each line in format:
+ *         ML_USE,GCS_FILE_PATH
+ *         (may have muliple lines per a single ML_USE).
+ *         Each GCS_FILE_PATH leads to another .csv file which
+ *         describes examples that have given ML_USE, using the following
+ *         row format:
+ *         GCS_FILE_PATH,LABEL,TIME_SEGMENT_START,TIME_SEGMENT_END
+ *         Here GCS_FILE_PATHs point at the original, source locations of the
+ *         imported videos.
+ *  *  For Text Extraction:
+ *         CSV file `text_extraction.csv`, with each line in format:
+ *         ML_USE,GCS_FILE_PATH
+ *         GCS_FILE_PATH leads to a .JSONL (i.e. JSON Lines) file which
+ *         contains, per line, a proto that wraps a TextSnippet proto (in json
+ *         representation) followed by AnnotationPayload protos (called
+ *         annotations). If initially documents had been imported, corresponding
+ *         OCR-ed representation is returned.
+ *   *  For Tables:
+ *         Output depends on whether the dataset was imported from GCS or
+ *         BigQuery.
+ *         GCS case:
+ * [gcs_destination][google.cloud.automl.v1beta1.OutputConfig.gcs_destination]
+ *           must be set. Exported are CSV file(s) `tables_1.csv`,
+ *           `tables_2.csv`,...,`tables_N.csv` with each having as header line
+ *           the table's column names, and all other lines contain values for
+ *           the header columns.
+ *         BigQuery case:
+ * [bigquery_destination][google.cloud.automl.v1beta1.OutputConfig.bigquery_destination]
+ *           pointing to a BigQuery project must be set. In the given project a
+ *           new dataset will be created with name
+ * `export_data_<automl-dataset-display-name>_<timestamp-of-export-call>`
+ *           where <automl-dataset-display-name> will be made
+ *           BigQuery-dataset-name compatible (e.g. most special characters will
+ *           become underscores), and timestamp will be in
+ *           YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" format. In that
+ *           dataset a new table called `primary_table` will be created, and
+ *           filled with precisely the same data as this obtained on import.
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.OutputConfig} @@ -65,6 +119,26 @@ private OutputConfig( destinationCase_ = 1; break; } + case 18: + { + com.google.cloud.automl.v1beta1.BigQueryDestination.Builder subBuilder = null; + if (destinationCase_ == 2) { + subBuilder = + ((com.google.cloud.automl.v1beta1.BigQueryDestination) destination_) + .toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.automl.v1beta1.BigQueryDestination.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 2; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -104,6 +178,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public enum DestinationCase implements com.google.protobuf.Internal.EnumLite { GCS_DESTINATION(1), + BIGQUERY_DESTINATION(2), DESTINATION_NOT_SET(0); private final int value; @@ -120,6 +195,8 @@ public static DestinationCase forNumber(int value) { switch (value) { case 1: return GCS_DESTINATION; + case 2: + return BIGQUERY_DESTINATION; case 0: return DESTINATION_NOT_SET; default: @@ -141,7 +218,12 @@ public DestinationCase getDestinationCase() { * * *
-   * The GCS location where the output must be written to.
+   * The Google Cloud Storage location where the output is to be written to.
+   * For Image Object Detection, Text Extraction, Video Classification and
+   * Tables, in the given directory a new directory will be created with name:
+   * export_data-<dataset-display-name>-<timestamp-of-export-call>
+   * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All
+   * export output will be written into that directory.
    * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; @@ -153,7 +235,12 @@ public boolean hasGcsDestination() { * * *
-   * The GCS location where the output must be written to.
+   * The Google Cloud Storage location where the output is to be written to.
+   * For Image Object Detection, Text Extraction, Video Classification and
+   * Tables, in the given directory a new directory will be created with name:
+   * export_data-<dataset-display-name>-<timestamp-of-export-call>
+   * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All
+   * export output will be written into that directory.
    * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; @@ -168,7 +255,12 @@ public com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination() { * * *
-   * The GCS location where the output must be written to.
+   * The Google Cloud Storage location where the output is to be written to.
+   * For Image Object Detection, Text Extraction, Video Classification and
+   * Tables, in the given directory a new directory will be created with name:
+   * export_data-<dataset-display-name>-<timestamp-of-export-call>
+   * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All
+   * export output will be written into that directory.
    * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; @@ -180,6 +272,51 @@ public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestination return com.google.cloud.automl.v1beta1.GcsDestination.getDefaultInstance(); } + public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 2; + /** + * + * + *
+   * The BigQuery location where the output is to be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public boolean hasBigqueryDestination() { + return destinationCase_ == 2; + } + /** + * + * + *
+   * The BigQuery location where the output is to be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestination() { + if (destinationCase_ == 2) { + return (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_; + } + return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); + } + /** + * + * + *
+   * The BigQuery location where the output is to be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { + if (destinationCase_ == 2) { + return (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_; + } + return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -197,6 +334,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (destinationCase_ == 1) { output.writeMessage(1, (com.google.cloud.automl.v1beta1.GcsDestination) destination_); } + if (destinationCase_ == 2) { + output.writeMessage(2, (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_); + } unknownFields.writeTo(output); } @@ -211,6 +351,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, (com.google.cloud.automl.v1beta1.GcsDestination) destination_); } + if (destinationCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -232,6 +377,9 @@ public boolean equals(final java.lang.Object obj) { case 1: if (!getGcsDestination().equals(other.getGcsDestination())) return false; break; + case 2: + if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false; + break; case 0: default: } @@ -251,6 +399,10 @@ public int hashCode() { hash = (37 * hash) + GCS_DESTINATION_FIELD_NUMBER; hash = (53 * hash) + getGcsDestination().hashCode(); break; + case 2: + hash = (37 * hash) + BIGQUERY_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryDestination().hashCode(); + break; case 0: default: } @@ -358,7 +510,61 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Output configuration.
+   * Output configuration for ExportData.
+   * As destination the
+   * [gcs_destination][google.cloud.automl.v1beta1.OutputConfig.gcs_destination]
+   * must be set unless specified otherwise for a domain.
+   * Only ground truth annotations are exported (not approved annotations are
+   * not exported).
+   * The outputs correspond to how the data was imported, and may be used as
+   * input to import data. The output formats are represented as EBNF with literal
+   * commas and same non-terminal symbols definitions are these in import data's
+   * [InputConfig][google.cloud.automl.v1beta1.InputConfig]:
+   *  *  For Image Object Detection:
+   *         CSV file(s) `image_object_detection_1.csv`,
+   *         `image_object_detection_2.csv`,...,`image_object_detection_N.csv`
+   *         with each line in format:
+   *         ML_USE,GCS_FILE_PATH,LABEL,BOUNDING_BOX
+   *         where GCS_FILE_PATHs point at the original, source locations of the
+   *         imported images.
+   *  *  For Video Classification:
+   *         CSV file `video_classification.csv`, with each line in format:
+   *         ML_USE,GCS_FILE_PATH
+   *         (may have muliple lines per a single ML_USE).
+   *         Each GCS_FILE_PATH leads to another .csv file which
+   *         describes examples that have given ML_USE, using the following
+   *         row format:
+   *         GCS_FILE_PATH,LABEL,TIME_SEGMENT_START,TIME_SEGMENT_END
+   *         Here GCS_FILE_PATHs point at the original, source locations of the
+   *         imported videos.
+   *  *  For Text Extraction:
+   *         CSV file `text_extraction.csv`, with each line in format:
+   *         ML_USE,GCS_FILE_PATH
+   *         GCS_FILE_PATH leads to a .JSONL (i.e. JSON Lines) file which
+   *         contains, per line, a proto that wraps a TextSnippet proto (in json
+   *         representation) followed by AnnotationPayload protos (called
+   *         annotations). If initially documents had been imported, corresponding
+   *         OCR-ed representation is returned.
+   *   *  For Tables:
+   *         Output depends on whether the dataset was imported from GCS or
+   *         BigQuery.
+   *         GCS case:
+   * [gcs_destination][google.cloud.automl.v1beta1.OutputConfig.gcs_destination]
+   *           must be set. Exported are CSV file(s) `tables_1.csv`,
+   *           `tables_2.csv`,...,`tables_N.csv` with each having as header line
+   *           the table's column names, and all other lines contain values for
+   *           the header columns.
+   *         BigQuery case:
+   * [bigquery_destination][google.cloud.automl.v1beta1.OutputConfig.bigquery_destination]
+   *           pointing to a BigQuery project must be set. In the given project a
+   *           new dataset will be created with name
+   * `export_data_<automl-dataset-display-name>_<timestamp-of-export-call>`
+   *           where <automl-dataset-display-name> will be made
+   *           BigQuery-dataset-name compatible (e.g. most special characters will
+   *           become underscores), and timestamp will be in
+   *           YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" format. In that
+   *           dataset a new table called `primary_table` will be created, and
+   *           filled with precisely the same data as this obtained on import.
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.OutputConfig} @@ -435,6 +641,13 @@ public com.google.cloud.automl.v1beta1.OutputConfig buildPartial() { result.destination_ = gcsDestinationBuilder_.build(); } } + if (destinationCase_ == 2) { + if (bigqueryDestinationBuilder_ == null) { + result.destination_ = destination_; + } else { + result.destination_ = bigqueryDestinationBuilder_.build(); + } + } result.destinationCase_ = destinationCase_; onBuilt(); return result; @@ -491,6 +704,11 @@ public Builder mergeFrom(com.google.cloud.automl.v1beta1.OutputConfig other) { mergeGcsDestination(other.getGcsDestination()); break; } + case BIGQUERY_DESTINATION: + { + mergeBigqueryDestination(other.getBigqueryDestination()); + break; + } case DESTINATION_NOT_SET: { break; @@ -548,7 +766,12 @@ public Builder clearDestination() { * * *
-     * The GCS location where the output must be written to.
+     * The Google Cloud Storage location where the output is to be written to.
+     * For Image Object Detection, Text Extraction, Video Classification and
+     * Tables, in the given directory a new directory will be created with name:
+     * export_data-<dataset-display-name>-<timestamp-of-export-call>
+     * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All
+     * export output will be written into that directory.
      * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; @@ -560,7 +783,12 @@ public boolean hasGcsDestination() { * * *
-     * The GCS location where the output must be written to.
+     * The Google Cloud Storage location where the output is to be written to.
+     * For Image Object Detection, Text Extraction, Video Classification and
+     * Tables, in the given directory a new directory will be created with name:
+     * export_data-<dataset-display-name>-<timestamp-of-export-call>
+     * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All
+     * export output will be written into that directory.
      * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; @@ -582,7 +810,12 @@ public com.google.cloud.automl.v1beta1.GcsDestination getGcsDestination() { * * *
-     * The GCS location where the output must be written to.
+     * The Google Cloud Storage location where the output is to be written to.
+     * For Image Object Detection, Text Extraction, Video Classification and
+     * Tables, in the given directory a new directory will be created with name:
+     * export_data-<dataset-display-name>-<timestamp-of-export-call>
+     * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All
+     * export output will be written into that directory.
      * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; @@ -604,7 +837,12 @@ public Builder setGcsDestination(com.google.cloud.automl.v1beta1.GcsDestination * * *
-     * The GCS location where the output must be written to.
+     * The Google Cloud Storage location where the output is to be written to.
+     * For Image Object Detection, Text Extraction, Video Classification and
+     * Tables, in the given directory a new directory will be created with name:
+     * export_data-<dataset-display-name>-<timestamp-of-export-call>
+     * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All
+     * export output will be written into that directory.
      * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; @@ -624,7 +862,12 @@ public Builder setGcsDestination( * * *
-     * The GCS location where the output must be written to.
+     * The Google Cloud Storage location where the output is to be written to.
+     * For Image Object Detection, Text Extraction, Video Classification and
+     * Tables, in the given directory a new directory will be created with name:
+     * export_data-<dataset-display-name>-<timestamp-of-export-call>
+     * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All
+     * export output will be written into that directory.
      * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; @@ -656,7 +899,12 @@ public Builder mergeGcsDestination(com.google.cloud.automl.v1beta1.GcsDestinatio * * *
-     * The GCS location where the output must be written to.
+     * The Google Cloud Storage location where the output is to be written to.
+     * For Image Object Detection, Text Extraction, Video Classification and
+     * Tables, in the given directory a new directory will be created with name:
+     * export_data-<dataset-display-name>-<timestamp-of-export-call>
+     * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All
+     * export output will be written into that directory.
      * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; @@ -681,7 +929,12 @@ public Builder clearGcsDestination() { * * *
-     * The GCS location where the output must be written to.
+     * The Google Cloud Storage location where the output is to be written to.
+     * For Image Object Detection, Text Extraction, Video Classification and
+     * Tables, in the given directory a new directory will be created with name:
+     * export_data-<dataset-display-name>-<timestamp-of-export-call>
+     * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All
+     * export output will be written into that directory.
      * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; @@ -693,7 +946,12 @@ public com.google.cloud.automl.v1beta1.GcsDestination.Builder getGcsDestinationB * * *
-     * The GCS location where the output must be written to.
+     * The Google Cloud Storage location where the output is to be written to.
+     * For Image Object Detection, Text Extraction, Video Classification and
+     * Tables, in the given directory a new directory will be created with name:
+     * export_data-<dataset-display-name>-<timestamp-of-export-call>
+     * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All
+     * export output will be written into that directory.
      * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; @@ -712,7 +970,12 @@ public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestination * * *
-     * The GCS location where the output must be written to.
+     * The Google Cloud Storage location where the output is to be written to.
+     * For Image Object Detection, Text Extraction, Video Classification and
+     * Tables, in the given directory a new directory will be created with name:
+     * export_data-<dataset-display-name>-<timestamp-of-export-call>
+     * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All
+     * export output will be written into that directory.
      * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; @@ -742,6 +1005,213 @@ public com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestination return gcsDestinationBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BigQueryDestination, + com.google.cloud.automl.v1beta1.BigQueryDestination.Builder, + com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder> + bigqueryDestinationBuilder_; + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public boolean hasBigqueryDestination() { + return destinationCase_ == 2; + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestination() { + if (bigqueryDestinationBuilder_ == null) { + if (destinationCase_ == 2) { + return (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_; + } + return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); + } else { + if (destinationCase_ == 2) { + return bigqueryDestinationBuilder_.getMessage(); + } + return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public Builder setBigqueryDestination( + com.google.cloud.automl.v1beta1.BigQueryDestination value) { + if (bigqueryDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destination_ = value; + onChanged(); + } else { + bigqueryDestinationBuilder_.setMessage(value); + } + destinationCase_ = 2; + return this; + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public Builder setBigqueryDestination( + com.google.cloud.automl.v1beta1.BigQueryDestination.Builder builderForValue) { + if (bigqueryDestinationBuilder_ == null) { + destination_ = builderForValue.build(); + onChanged(); + } else { + bigqueryDestinationBuilder_.setMessage(builderForValue.build()); + } + destinationCase_ = 2; + return this; + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public Builder mergeBigqueryDestination( + com.google.cloud.automl.v1beta1.BigQueryDestination value) { + if (bigqueryDestinationBuilder_ == null) { + if (destinationCase_ == 2 + && destination_ + != com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance()) { + destination_ = + com.google.cloud.automl.v1beta1.BigQueryDestination.newBuilder( + (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_) + .mergeFrom(value) + .buildPartial(); + } else { + destination_ = value; + } + onChanged(); + } else { + if (destinationCase_ == 2) { + bigqueryDestinationBuilder_.mergeFrom(value); + } + bigqueryDestinationBuilder_.setMessage(value); + } + destinationCase_ = 2; + return this; + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public Builder clearBigqueryDestination() { + if (bigqueryDestinationBuilder_ == null) { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + } else { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + } + bigqueryDestinationBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public com.google.cloud.automl.v1beta1.BigQueryDestination.Builder + getBigqueryDestinationBuilder() { + return getBigqueryDestinationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + public com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder + getBigqueryDestinationOrBuilder() { + if ((destinationCase_ == 2) && (bigqueryDestinationBuilder_ != null)) { + return bigqueryDestinationBuilder_.getMessageOrBuilder(); + } else { + if (destinationCase_ == 2) { + return (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_; + } + return com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); + } + } + /** + * + * + *
+     * The BigQuery location where the output is to be written to.
+     * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BigQueryDestination, + com.google.cloud.automl.v1beta1.BigQueryDestination.Builder, + com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder> + getBigqueryDestinationFieldBuilder() { + if (bigqueryDestinationBuilder_ == null) { + if (!(destinationCase_ == 2)) { + destination_ = com.google.cloud.automl.v1beta1.BigQueryDestination.getDefaultInstance(); + } + bigqueryDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.BigQueryDestination, + com.google.cloud.automl.v1beta1.BigQueryDestination.Builder, + com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder>( + (com.google.cloud.automl.v1beta1.BigQueryDestination) destination_, + getParentForChildren(), + isClean()); + destination_ = null; + } + destinationCase_ = 2; + onChanged(); + ; + return bigqueryDestinationBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfigOrBuilder.java index 26b6ca60bc23..a90e2574200c 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfigOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/OutputConfigOrBuilder.java @@ -12,7 +12,12 @@ public interface OutputConfigOrBuilder * * *
-   * The GCS location where the output must be written to.
+   * The Google Cloud Storage location where the output is to be written to.
+   * For Image Object Detection, Text Extraction, Video Classification and
+   * Tables, in the given directory a new directory will be created with name:
+   * export_data-<dataset-display-name>-<timestamp-of-export-call>
+   * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All
+   * export output will be written into that directory.
    * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; @@ -22,7 +27,12 @@ public interface OutputConfigOrBuilder * * *
-   * The GCS location where the output must be written to.
+   * The Google Cloud Storage location where the output is to be written to.
+   * For Image Object Detection, Text Extraction, Video Classification and
+   * Tables, in the given directory a new directory will be created with name:
+   * export_data-<dataset-display-name>-<timestamp-of-export-call>
+   * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All
+   * export output will be written into that directory.
    * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; @@ -32,12 +42,48 @@ public interface OutputConfigOrBuilder * * *
-   * The GCS location where the output must be written to.
+   * The Google Cloud Storage location where the output is to be written to.
+   * For Image Object Detection, Text Extraction, Video Classification and
+   * Tables, in the given directory a new directory will be created with name:
+   * export_data-<dataset-display-name>-<timestamp-of-export-call>
+   * where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All
+   * export output will be written into that directory.
    * 
* * .google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1; */ com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder(); + /** + * + * + *
+   * The BigQuery location where the output is to be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + boolean hasBigqueryDestination(); + /** + * + * + *
+   * The BigQuery location where the output is to be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + com.google.cloud.automl.v1beta1.BigQueryDestination getBigqueryDestination(); + /** + * + * + *
+   * The BigQuery location where the output is to be written to.
+   * 
+ * + * .google.cloud.automl.v1beta1.BigQueryDestination bigquery_destination = 2; + */ + com.google.cloud.automl.v1beta1.BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder(); + public com.google.cloud.automl.v1beta1.OutputConfig.DestinationCase getDestinationCase(); } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequest.java index a98823a86861..c05974ed75ab 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequest.java @@ -7,8 +7,7 @@ * * *
- * Request message for
- * [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
+ * Request message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.PredictRequest} @@ -256,9 +255,15 @@ public int getParamsCount() { * characters long. * * For Image Classification: * `score_threshold` - (float) A value from 0.0 to 1.0. When the model - * makes predictions for an - * image, it will only produce results that have at least this confidence - * score threshold. The default is 0.5. + * makes predictions for an image, it will only produce results that have + * at least this confidence score. The default is 0.5. + * * For Image Object Detection: + * `score_threshold` - (float) When Model detects objects on the image, + * it will only produce bounding boxes which have at least this + * confidence score. Value in 0 to 1 range, default is 0.5. + * `max_bounding_box_count` - (int64) No more than this number of bounding + * boxes will be returned in the response. Default is 100, the + * requested value may be limited by server. *
* * map<string, string> params = 3; @@ -282,9 +287,15 @@ public java.util.Map getParams() { * characters long. * * For Image Classification: * `score_threshold` - (float) A value from 0.0 to 1.0. When the model - * makes predictions for an - * image, it will only produce results that have at least this confidence - * score threshold. The default is 0.5. + * makes predictions for an image, it will only produce results that have + * at least this confidence score. The default is 0.5. + * * For Image Object Detection: + * `score_threshold` - (float) When Model detects objects on the image, + * it will only produce bounding boxes which have at least this + * confidence score. Value in 0 to 1 range, default is 0.5. + * `max_bounding_box_count` - (int64) No more than this number of bounding + * boxes will be returned in the response. Default is 100, the + * requested value may be limited by server. *
* * map<string, string> params = 3; @@ -300,9 +311,15 @@ public java.util.Map getParamsMap() { * characters long. * * For Image Classification: * `score_threshold` - (float) A value from 0.0 to 1.0. When the model - * makes predictions for an - * image, it will only produce results that have at least this confidence - * score threshold. The default is 0.5. + * makes predictions for an image, it will only produce results that have + * at least this confidence score. The default is 0.5. + * * For Image Object Detection: + * `score_threshold` - (float) When Model detects objects on the image, + * it will only produce bounding boxes which have at least this + * confidence score. Value in 0 to 1 range, default is 0.5. + * `max_bounding_box_count` - (int64) No more than this number of bounding + * boxes will be returned in the response. Default is 100, the + * requested value may be limited by server. *
* * map<string, string> params = 3; @@ -322,9 +339,15 @@ public java.lang.String getParamsOrDefault(java.lang.String key, java.lang.Strin * characters long. * * For Image Classification: * `score_threshold` - (float) A value from 0.0 to 1.0. When the model - * makes predictions for an - * image, it will only produce results that have at least this confidence - * score threshold. The default is 0.5. + * makes predictions for an image, it will only produce results that have + * at least this confidence score. The default is 0.5. + * * For Image Object Detection: + * `score_threshold` - (float) When Model detects objects on the image, + * it will only produce bounding boxes which have at least this + * confidence score. Value in 0 to 1 range, default is 0.5. + * `max_bounding_box_count` - (int64) No more than this number of bounding + * boxes will be returned in the response. Default is 100, the + * requested value may be limited by server. *
* * map<string, string> params = 3; @@ -534,8 +557,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for
-   * [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
+   * Request message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.PredictRequest} @@ -1058,9 +1080,15 @@ public int getParamsCount() { * characters long. * * For Image Classification: * `score_threshold` - (float) A value from 0.0 to 1.0. When the model - * makes predictions for an - * image, it will only produce results that have at least this confidence - * score threshold. The default is 0.5. + * makes predictions for an image, it will only produce results that have + * at least this confidence score. The default is 0.5. + * * For Image Object Detection: + * `score_threshold` - (float) When Model detects objects on the image, + * it will only produce bounding boxes which have at least this + * confidence score. Value in 0 to 1 range, default is 0.5. + * `max_bounding_box_count` - (int64) No more than this number of bounding + * boxes will be returned in the response. Default is 100, the + * requested value may be limited by server. *
* * map<string, string> params = 3; @@ -1084,9 +1112,15 @@ public java.util.Map getParams() { * characters long. * * For Image Classification: * `score_threshold` - (float) A value from 0.0 to 1.0. When the model - * makes predictions for an - * image, it will only produce results that have at least this confidence - * score threshold. The default is 0.5. + * makes predictions for an image, it will only produce results that have + * at least this confidence score. The default is 0.5. + * * For Image Object Detection: + * `score_threshold` - (float) When Model detects objects on the image, + * it will only produce bounding boxes which have at least this + * confidence score. Value in 0 to 1 range, default is 0.5. + * `max_bounding_box_count` - (int64) No more than this number of bounding + * boxes will be returned in the response. Default is 100, the + * requested value may be limited by server. *
* * map<string, string> params = 3; @@ -1102,9 +1136,15 @@ public java.util.Map getParamsMap() { * characters long. * * For Image Classification: * `score_threshold` - (float) A value from 0.0 to 1.0. When the model - * makes predictions for an - * image, it will only produce results that have at least this confidence - * score threshold. The default is 0.5. + * makes predictions for an image, it will only produce results that have + * at least this confidence score. The default is 0.5. + * * For Image Object Detection: + * `score_threshold` - (float) When Model detects objects on the image, + * it will only produce bounding boxes which have at least this + * confidence score. Value in 0 to 1 range, default is 0.5. + * `max_bounding_box_count` - (int64) No more than this number of bounding + * boxes will be returned in the response. Default is 100, the + * requested value may be limited by server. *
* * map<string, string> params = 3; @@ -1125,9 +1165,15 @@ public java.lang.String getParamsOrDefault( * characters long. * * For Image Classification: * `score_threshold` - (float) A value from 0.0 to 1.0. When the model - * makes predictions for an - * image, it will only produce results that have at least this confidence - * score threshold. The default is 0.5. + * makes predictions for an image, it will only produce results that have + * at least this confidence score. The default is 0.5. + * * For Image Object Detection: + * `score_threshold` - (float) When Model detects objects on the image, + * it will only produce bounding boxes which have at least this + * confidence score. Value in 0 to 1 range, default is 0.5. + * `max_bounding_box_count` - (int64) No more than this number of bounding + * boxes will be returned in the response. Default is 100, the + * requested value may be limited by server. *
* * map<string, string> params = 3; @@ -1155,9 +1201,15 @@ public Builder clearParams() { * characters long. * * For Image Classification: * `score_threshold` - (float) A value from 0.0 to 1.0. When the model - * makes predictions for an - * image, it will only produce results that have at least this confidence - * score threshold. The default is 0.5. + * makes predictions for an image, it will only produce results that have + * at least this confidence score. The default is 0.5. + * * For Image Object Detection: + * `score_threshold` - (float) When Model detects objects on the image, + * it will only produce bounding boxes which have at least this + * confidence score. Value in 0 to 1 range, default is 0.5. + * `max_bounding_box_count` - (int64) No more than this number of bounding + * boxes will be returned in the response. Default is 100, the + * requested value may be limited by server. *
* * map<string, string> params = 3; @@ -1182,9 +1234,15 @@ public java.util.Map getMutableParams() { * characters long. * * For Image Classification: * `score_threshold` - (float) A value from 0.0 to 1.0. When the model - * makes predictions for an - * image, it will only produce results that have at least this confidence - * score threshold. The default is 0.5. + * makes predictions for an image, it will only produce results that have + * at least this confidence score. The default is 0.5. + * * For Image Object Detection: + * `score_threshold` - (float) When Model detects objects on the image, + * it will only produce bounding boxes which have at least this + * confidence score. Value in 0 to 1 range, default is 0.5. + * `max_bounding_box_count` - (int64) No more than this number of bounding + * boxes will be returned in the response. Default is 100, the + * requested value may be limited by server. *
* * map<string, string> params = 3; @@ -1207,9 +1265,15 @@ public Builder putParams(java.lang.String key, java.lang.String value) { * characters long. * * For Image Classification: * `score_threshold` - (float) A value from 0.0 to 1.0. When the model - * makes predictions for an - * image, it will only produce results that have at least this confidence - * score threshold. The default is 0.5. + * makes predictions for an image, it will only produce results that have + * at least this confidence score. The default is 0.5. + * * For Image Object Detection: + * `score_threshold` - (float) When Model detects objects on the image, + * it will only produce bounding boxes which have at least this + * confidence score. Value in 0 to 1 range, default is 0.5. + * `max_bounding_box_count` - (int64) No more than this number of bounding + * boxes will be returned in the response. Default is 100, the + * requested value may be limited by server. * * * map<string, string> params = 3; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequestOrBuilder.java index 4b8674479994..a8a897f15493 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictRequestOrBuilder.java @@ -74,9 +74,15 @@ public interface PredictRequestOrBuilder * characters long. * * For Image Classification: * `score_threshold` - (float) A value from 0.0 to 1.0. When the model - * makes predictions for an - * image, it will only produce results that have at least this confidence - * score threshold. The default is 0.5. + * makes predictions for an image, it will only produce results that have + * at least this confidence score. The default is 0.5. + * * For Image Object Detection: + * `score_threshold` - (float) When Model detects objects on the image, + * it will only produce bounding boxes which have at least this + * confidence score. Value in 0 to 1 range, default is 0.5. + * `max_bounding_box_count` - (int64) No more than this number of bounding + * boxes will be returned in the response. Default is 100, the + * requested value may be limited by server. * * * map<string, string> params = 3; @@ -90,9 +96,15 @@ public interface PredictRequestOrBuilder * characters long. * * For Image Classification: * `score_threshold` - (float) A value from 0.0 to 1.0. When the model - * makes predictions for an - * image, it will only produce results that have at least this confidence - * score threshold. The default is 0.5. + * makes predictions for an image, it will only produce results that have + * at least this confidence score. The default is 0.5. + * * For Image Object Detection: + * `score_threshold` - (float) When Model detects objects on the image, + * it will only produce bounding boxes which have at least this + * confidence score. Value in 0 to 1 range, default is 0.5. + * `max_bounding_box_count` - (int64) No more than this number of bounding + * boxes will be returned in the response. Default is 100, the + * requested value may be limited by server. * * * map<string, string> params = 3; @@ -109,9 +121,15 @@ public interface PredictRequestOrBuilder * characters long. * * For Image Classification: * `score_threshold` - (float) A value from 0.0 to 1.0. When the model - * makes predictions for an - * image, it will only produce results that have at least this confidence - * score threshold. The default is 0.5. + * makes predictions for an image, it will only produce results that have + * at least this confidence score. The default is 0.5. + * * For Image Object Detection: + * `score_threshold` - (float) When Model detects objects on the image, + * it will only produce bounding boxes which have at least this + * confidence score. Value in 0 to 1 range, default is 0.5. + * `max_bounding_box_count` - (int64) No more than this number of bounding + * boxes will be returned in the response. Default is 100, the + * requested value may be limited by server. * * * map<string, string> params = 3; @@ -125,9 +143,15 @@ public interface PredictRequestOrBuilder * characters long. * * For Image Classification: * `score_threshold` - (float) A value from 0.0 to 1.0. When the model - * makes predictions for an - * image, it will only produce results that have at least this confidence - * score threshold. The default is 0.5. + * makes predictions for an image, it will only produce results that have + * at least this confidence score. The default is 0.5. + * * For Image Object Detection: + * `score_threshold` - (float) When Model detects objects on the image, + * it will only produce bounding boxes which have at least this + * confidence score. Value in 0 to 1 range, default is 0.5. + * `max_bounding_box_count` - (int64) No more than this number of bounding + * boxes will be returned in the response. Default is 100, the + * requested value may be limited by server. * * * map<string, string> params = 3; @@ -141,9 +165,15 @@ public interface PredictRequestOrBuilder * characters long. * * For Image Classification: * `score_threshold` - (float) A value from 0.0 to 1.0. When the model - * makes predictions for an - * image, it will only produce results that have at least this confidence - * score threshold. The default is 0.5. + * makes predictions for an image, it will only produce results that have + * at least this confidence score. The default is 0.5. + * * For Image Object Detection: + * `score_threshold` - (float) When Model detects objects on the image, + * it will only produce bounding boxes which have at least this + * confidence score. Value in 0 to 1 range, default is 0.5. + * `max_bounding_box_count` - (int64) No more than this number of bounding + * boxes will be returned in the response. Default is 100, the + * requested value may be limited by server. * * * map<string, string> params = 3; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponse.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponse.java index 93603ada205d..5842f1401db2 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponse.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponse.java @@ -7,11 +7,7 @@ * * *
- * Response message for
- * [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
- * Currently, this is only
- * used to return an image recognition prediction result. More prediction
- * output metadata might be introduced in the future.
+ * Response message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.PredictResponse} @@ -137,6 +133,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * *
    * Prediction result.
+   * Translation and Text Sentiment will return precisely one payload.
    * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -149,6 +146,7 @@ public java.util.List getPayl * *
    * Prediction result.
+   * Translation and Text Sentiment will return precisely one payload.
    * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -162,6 +160,7 @@ public java.util.List getPayl * *
    * Prediction result.
+   * Translation and Text Sentiment will return precisely one payload.
    * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -174,6 +173,7 @@ public int getPayloadCount() { * *
    * Prediction result.
+   * Translation and Text Sentiment will return precisely one payload.
    * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -186,6 +186,7 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload getPayload(int index) { * *
    * Prediction result.
+   * Translation and Text Sentiment will return precisely one payload.
    * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -224,6 +225,18 @@ public int getMetadataCount() { * *
    * Additional domain-specific prediction response metadata.
+   * * For Image Object Detection:
+   *  `max_bounding_box_count` - (int64) At most that many bounding boxes per
+   *      image could have been returned.
+   * * For Text Sentiment:
+   *  `sentiment_score` - (float, deprecated) A value between -1 and 1,
+   *      -1 maps to least positive sentiment, while 1 maps to the most positive
+   *      one and the higher the score, the more positive the sentiment in the
+   *      document is. Yet these values are relative to the training data, so
+   *      e.g. if all data was positive then -1 will be also positive (though
+   *      the least).
+   *      The sentiment_score shouldn't be confused with "score" or "magnitude"
+   *      from the previous Natural Language Sentiment Analysis API.
    * 
* * map<string, string> metadata = 2; @@ -244,6 +257,18 @@ public java.util.Map getMetadata() { * *
    * Additional domain-specific prediction response metadata.
+   * * For Image Object Detection:
+   *  `max_bounding_box_count` - (int64) At most that many bounding boxes per
+   *      image could have been returned.
+   * * For Text Sentiment:
+   *  `sentiment_score` - (float, deprecated) A value between -1 and 1,
+   *      -1 maps to least positive sentiment, while 1 maps to the most positive
+   *      one and the higher the score, the more positive the sentiment in the
+   *      document is. Yet these values are relative to the training data, so
+   *      e.g. if all data was positive then -1 will be also positive (though
+   *      the least).
+   *      The sentiment_score shouldn't be confused with "score" or "magnitude"
+   *      from the previous Natural Language Sentiment Analysis API.
    * 
* * map<string, string> metadata = 2; @@ -256,6 +281,18 @@ public java.util.Map getMetadataMap() { * *
    * Additional domain-specific prediction response metadata.
+   * * For Image Object Detection:
+   *  `max_bounding_box_count` - (int64) At most that many bounding boxes per
+   *      image could have been returned.
+   * * For Text Sentiment:
+   *  `sentiment_score` - (float, deprecated) A value between -1 and 1,
+   *      -1 maps to least positive sentiment, while 1 maps to the most positive
+   *      one and the higher the score, the more positive the sentiment in the
+   *      document is. Yet these values are relative to the training data, so
+   *      e.g. if all data was positive then -1 will be also positive (though
+   *      the least).
+   *      The sentiment_score shouldn't be confused with "score" or "magnitude"
+   *      from the previous Natural Language Sentiment Analysis API.
    * 
* * map<string, string> metadata = 2; @@ -273,6 +310,18 @@ public java.lang.String getMetadataOrDefault( * *
    * Additional domain-specific prediction response metadata.
+   * * For Image Object Detection:
+   *  `max_bounding_box_count` - (int64) At most that many bounding boxes per
+   *      image could have been returned.
+   * * For Text Sentiment:
+   *  `sentiment_score` - (float, deprecated) A value between -1 and 1,
+   *      -1 maps to least positive sentiment, while 1 maps to the most positive
+   *      one and the higher the score, the more positive the sentiment in the
+   *      document is. Yet these values are relative to the training data, so
+   *      e.g. if all data was positive then -1 will be also positive (though
+   *      the least).
+   *      The sentiment_score shouldn't be confused with "score" or "magnitude"
+   *      from the previous Natural Language Sentiment Analysis API.
    * 
* * map<string, string> metadata = 2; @@ -470,11 +519,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response message for
-   * [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
-   * Currently, this is only
-   * used to return an image recognition prediction result. More prediction
-   * output metadata might be introduced in the future.
+   * Response message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.PredictResponse} @@ -714,6 +759,7 @@ private void ensurePayloadIsMutable() { * *
      * Prediction result.
+     * Translation and Text Sentiment will return precisely one payload.
      * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -730,6 +776,7 @@ public java.util.List getPayl * *
      * Prediction result.
+     * Translation and Text Sentiment will return precisely one payload.
      * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -746,6 +793,7 @@ public int getPayloadCount() { * *
      * Prediction result.
+     * Translation and Text Sentiment will return precisely one payload.
      * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -762,6 +810,7 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload getPayload(int index) { * *
      * Prediction result.
+     * Translation and Text Sentiment will return precisely one payload.
      * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -784,6 +833,7 @@ public Builder setPayload(int index, com.google.cloud.automl.v1beta1.AnnotationP * *
      * Prediction result.
+     * Translation and Text Sentiment will return precisely one payload.
      * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -804,6 +854,7 @@ public Builder setPayload( * *
      * Prediction result.
+     * Translation and Text Sentiment will return precisely one payload.
      * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -826,6 +877,7 @@ public Builder addPayload(com.google.cloud.automl.v1beta1.AnnotationPayload valu * *
      * Prediction result.
+     * Translation and Text Sentiment will return precisely one payload.
      * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -848,6 +900,7 @@ public Builder addPayload(int index, com.google.cloud.automl.v1beta1.AnnotationP * *
      * Prediction result.
+     * Translation and Text Sentiment will return precisely one payload.
      * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -868,6 +921,7 @@ public Builder addPayload( * *
      * Prediction result.
+     * Translation and Text Sentiment will return precisely one payload.
      * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -888,6 +942,7 @@ public Builder addPayload( * *
      * Prediction result.
+     * Translation and Text Sentiment will return precisely one payload.
      * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -908,6 +963,7 @@ public Builder addAllPayload( * *
      * Prediction result.
+     * Translation and Text Sentiment will return precisely one payload.
      * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -927,6 +983,7 @@ public Builder clearPayload() { * *
      * Prediction result.
+     * Translation and Text Sentiment will return precisely one payload.
      * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -946,6 +1003,7 @@ public Builder removePayload(int index) { * *
      * Prediction result.
+     * Translation and Text Sentiment will return precisely one payload.
      * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -958,6 +1016,7 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder getPayloadBuild * *
      * Prediction result.
+     * Translation and Text Sentiment will return precisely one payload.
      * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -975,6 +1034,7 @@ public com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBu * *
      * Prediction result.
+     * Translation and Text Sentiment will return precisely one payload.
      * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -992,6 +1052,7 @@ public com.google.cloud.automl.v1beta1.AnnotationPayloadOrBuilder getPayloadOrBu * *
      * Prediction result.
+     * Translation and Text Sentiment will return precisely one payload.
      * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -1005,6 +1066,7 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder addPayloadBuild * *
      * Prediction result.
+     * Translation and Text Sentiment will return precisely one payload.
      * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -1019,6 +1081,7 @@ public com.google.cloud.automl.v1beta1.AnnotationPayload.Builder addPayloadBuild * *
      * Prediction result.
+     * Translation and Text Sentiment will return precisely one payload.
      * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -1076,6 +1139,18 @@ public int getMetadataCount() { * *
      * Additional domain-specific prediction response metadata.
+     * * For Image Object Detection:
+     *  `max_bounding_box_count` - (int64) At most that many bounding boxes per
+     *      image could have been returned.
+     * * For Text Sentiment:
+     *  `sentiment_score` - (float, deprecated) A value between -1 and 1,
+     *      -1 maps to least positive sentiment, while 1 maps to the most positive
+     *      one and the higher the score, the more positive the sentiment in the
+     *      document is. Yet these values are relative to the training data, so
+     *      e.g. if all data was positive then -1 will be also positive (though
+     *      the least).
+     *      The sentiment_score shouldn't be confused with "score" or "magnitude"
+     *      from the previous Natural Language Sentiment Analysis API.
      * 
* * map<string, string> metadata = 2; @@ -1096,6 +1171,18 @@ public java.util.Map getMetadata() { * *
      * Additional domain-specific prediction response metadata.
+     * * For Image Object Detection:
+     *  `max_bounding_box_count` - (int64) At most that many bounding boxes per
+     *      image could have been returned.
+     * * For Text Sentiment:
+     *  `sentiment_score` - (float, deprecated) A value between -1 and 1,
+     *      -1 maps to least positive sentiment, while 1 maps to the most positive
+     *      one and the higher the score, the more positive the sentiment in the
+     *      document is. Yet these values are relative to the training data, so
+     *      e.g. if all data was positive then -1 will be also positive (though
+     *      the least).
+     *      The sentiment_score shouldn't be confused with "score" or "magnitude"
+     *      from the previous Natural Language Sentiment Analysis API.
      * 
* * map<string, string> metadata = 2; @@ -1108,6 +1195,18 @@ public java.util.Map getMetadataMap() { * *
      * Additional domain-specific prediction response metadata.
+     * * For Image Object Detection:
+     *  `max_bounding_box_count` - (int64) At most that many bounding boxes per
+     *      image could have been returned.
+     * * For Text Sentiment:
+     *  `sentiment_score` - (float, deprecated) A value between -1 and 1,
+     *      -1 maps to least positive sentiment, while 1 maps to the most positive
+     *      one and the higher the score, the more positive the sentiment in the
+     *      document is. Yet these values are relative to the training data, so
+     *      e.g. if all data was positive then -1 will be also positive (though
+     *      the least).
+     *      The sentiment_score shouldn't be confused with "score" or "magnitude"
+     *      from the previous Natural Language Sentiment Analysis API.
      * 
* * map<string, string> metadata = 2; @@ -1125,6 +1224,18 @@ public java.lang.String getMetadataOrDefault( * *
      * Additional domain-specific prediction response metadata.
+     * * For Image Object Detection:
+     *  `max_bounding_box_count` - (int64) At most that many bounding boxes per
+     *      image could have been returned.
+     * * For Text Sentiment:
+     *  `sentiment_score` - (float, deprecated) A value between -1 and 1,
+     *      -1 maps to least positive sentiment, while 1 maps to the most positive
+     *      one and the higher the score, the more positive the sentiment in the
+     *      document is. Yet these values are relative to the training data, so
+     *      e.g. if all data was positive then -1 will be also positive (though
+     *      the least).
+     *      The sentiment_score shouldn't be confused with "score" or "magnitude"
+     *      from the previous Natural Language Sentiment Analysis API.
      * 
* * map<string, string> metadata = 2; @@ -1149,6 +1260,18 @@ public Builder clearMetadata() { * *
      * Additional domain-specific prediction response metadata.
+     * * For Image Object Detection:
+     *  `max_bounding_box_count` - (int64) At most that many bounding boxes per
+     *      image could have been returned.
+     * * For Text Sentiment:
+     *  `sentiment_score` - (float, deprecated) A value between -1 and 1,
+     *      -1 maps to least positive sentiment, while 1 maps to the most positive
+     *      one and the higher the score, the more positive the sentiment in the
+     *      document is. Yet these values are relative to the training data, so
+     *      e.g. if all data was positive then -1 will be also positive (though
+     *      the least).
+     *      The sentiment_score shouldn't be confused with "score" or "magnitude"
+     *      from the previous Natural Language Sentiment Analysis API.
      * 
* * map<string, string> metadata = 2; @@ -1170,6 +1293,18 @@ public java.util.Map getMutableMetadata() { * *
      * Additional domain-specific prediction response metadata.
+     * * For Image Object Detection:
+     *  `max_bounding_box_count` - (int64) At most that many bounding boxes per
+     *      image could have been returned.
+     * * For Text Sentiment:
+     *  `sentiment_score` - (float, deprecated) A value between -1 and 1,
+     *      -1 maps to least positive sentiment, while 1 maps to the most positive
+     *      one and the higher the score, the more positive the sentiment in the
+     *      document is. Yet these values are relative to the training data, so
+     *      e.g. if all data was positive then -1 will be also positive (though
+     *      the least).
+     *      The sentiment_score shouldn't be confused with "score" or "magnitude"
+     *      from the previous Natural Language Sentiment Analysis API.
      * 
* * map<string, string> metadata = 2; @@ -1189,6 +1324,18 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) { * *
      * Additional domain-specific prediction response metadata.
+     * * For Image Object Detection:
+     *  `max_bounding_box_count` - (int64) At most that many bounding boxes per
+     *      image could have been returned.
+     * * For Text Sentiment:
+     *  `sentiment_score` - (float, deprecated) A value between -1 and 1,
+     *      -1 maps to least positive sentiment, while 1 maps to the most positive
+     *      one and the higher the score, the more positive the sentiment in the
+     *      document is. Yet these values are relative to the training data, so
+     *      e.g. if all data was positive then -1 will be also positive (though
+     *      the least).
+     *      The sentiment_score shouldn't be confused with "score" or "magnitude"
+     *      from the previous Natural Language Sentiment Analysis API.
      * 
* * map<string, string> metadata = 2; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponseOrBuilder.java index 52c30b2f568a..5e616f7133f1 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponseOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictResponseOrBuilder.java @@ -13,6 +13,7 @@ public interface PredictResponseOrBuilder * *
    * Prediction result.
+   * Translation and Text Sentiment will return precisely one payload.
    * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -23,6 +24,7 @@ public interface PredictResponseOrBuilder * *
    * Prediction result.
+   * Translation and Text Sentiment will return precisely one payload.
    * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -33,6 +35,7 @@ public interface PredictResponseOrBuilder * *
    * Prediction result.
+   * Translation and Text Sentiment will return precisely one payload.
    * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -43,6 +46,7 @@ public interface PredictResponseOrBuilder * *
    * Prediction result.
+   * Translation and Text Sentiment will return precisely one payload.
    * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -54,6 +58,7 @@ public interface PredictResponseOrBuilder * *
    * Prediction result.
+   * Translation and Text Sentiment will return precisely one payload.
    * 
* * repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; @@ -65,6 +70,18 @@ public interface PredictResponseOrBuilder * *
    * Additional domain-specific prediction response metadata.
+   * * For Image Object Detection:
+   *  `max_bounding_box_count` - (int64) At most that many bounding boxes per
+   *      image could have been returned.
+   * * For Text Sentiment:
+   *  `sentiment_score` - (float, deprecated) A value between -1 and 1,
+   *      -1 maps to least positive sentiment, while 1 maps to the most positive
+   *      one and the higher the score, the more positive the sentiment in the
+   *      document is. Yet these values are relative to the training data, so
+   *      e.g. if all data was positive then -1 will be also positive (though
+   *      the least).
+   *      The sentiment_score shouldn't be confused with "score" or "magnitude"
+   *      from the previous Natural Language Sentiment Analysis API.
    * 
* * map<string, string> metadata = 2; @@ -75,6 +92,18 @@ public interface PredictResponseOrBuilder * *
    * Additional domain-specific prediction response metadata.
+   * * For Image Object Detection:
+   *  `max_bounding_box_count` - (int64) At most that many bounding boxes per
+   *      image could have been returned.
+   * * For Text Sentiment:
+   *  `sentiment_score` - (float, deprecated) A value between -1 and 1,
+   *      -1 maps to least positive sentiment, while 1 maps to the most positive
+   *      one and the higher the score, the more positive the sentiment in the
+   *      document is. Yet these values are relative to the training data, so
+   *      e.g. if all data was positive then -1 will be also positive (though
+   *      the least).
+   *      The sentiment_score shouldn't be confused with "score" or "magnitude"
+   *      from the previous Natural Language Sentiment Analysis API.
    * 
* * map<string, string> metadata = 2; @@ -88,6 +117,18 @@ public interface PredictResponseOrBuilder * *
    * Additional domain-specific prediction response metadata.
+   * * For Image Object Detection:
+   *  `max_bounding_box_count` - (int64) At most that many bounding boxes per
+   *      image could have been returned.
+   * * For Text Sentiment:
+   *  `sentiment_score` - (float, deprecated) A value between -1 and 1,
+   *      -1 maps to least positive sentiment, while 1 maps to the most positive
+   *      one and the higher the score, the more positive the sentiment in the
+   *      document is. Yet these values are relative to the training data, so
+   *      e.g. if all data was positive then -1 will be also positive (though
+   *      the least).
+   *      The sentiment_score shouldn't be confused with "score" or "magnitude"
+   *      from the previous Natural Language Sentiment Analysis API.
    * 
* * map<string, string> metadata = 2; @@ -98,6 +139,18 @@ public interface PredictResponseOrBuilder * *
    * Additional domain-specific prediction response metadata.
+   * * For Image Object Detection:
+   *  `max_bounding_box_count` - (int64) At most that many bounding boxes per
+   *      image could have been returned.
+   * * For Text Sentiment:
+   *  `sentiment_score` - (float, deprecated) A value between -1 and 1,
+   *      -1 maps to least positive sentiment, while 1 maps to the most positive
+   *      one and the higher the score, the more positive the sentiment in the
+   *      document is. Yet these values are relative to the training data, so
+   *      e.g. if all data was positive then -1 will be also positive (though
+   *      the least).
+   *      The sentiment_score shouldn't be confused with "score" or "magnitude"
+   *      from the previous Natural Language Sentiment Analysis API.
    * 
* * map<string, string> metadata = 2; @@ -108,6 +161,18 @@ public interface PredictResponseOrBuilder * *
    * Additional domain-specific prediction response metadata.
+   * * For Image Object Detection:
+   *  `max_bounding_box_count` - (int64) At most that many bounding boxes per
+   *      image could have been returned.
+   * * For Text Sentiment:
+   *  `sentiment_score` - (float, deprecated) A value between -1 and 1,
+   *      -1 maps to least positive sentiment, while 1 maps to the most positive
+   *      one and the higher the score, the more positive the sentiment in the
+   *      document is. Yet these values are relative to the training data, so
+   *      e.g. if all data was positive then -1 will be also positive (though
+   *      the least).
+   *      The sentiment_score shouldn't be confused with "score" or "magnitude"
+   *      from the previous Natural Language Sentiment Analysis API.
    * 
* * map<string, string> metadata = 2; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java index 4cc90da42241..ec3dae3eb149 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceProto.java @@ -28,6 +28,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_automl_v1beta1_PredictResponse_MetadataEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_PredictResponse_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_BatchPredictRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_BatchPredictRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_BatchPredictRequest_ParamsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_BatchPredictRequest_ParamsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_BatchPredictResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_BatchPredictResult_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -42,26 +54,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ta1\032\034google/api/annotations.proto\0324googl" + "e/cloud/automl/v1beta1/annotation_payloa" + "d.proto\032,google/cloud/automl/v1beta1/dat" - + "a_items.proto\"\324\001\n\016PredictRequest\022\014\n\004name" - + "\030\001 \001(\t\022<\n\007payload\030\002 \001(\0132+.google.cloud.a" - + "utoml.v1beta1.ExamplePayload\022G\n\006params\030\003" - + " \003(\01327.google.cloud.automl.v1beta1.Predi" - + "ctRequest.ParamsEntry\032-\n\013ParamsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\321\001\n\017Predict" - + "Response\022?\n\007payload\030\001 \003(\0132..google.cloud" - + ".automl.v1beta1.AnnotationPayload\022L\n\010met" - + "adata\030\002 \003(\0132:.google.cloud.automl.v1beta" - + "1.PredictResponse.MetadataEntry\032/\n\rMetad" - + "ataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "2\276\001\n\021PredictionService\022\250\001\n\007Predict\022+.goo" - + "gle.cloud.automl.v1beta1.PredictRequest\032" - + ",.google.cloud.automl.v1beta1.PredictRes" - + "ponse\"B\202\323\344\223\002<\"7/v1beta1/{name=projects/*" - + "/locations/*/models/*}:predict:\001*B\234\001\n\037co" - + "m.google.cloud.automl.v1beta1B\026Predictio" - + "nServiceProtoP\001ZAgoogle.golang.org/genpr" - + "oto/googleapis/cloud/automl/v1beta1;auto" - + "ml\312\002\033Google\\Cloud\\AutoMl\\V1beta1b\006proto3" + + "a_items.proto\032$google/cloud/automl/v1bet" + + "a1/io.proto\032,google/cloud/automl/v1beta1" + + "/operations.proto\032#google/longrunning/op" + + "erations.proto\"\324\001\n\016PredictRequest\022\014\n\004nam" + + "e\030\001 \001(\t\022<\n\007payload\030\002 \001(\0132+.google.cloud." + + "automl.v1beta1.ExamplePayload\022G\n\006params\030" + + "\003 \003(\01327.google.cloud.automl.v1beta1.Pred" + + "ictRequest.ParamsEntry\032-\n\013ParamsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\321\001\n\017Predic" + + "tResponse\022?\n\007payload\030\001 \003(\0132..google.clou" + + "d.automl.v1beta1.AnnotationPayload\022L\n\010me" + + "tadata\030\002 \003(\0132:.google.cloud.automl.v1bet" + + "a1.PredictResponse.MetadataEntry\032/\n\rMeta" + + "dataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"\272\002\n\023BatchPredictRequest\022\014\n\004name\030\001 \001(\t\022" + + "J\n\014input_config\030\003 \001(\01324.google.cloud.aut" + + "oml.v1beta1.BatchPredictInputConfig\022L\n\ro" + + "utput_config\030\004 \001(\01325.google.cloud.automl" + + ".v1beta1.BatchPredictOutputConfig\022L\n\006par" + + "ams\030\005 \003(\0132<.google.cloud.automl.v1beta1." + + "BatchPredictRequest.ParamsEntry\032-\n\013Param" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\024" + + "\n\022BatchPredictResult2\351\002\n\021PredictionServi" + + "ce\022\250\001\n\007Predict\022+.google.cloud.automl.v1b" + + "eta1.PredictRequest\032,.google.cloud.autom" + + "l.v1beta1.PredictResponse\"B\202\323\344\223\002<\"7/v1be" + + "ta1/{name=projects/*/locations/*/models/" + + "*}:predict:\001*\022\250\001\n\014BatchPredict\0220.google." + + "cloud.automl.v1beta1.BatchPredictRequest" + + "\032\035.google.longrunning.Operation\"G\202\323\344\223\002A\"" + + " + * Output only. Root Mean Squared Error (RMSE). + * + * + * float root_mean_squared_error = 1; + */ + float getRootMeanSquaredError(); + + /** + * + * + *
+     * Output only. Mean Absolute Error (MAE).
+     * 
+ * + * float mean_absolute_error = 2; + */ + float getMeanAbsoluteError(); + + /** + * + * + *
+     * Output only. Mean absolute percentage error. Only set if all ground truth
+     * values are are positive.
+     * 
+ * + * float mean_absolute_percentage_error = 3; + */ + float getMeanAbsolutePercentageError(); + + /** + * + * + *
+     * Output only. R squared.
+     * 
+ * + * float r_squared = 4; + */ + float getRSquared(); + } + /** + * + * + *
+   * Metrics for regression problems.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.RegressionEvaluationMetrics} + */ + public static final class RegressionEvaluationMetrics + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.RegressionEvaluationMetrics) + RegressionEvaluationMetricsOrBuilder { + private static final long serialVersionUID = 0L; + // Use RegressionEvaluationMetrics.newBuilder() to construct. + private RegressionEvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RegressionEvaluationMetrics() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RegressionEvaluationMetrics( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + rootMeanSquaredError_ = input.readFloat(); + break; + } + case 21: + { + meanAbsoluteError_ = input.readFloat(); + break; + } + case 29: + { + meanAbsolutePercentageError_ = input.readFloat(); + break; + } + case 37: + { + rSquared_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.RegressionProto + .internal_static_google_cloud_automl_v1beta1_RegressionEvaluationMetrics_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.RegressionProto + .internal_static_google_cloud_automl_v1beta1_RegressionEvaluationMetrics_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.class, + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.Builder + .class); + } + + public static final int ROOT_MEAN_SQUARED_ERROR_FIELD_NUMBER = 1; + private float rootMeanSquaredError_; + /** + * + * + *
+     * Output only. Root Mean Squared Error (RMSE).
+     * 
+ * + * float root_mean_squared_error = 1; + */ + public float getRootMeanSquaredError() { + return rootMeanSquaredError_; + } + + public static final int MEAN_ABSOLUTE_ERROR_FIELD_NUMBER = 2; + private float meanAbsoluteError_; + /** + * + * + *
+     * Output only. Mean Absolute Error (MAE).
+     * 
+ * + * float mean_absolute_error = 2; + */ + public float getMeanAbsoluteError() { + return meanAbsoluteError_; + } + + public static final int MEAN_ABSOLUTE_PERCENTAGE_ERROR_FIELD_NUMBER = 3; + private float meanAbsolutePercentageError_; + /** + * + * + *
+     * Output only. Mean absolute percentage error. Only set if all ground truth
+     * values are are positive.
+     * 
+ * + * float mean_absolute_percentage_error = 3; + */ + public float getMeanAbsolutePercentageError() { + return meanAbsolutePercentageError_; + } + + public static final int R_SQUARED_FIELD_NUMBER = 4; + private float rSquared_; + /** + * + * + *
+     * Output only. R squared.
+     * 
+ * + * float r_squared = 4; + */ + public float getRSquared() { + return rSquared_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (rootMeanSquaredError_ != 0F) { + output.writeFloat(1, rootMeanSquaredError_); + } + if (meanAbsoluteError_ != 0F) { + output.writeFloat(2, meanAbsoluteError_); + } + if (meanAbsolutePercentageError_ != 0F) { + output.writeFloat(3, meanAbsolutePercentageError_); + } + if (rSquared_ != 0F) { + output.writeFloat(4, rSquared_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rootMeanSquaredError_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, rootMeanSquaredError_); + } + if (meanAbsoluteError_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, meanAbsoluteError_); + } + if (meanAbsolutePercentageError_ != 0F) { + size += + com.google.protobuf.CodedOutputStream.computeFloatSize(3, meanAbsolutePercentageError_); + } + if (rSquared_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, rSquared_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics other = + (com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics) obj; + + if (java.lang.Float.floatToIntBits(getRootMeanSquaredError()) + != java.lang.Float.floatToIntBits(other.getRootMeanSquaredError())) return false; + if (java.lang.Float.floatToIntBits(getMeanAbsoluteError()) + != java.lang.Float.floatToIntBits(other.getMeanAbsoluteError())) return false; + if (java.lang.Float.floatToIntBits(getMeanAbsolutePercentageError()) + != java.lang.Float.floatToIntBits(other.getMeanAbsolutePercentageError())) return false; + if (java.lang.Float.floatToIntBits(getRSquared()) + != java.lang.Float.floatToIntBits(other.getRSquared())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ROOT_MEAN_SQUARED_ERROR_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRootMeanSquaredError()); + hash = (37 * hash) + MEAN_ABSOLUTE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getMeanAbsoluteError()); + hash = (37 * hash) + MEAN_ABSOLUTE_PERCENTAGE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getMeanAbsolutePercentageError()); + hash = (37 * hash) + R_SQUARED_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRSquared()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Metrics for regression problems.
+     * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.RegressionEvaluationMetrics} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.RegressionEvaluationMetrics) + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetricsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.RegressionProto + .internal_static_google_cloud_automl_v1beta1_RegressionEvaluationMetrics_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.RegressionProto + .internal_static_google_cloud_automl_v1beta1_RegressionEvaluationMetrics_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.class, + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.Builder + .class); + } + + // Construct using + // com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + rootMeanSquaredError_ = 0F; + + meanAbsoluteError_ = 0F; + + meanAbsolutePercentageError_ = 0F; + + rSquared_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.RegressionProto + .internal_static_google_cloud_automl_v1beta1_RegressionEvaluationMetrics_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics build() { + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + buildPartial() { + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics result = + new com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics(this); + result.rootMeanSquaredError_ = rootMeanSquaredError_; + result.meanAbsoluteError_ = meanAbsoluteError_; + result.meanAbsolutePercentageError_ = meanAbsolutePercentageError_; + result.rSquared_ = rSquared_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics) { + return mergeFrom( + (com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics other) { + if (other + == com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + .getDefaultInstance()) return this; + if (other.getRootMeanSquaredError() != 0F) { + setRootMeanSquaredError(other.getRootMeanSquaredError()); + } + if (other.getMeanAbsoluteError() != 0F) { + setMeanAbsoluteError(other.getMeanAbsoluteError()); + } + if (other.getMeanAbsolutePercentageError() != 0F) { + setMeanAbsolutePercentageError(other.getMeanAbsolutePercentageError()); + } + if (other.getRSquared() != 0F) { + setRSquared(other.getRSquared()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private float rootMeanSquaredError_; + /** + * + * + *
+       * Output only. Root Mean Squared Error (RMSE).
+       * 
+ * + * float root_mean_squared_error = 1; + */ + public float getRootMeanSquaredError() { + return rootMeanSquaredError_; + } + /** + * + * + *
+       * Output only. Root Mean Squared Error (RMSE).
+       * 
+ * + * float root_mean_squared_error = 1; + */ + public Builder setRootMeanSquaredError(float value) { + + rootMeanSquaredError_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Root Mean Squared Error (RMSE).
+       * 
+ * + * float root_mean_squared_error = 1; + */ + public Builder clearRootMeanSquaredError() { + + rootMeanSquaredError_ = 0F; + onChanged(); + return this; + } + + private float meanAbsoluteError_; + /** + * + * + *
+       * Output only. Mean Absolute Error (MAE).
+       * 
+ * + * float mean_absolute_error = 2; + */ + public float getMeanAbsoluteError() { + return meanAbsoluteError_; + } + /** + * + * + *
+       * Output only. Mean Absolute Error (MAE).
+       * 
+ * + * float mean_absolute_error = 2; + */ + public Builder setMeanAbsoluteError(float value) { + + meanAbsoluteError_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Mean Absolute Error (MAE).
+       * 
+ * + * float mean_absolute_error = 2; + */ + public Builder clearMeanAbsoluteError() { + + meanAbsoluteError_ = 0F; + onChanged(); + return this; + } + + private float meanAbsolutePercentageError_; + /** + * + * + *
+       * Output only. Mean absolute percentage error. Only set if all ground truth
+       * values are are positive.
+       * 
+ * + * float mean_absolute_percentage_error = 3; + */ + public float getMeanAbsolutePercentageError() { + return meanAbsolutePercentageError_; + } + /** + * + * + *
+       * Output only. Mean absolute percentage error. Only set if all ground truth
+       * values are are positive.
+       * 
+ * + * float mean_absolute_percentage_error = 3; + */ + public Builder setMeanAbsolutePercentageError(float value) { + + meanAbsolutePercentageError_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Mean absolute percentage error. Only set if all ground truth
+       * values are are positive.
+       * 
+ * + * float mean_absolute_percentage_error = 3; + */ + public Builder clearMeanAbsolutePercentageError() { + + meanAbsolutePercentageError_ = 0F; + onChanged(); + return this; + } + + private float rSquared_; + /** + * + * + *
+       * Output only. R squared.
+       * 
+ * + * float r_squared = 4; + */ + public float getRSquared() { + return rSquared_; + } + /** + * + * + *
+       * Output only. R squared.
+       * 
+ * + * float r_squared = 4; + */ + public Builder setRSquared(float value) { + + rSquared_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. R squared.
+       * 
+ * + * float r_squared = 4; + */ + public Builder clearRSquared() { + + rSquared_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.RegressionEvaluationMetrics) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.RegressionEvaluationMetrics) + private static final com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics(); + } + + public static com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RegressionEvaluationMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RegressionEvaluationMetrics(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.RegressionProto.RegressionEvaluationMetrics + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_RegressionEvaluationMetrics_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_RegressionEvaluationMetrics_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/automl/v1beta1/regression" + + ".proto\022\033google.cloud.automl.v1beta1\032\034goo" + + "gle/api/annotations.proto\"\226\001\n\033Regression" + + "EvaluationMetrics\022\037\n\027root_mean_squared_e" + + "rror\030\001 \001(\002\022\033\n\023mean_absolute_error\030\002 \001(\002\022" + + "&\n\036mean_absolute_percentage_error\030\003 \001(\002\022" + + "\021\n\tr_squared\030\004 \001(\002B\223\001\n\037com.google.cloud." + + "automl.v1beta1B\017RegressionProtoZAgoogle." + + "golang.org/genproto/googleapis/cloud/aut" + + "oml/v1beta1;automl\312\002\033Google\\Cloud\\AutoMl" + + "\\V1beta1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_automl_v1beta1_RegressionEvaluationMetrics_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_RegressionEvaluationMetrics_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_RegressionEvaluationMetrics_descriptor, + new java.lang.String[] { + "RootMeanSquaredError", + "MeanAbsoluteError", + "MeanAbsolutePercentageError", + "RSquared", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Row.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Row.java new file mode 100644 index 000000000000..d4419e6873f3 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Row.java @@ -0,0 +1,1283 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_items.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * A representation of a row in a relational table.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.Row} + */ +public final class Row extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.Row) + RowOrBuilder { + private static final long serialVersionUID = 0L; + // Use Row.newBuilder() to construct. + private Row(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Row() { + columnSpecIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + values_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Row( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + columnSpecIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + columnSpecIds_.add(s); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + values_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + values_.add(input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + columnSpecIds_ = columnSpecIds_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + values_ = java.util.Collections.unmodifiableList(values_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_Row_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_Row_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.Row.class, + com.google.cloud.automl.v1beta1.Row.Builder.class); + } + + public static final int COLUMN_SPEC_IDS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList columnSpecIds_; + /** + * + * + *
+   * The resource IDs of the column specs describing the columns of the row.
+   * If set must contain, but possibly in a different order, all input feature
+   * [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * of the Model this row is being passed to.
+   * Note: The below `values` field must match order of this field, if this
+   * field is set.
+   * 
+ * + * repeated string column_spec_ids = 2; + */ + public com.google.protobuf.ProtocolStringList getColumnSpecIdsList() { + return columnSpecIds_; + } + /** + * + * + *
+   * The resource IDs of the column specs describing the columns of the row.
+   * If set must contain, but possibly in a different order, all input feature
+   * [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * of the Model this row is being passed to.
+   * Note: The below `values` field must match order of this field, if this
+   * field is set.
+   * 
+ * + * repeated string column_spec_ids = 2; + */ + public int getColumnSpecIdsCount() { + return columnSpecIds_.size(); + } + /** + * + * + *
+   * The resource IDs of the column specs describing the columns of the row.
+   * If set must contain, but possibly in a different order, all input feature
+   * [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * of the Model this row is being passed to.
+   * Note: The below `values` field must match order of this field, if this
+   * field is set.
+   * 
+ * + * repeated string column_spec_ids = 2; + */ + public java.lang.String getColumnSpecIds(int index) { + return columnSpecIds_.get(index); + } + /** + * + * + *
+   * The resource IDs of the column specs describing the columns of the row.
+   * If set must contain, but possibly in a different order, all input feature
+   * [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * of the Model this row is being passed to.
+   * Note: The below `values` field must match order of this field, if this
+   * field is set.
+   * 
+ * + * repeated string column_spec_ids = 2; + */ + public com.google.protobuf.ByteString getColumnSpecIdsBytes(int index) { + return columnSpecIds_.getByteString(index); + } + + public static final int VALUES_FIELD_NUMBER = 3; + private java.util.List values_; + /** + * + * + *
+   * Required. The values of the row cells, given in the same order as the
+   * column_spec_ids, or, if not set, then in the same order as input feature
+   * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * of the Model this row is being passed to.
+   * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public java.util.List getValuesList() { + return values_; + } + /** + * + * + *
+   * Required. The values of the row cells, given in the same order as the
+   * column_spec_ids, or, if not set, then in the same order as input feature
+   * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * of the Model this row is being passed to.
+   * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public java.util.List getValuesOrBuilderList() { + return values_; + } + /** + * + * + *
+   * Required. The values of the row cells, given in the same order as the
+   * column_spec_ids, or, if not set, then in the same order as input feature
+   * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * of the Model this row is being passed to.
+   * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+   * Required. The values of the row cells, given in the same order as the
+   * column_spec_ids, or, if not set, then in the same order as input feature
+   * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * of the Model this row is being passed to.
+   * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public com.google.protobuf.Value getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+   * Required. The values of the row cells, given in the same order as the
+   * column_spec_ids, or, if not set, then in the same order as input feature
+   * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * of the Model this row is being passed to.
+   * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public com.google.protobuf.ValueOrBuilder getValuesOrBuilder(int index) { + return values_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < columnSpecIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, columnSpecIds_.getRaw(i)); + } + for (int i = 0; i < values_.size(); i++) { + output.writeMessage(3, values_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < columnSpecIds_.size(); i++) { + dataSize += computeStringSizeNoTag(columnSpecIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getColumnSpecIdsList().size(); + } + for (int i = 0; i < values_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, values_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.Row)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.Row other = (com.google.cloud.automl.v1beta1.Row) obj; + + if (!getColumnSpecIdsList().equals(other.getColumnSpecIdsList())) return false; + if (!getValuesList().equals(other.getValuesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getColumnSpecIdsCount() > 0) { + hash = (37 * hash) + COLUMN_SPEC_IDS_FIELD_NUMBER; + hash = (53 * hash) + getColumnSpecIdsList().hashCode(); + } + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.Row parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.Row parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.Row parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.Row parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.Row parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.Row parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.Row parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.Row parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.Row parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.Row parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.Row parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.Row parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.Row prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A representation of a row in a relational table.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.Row} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.Row) + com.google.cloud.automl.v1beta1.RowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_Row_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_Row_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.Row.class, + com.google.cloud.automl.v1beta1.Row.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.Row.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getValuesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + columnSpecIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + valuesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataItems + .internal_static_google_cloud_automl_v1beta1_Row_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.Row getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.Row.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.Row build() { + com.google.cloud.automl.v1beta1.Row result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.Row buildPartial() { + com.google.cloud.automl.v1beta1.Row result = new com.google.cloud.automl.v1beta1.Row(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + columnSpecIds_ = columnSpecIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.columnSpecIds_ = columnSpecIds_; + if (valuesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + values_ = java.util.Collections.unmodifiableList(values_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.values_ = values_; + } else { + result.values_ = valuesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.Row) { + return mergeFrom((com.google.cloud.automl.v1beta1.Row) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.Row other) { + if (other == com.google.cloud.automl.v1beta1.Row.getDefaultInstance()) return this; + if (!other.columnSpecIds_.isEmpty()) { + if (columnSpecIds_.isEmpty()) { + columnSpecIds_ = other.columnSpecIds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureColumnSpecIdsIsMutable(); + columnSpecIds_.addAll(other.columnSpecIds_); + } + onChanged(); + } + if (valuesBuilder_ == null) { + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + } else { + if (!other.values_.isEmpty()) { + if (valuesBuilder_.isEmpty()) { + valuesBuilder_.dispose(); + valuesBuilder_ = null; + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000002); + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getValuesFieldBuilder() + : null; + } else { + valuesBuilder_.addAllMessages(other.values_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.Row parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.Row) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList columnSpecIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureColumnSpecIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + columnSpecIds_ = new com.google.protobuf.LazyStringArrayList(columnSpecIds_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The resource IDs of the column specs describing the columns of the row.
+     * If set must contain, but possibly in a different order, all input feature
+     * [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * Note: The below `values` field must match order of this field, if this
+     * field is set.
+     * 
+ * + * repeated string column_spec_ids = 2; + */ + public com.google.protobuf.ProtocolStringList getColumnSpecIdsList() { + return columnSpecIds_.getUnmodifiableView(); + } + /** + * + * + *
+     * The resource IDs of the column specs describing the columns of the row.
+     * If set must contain, but possibly in a different order, all input feature
+     * [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * Note: The below `values` field must match order of this field, if this
+     * field is set.
+     * 
+ * + * repeated string column_spec_ids = 2; + */ + public int getColumnSpecIdsCount() { + return columnSpecIds_.size(); + } + /** + * + * + *
+     * The resource IDs of the column specs describing the columns of the row.
+     * If set must contain, but possibly in a different order, all input feature
+     * [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * Note: The below `values` field must match order of this field, if this
+     * field is set.
+     * 
+ * + * repeated string column_spec_ids = 2; + */ + public java.lang.String getColumnSpecIds(int index) { + return columnSpecIds_.get(index); + } + /** + * + * + *
+     * The resource IDs of the column specs describing the columns of the row.
+     * If set must contain, but possibly in a different order, all input feature
+     * [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * Note: The below `values` field must match order of this field, if this
+     * field is set.
+     * 
+ * + * repeated string column_spec_ids = 2; + */ + public com.google.protobuf.ByteString getColumnSpecIdsBytes(int index) { + return columnSpecIds_.getByteString(index); + } + /** + * + * + *
+     * The resource IDs of the column specs describing the columns of the row.
+     * If set must contain, but possibly in a different order, all input feature
+     * [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * Note: The below `values` field must match order of this field, if this
+     * field is set.
+     * 
+ * + * repeated string column_spec_ids = 2; + */ + public Builder setColumnSpecIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnSpecIdsIsMutable(); + columnSpecIds_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource IDs of the column specs describing the columns of the row.
+     * If set must contain, but possibly in a different order, all input feature
+     * [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * Note: The below `values` field must match order of this field, if this
+     * field is set.
+     * 
+ * + * repeated string column_spec_ids = 2; + */ + public Builder addColumnSpecIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnSpecIdsIsMutable(); + columnSpecIds_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource IDs of the column specs describing the columns of the row.
+     * If set must contain, but possibly in a different order, all input feature
+     * [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * Note: The below `values` field must match order of this field, if this
+     * field is set.
+     * 
+ * + * repeated string column_spec_ids = 2; + */ + public Builder addAllColumnSpecIds(java.lang.Iterable values) { + ensureColumnSpecIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columnSpecIds_); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource IDs of the column specs describing the columns of the row.
+     * If set must contain, but possibly in a different order, all input feature
+     * [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * Note: The below `values` field must match order of this field, if this
+     * field is set.
+     * 
+ * + * repeated string column_spec_ids = 2; + */ + public Builder clearColumnSpecIds() { + columnSpecIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource IDs of the column specs describing the columns of the row.
+     * If set must contain, but possibly in a different order, all input feature
+     * [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * Note: The below `values` field must match order of this field, if this
+     * field is set.
+     * 
+ * + * repeated string column_spec_ids = 2; + */ + public Builder addColumnSpecIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureColumnSpecIdsIsMutable(); + columnSpecIds_.add(value); + onChanged(); + return this; + } + + private java.util.List values_ = java.util.Collections.emptyList(); + + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + values_ = new java.util.ArrayList(values_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + valuesBuilder_; + + /** + * + * + *
+     * Required. The values of the row cells, given in the same order as the
+     * column_spec_ids, or, if not set, then in the same order as input feature
+     * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public java.util.List getValuesList() { + if (valuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(values_); + } else { + return valuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. The values of the row cells, given in the same order as the
+     * column_spec_ids, or, if not set, then in the same order as input feature
+     * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public int getValuesCount() { + if (valuesBuilder_ == null) { + return values_.size(); + } else { + return valuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. The values of the row cells, given in the same order as the
+     * column_spec_ids, or, if not set, then in the same order as input feature
+     * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public com.google.protobuf.Value getValues(int index) { + if (valuesBuilder_ == null) { + return values_.get(index); + } else { + return valuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. The values of the row cells, given in the same order as the
+     * column_spec_ids, or, if not set, then in the same order as input feature
+     * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public Builder setValues(int index, com.google.protobuf.Value value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + } else { + valuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The values of the row cells, given in the same order as the
+     * column_spec_ids, or, if not set, then in the same order as input feature
+     * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public Builder setValues(int index, com.google.protobuf.Value.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.set(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The values of the row cells, given in the same order as the
+     * column_spec_ids, or, if not set, then in the same order as input feature
+     * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public Builder addValues(com.google.protobuf.Value value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + } else { + valuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. The values of the row cells, given in the same order as the
+     * column_spec_ids, or, if not set, then in the same order as input feature
+     * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public Builder addValues(int index, com.google.protobuf.Value value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(index, value); + onChanged(); + } else { + valuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The values of the row cells, given in the same order as the
+     * column_spec_ids, or, if not set, then in the same order as input feature
+     * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public Builder addValues(com.google.protobuf.Value.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The values of the row cells, given in the same order as the
+     * column_spec_ids, or, if not set, then in the same order as input feature
+     * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public Builder addValues(int index, com.google.protobuf.Value.Builder builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The values of the row cells, given in the same order as the
+     * column_spec_ids, or, if not set, then in the same order as input feature
+     * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public Builder addAllValues(java.lang.Iterable values) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + onChanged(); + } else { + valuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. The values of the row cells, given in the same order as the
+     * column_spec_ids, or, if not set, then in the same order as input feature
+     * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public Builder clearValues() { + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + valuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. The values of the row cells, given in the same order as the
+     * column_spec_ids, or, if not set, then in the same order as input feature
+     * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public Builder removeValues(int index) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.remove(index); + onChanged(); + } else { + valuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. The values of the row cells, given in the same order as the
+     * column_spec_ids, or, if not set, then in the same order as input feature
+     * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public com.google.protobuf.Value.Builder getValuesBuilder(int index) { + return getValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. The values of the row cells, given in the same order as the
+     * column_spec_ids, or, if not set, then in the same order as input feature
+     * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public com.google.protobuf.ValueOrBuilder getValuesOrBuilder(int index) { + if (valuesBuilder_ == null) { + return values_.get(index); + } else { + return valuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. The values of the row cells, given in the same order as the
+     * column_spec_ids, or, if not set, then in the same order as input feature
+     * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public java.util.List getValuesOrBuilderList() { + if (valuesBuilder_ != null) { + return valuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(values_); + } + } + /** + * + * + *
+     * Required. The values of the row cells, given in the same order as the
+     * column_spec_ids, or, if not set, then in the same order as input feature
+     * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public com.google.protobuf.Value.Builder addValuesBuilder() { + return getValuesFieldBuilder().addBuilder(com.google.protobuf.Value.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The values of the row cells, given in the same order as the
+     * column_spec_ids, or, if not set, then in the same order as input feature
+     * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public com.google.protobuf.Value.Builder addValuesBuilder(int index) { + return getValuesFieldBuilder() + .addBuilder(index, com.google.protobuf.Value.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The values of the row cells, given in the same order as the
+     * column_spec_ids, or, if not set, then in the same order as input feature
+     * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * of the Model this row is being passed to.
+     * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + public java.util.List getValuesBuilderList() { + return getValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + getValuesFieldBuilder() { + if (valuesBuilder_ == null) { + valuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>( + values_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + values_ = null; + } + return valuesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.Row) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.Row) + private static final com.google.cloud.automl.v1beta1.Row DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.Row(); + } + + public static com.google.cloud.automl.v1beta1.Row getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Row parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Row(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.Row getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/RowOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/RowOrBuilder.java new file mode 100644 index 000000000000..ea3ecd98c18a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/RowOrBuilder.java @@ -0,0 +1,137 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_items.proto + +package com.google.cloud.automl.v1beta1; + +public interface RowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.Row) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource IDs of the column specs describing the columns of the row.
+   * If set must contain, but possibly in a different order, all input feature
+   * [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * of the Model this row is being passed to.
+   * Note: The below `values` field must match order of this field, if this
+   * field is set.
+   * 
+ * + * repeated string column_spec_ids = 2; + */ + java.util.List getColumnSpecIdsList(); + /** + * + * + *
+   * The resource IDs of the column specs describing the columns of the row.
+   * If set must contain, but possibly in a different order, all input feature
+   * [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * of the Model this row is being passed to.
+   * Note: The below `values` field must match order of this field, if this
+   * field is set.
+   * 
+ * + * repeated string column_spec_ids = 2; + */ + int getColumnSpecIdsCount(); + /** + * + * + *
+   * The resource IDs of the column specs describing the columns of the row.
+   * If set must contain, but possibly in a different order, all input feature
+   * [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * of the Model this row is being passed to.
+   * Note: The below `values` field must match order of this field, if this
+   * field is set.
+   * 
+ * + * repeated string column_spec_ids = 2; + */ + java.lang.String getColumnSpecIds(int index); + /** + * + * + *
+   * The resource IDs of the column specs describing the columns of the row.
+   * If set must contain, but possibly in a different order, all input feature
+   * [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * of the Model this row is being passed to.
+   * Note: The below `values` field must match order of this field, if this
+   * field is set.
+   * 
+ * + * repeated string column_spec_ids = 2; + */ + com.google.protobuf.ByteString getColumnSpecIdsBytes(int index); + + /** + * + * + *
+   * Required. The values of the row cells, given in the same order as the
+   * column_spec_ids, or, if not set, then in the same order as input feature
+   * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * of the Model this row is being passed to.
+   * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + java.util.List getValuesList(); + /** + * + * + *
+   * Required. The values of the row cells, given in the same order as the
+   * column_spec_ids, or, if not set, then in the same order as input feature
+   * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * of the Model this row is being passed to.
+   * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + com.google.protobuf.Value getValues(int index); + /** + * + * + *
+   * Required. The values of the row cells, given in the same order as the
+   * column_spec_ids, or, if not set, then in the same order as input feature
+   * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * of the Model this row is being passed to.
+   * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + int getValuesCount(); + /** + * + * + *
+   * Required. The values of the row cells, given in the same order as the
+   * column_spec_ids, or, if not set, then in the same order as input feature
+   * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * of the Model this row is being passed to.
+   * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + java.util.List getValuesOrBuilderList(); + /** + * + * + *
+   * Required. The values of the row cells, given in the same order as the
+   * column_spec_ids, or, if not set, then in the same order as input feature
+   * [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * of the Model this row is being passed to.
+   * 
+ * + * repeated .google.protobuf.Value values = 3; + */ + com.google.protobuf.ValueOrBuilder getValuesOrBuilder(int index); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStats.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStats.java new file mode 100644 index 000000000000..f17305698bcf --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStats.java @@ -0,0 +1,1708 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_stats.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * The data statistics of a series of STRING values.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.StringStats} + */ +public final class StringStats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.StringStats) + StringStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use StringStats.newBuilder() to construct. + private StringStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StringStats() { + topUnigramStats_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StringStats( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + topUnigramStats_ = + new java.util.ArrayList< + com.google.cloud.automl.v1beta1.StringStats.UnigramStats>(); + mutable_bitField0_ |= 0x00000001; + } + topUnigramStats_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.StringStats.UnigramStats.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + topUnigramStats_ = java.util.Collections.unmodifiableList(topUnigramStats_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_StringStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_StringStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.StringStats.class, + com.google.cloud.automl.v1beta1.StringStats.Builder.class); + } + + public interface UnigramStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.StringStats.UnigramStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The unigram.
+     * 
+ * + * string value = 1; + */ + java.lang.String getValue(); + /** + * + * + *
+     * The unigram.
+     * 
+ * + * string value = 1; + */ + com.google.protobuf.ByteString getValueBytes(); + + /** + * + * + *
+     * The number of occurrences of this unigram in the series.
+     * 
+ * + * int64 count = 2; + */ + long getCount(); + } + /** + * + * + *
+   * The statistics of a unigram.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.StringStats.UnigramStats} + */ + public static final class UnigramStats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.StringStats.UnigramStats) + UnigramStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use UnigramStats.newBuilder() to construct. + private UnigramStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UnigramStats() { + value_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UnigramStats( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + case 16: + { + count_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_StringStats_UnigramStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_StringStats_UnigramStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.StringStats.UnigramStats.class, + com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private volatile java.lang.Object value_; + /** + * + * + *
+     * The unigram.
+     * 
+ * + * string value = 1; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * + * + *
+     * The unigram.
+     * 
+ * + * string value = 1; + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COUNT_FIELD_NUMBER = 2; + private long count_; + /** + * + * + *
+     * The number of occurrences of this unigram in the series.
+     * 
+ * + * int64 count = 2; + */ + public long getCount() { + return count_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); + } + if (count_ != 0L) { + output.writeInt64(2, count_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); + } + if (count_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, count_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.StringStats.UnigramStats)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.StringStats.UnigramStats other = + (com.google.cloud.automl.v1beta1.StringStats.UnigramStats) obj; + + if (!getValue().equals(other.getValue())) return false; + if (getCount() != other.getCount()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.StringStats.UnigramStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * The statistics of a unigram.
+     * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.StringStats.UnigramStats} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.StringStats.UnigramStats) + com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_StringStats_UnigramStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_StringStats_UnigramStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.StringStats.UnigramStats.class, + com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.StringStats.UnigramStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + value_ = ""; + + count_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_StringStats_UnigramStats_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.StringStats.UnigramStats getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.StringStats.UnigramStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.StringStats.UnigramStats build() { + com.google.cloud.automl.v1beta1.StringStats.UnigramStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.StringStats.UnigramStats buildPartial() { + com.google.cloud.automl.v1beta1.StringStats.UnigramStats result = + new com.google.cloud.automl.v1beta1.StringStats.UnigramStats(this); + result.value_ = value_; + result.count_ = count_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.StringStats.UnigramStats) { + return mergeFrom((com.google.cloud.automl.v1beta1.StringStats.UnigramStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.StringStats.UnigramStats other) { + if (other == com.google.cloud.automl.v1beta1.StringStats.UnigramStats.getDefaultInstance()) + return this; + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + if (other.getCount() != 0L) { + setCount(other.getCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.StringStats.UnigramStats parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.StringStats.UnigramStats) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object value_ = ""; + /** + * + * + *
+       * The unigram.
+       * 
+ * + * string value = 1; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The unigram.
+       * 
+ * + * string value = 1; + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The unigram.
+       * 
+ * + * string value = 1; + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The unigram.
+       * 
+ * + * string value = 1; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * + * + *
+       * The unigram.
+       * 
+ * + * string value = 1; + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + + private long count_; + /** + * + * + *
+       * The number of occurrences of this unigram in the series.
+       * 
+ * + * int64 count = 2; + */ + public long getCount() { + return count_; + } + /** + * + * + *
+       * The number of occurrences of this unigram in the series.
+       * 
+ * + * int64 count = 2; + */ + public Builder setCount(long value) { + + count_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The number of occurrences of this unigram in the series.
+       * 
+ * + * int64 count = 2; + */ + public Builder clearCount() { + + count_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.StringStats.UnigramStats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.StringStats.UnigramStats) + private static final com.google.cloud.automl.v1beta1.StringStats.UnigramStats DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.StringStats.UnigramStats(); + } + + public static com.google.cloud.automl.v1beta1.StringStats.UnigramStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnigramStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UnigramStats(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.StringStats.UnigramStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int TOP_UNIGRAM_STATS_FIELD_NUMBER = 1; + private java.util.List topUnigramStats_; + /** + * + * + *
+   * The statistics of the top 20 unigrams, ordered by
+   * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public java.util.List + getTopUnigramStatsList() { + return topUnigramStats_; + } + /** + * + * + *
+   * The statistics of the top 20 unigrams, ordered by
+   * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public java.util.List + getTopUnigramStatsOrBuilderList() { + return topUnigramStats_; + } + /** + * + * + *
+   * The statistics of the top 20 unigrams, ordered by
+   * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public int getTopUnigramStatsCount() { + return topUnigramStats_.size(); + } + /** + * + * + *
+   * The statistics of the top 20 unigrams, ordered by
+   * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public com.google.cloud.automl.v1beta1.StringStats.UnigramStats getTopUnigramStats(int index) { + return topUnigramStats_.get(index); + } + /** + * + * + *
+   * The statistics of the top 20 unigrams, ordered by
+   * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder + getTopUnigramStatsOrBuilder(int index) { + return topUnigramStats_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < topUnigramStats_.size(); i++) { + output.writeMessage(1, topUnigramStats_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < topUnigramStats_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, topUnigramStats_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.StringStats)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.StringStats other = + (com.google.cloud.automl.v1beta1.StringStats) obj; + + if (!getTopUnigramStatsList().equals(other.getTopUnigramStatsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTopUnigramStatsCount() > 0) { + hash = (37 * hash) + TOP_UNIGRAM_STATS_FIELD_NUMBER; + hash = (53 * hash) + getTopUnigramStatsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.StringStats parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.StringStats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.StringStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.StringStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.StringStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.StringStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.StringStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.StringStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.StringStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.StringStats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.StringStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.StringStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.StringStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The data statistics of a series of STRING values.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.StringStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.StringStats) + com.google.cloud.automl.v1beta1.StringStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_StringStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_StringStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.StringStats.class, + com.google.cloud.automl.v1beta1.StringStats.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.StringStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTopUnigramStatsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (topUnigramStatsBuilder_ == null) { + topUnigramStats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + topUnigramStatsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_StringStats_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.StringStats getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.StringStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.StringStats build() { + com.google.cloud.automl.v1beta1.StringStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.StringStats buildPartial() { + com.google.cloud.automl.v1beta1.StringStats result = + new com.google.cloud.automl.v1beta1.StringStats(this); + int from_bitField0_ = bitField0_; + if (topUnigramStatsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + topUnigramStats_ = java.util.Collections.unmodifiableList(topUnigramStats_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.topUnigramStats_ = topUnigramStats_; + } else { + result.topUnigramStats_ = topUnigramStatsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.StringStats) { + return mergeFrom((com.google.cloud.automl.v1beta1.StringStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.StringStats other) { + if (other == com.google.cloud.automl.v1beta1.StringStats.getDefaultInstance()) return this; + if (topUnigramStatsBuilder_ == null) { + if (!other.topUnigramStats_.isEmpty()) { + if (topUnigramStats_.isEmpty()) { + topUnigramStats_ = other.topUnigramStats_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTopUnigramStatsIsMutable(); + topUnigramStats_.addAll(other.topUnigramStats_); + } + onChanged(); + } + } else { + if (!other.topUnigramStats_.isEmpty()) { + if (topUnigramStatsBuilder_.isEmpty()) { + topUnigramStatsBuilder_.dispose(); + topUnigramStatsBuilder_ = null; + topUnigramStats_ = other.topUnigramStats_; + bitField0_ = (bitField0_ & ~0x00000001); + topUnigramStatsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTopUnigramStatsFieldBuilder() + : null; + } else { + topUnigramStatsBuilder_.addAllMessages(other.topUnigramStats_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.StringStats parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.StringStats) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + topUnigramStats_ = java.util.Collections.emptyList(); + + private void ensureTopUnigramStatsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + topUnigramStats_ = + new java.util.ArrayList( + topUnigramStats_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.StringStats.UnigramStats, + com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder, + com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder> + topUnigramStatsBuilder_; + + /** + * + * + *
+     * The statistics of the top 20 unigrams, ordered by
+     * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public java.util.List + getTopUnigramStatsList() { + if (topUnigramStatsBuilder_ == null) { + return java.util.Collections.unmodifiableList(topUnigramStats_); + } else { + return topUnigramStatsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The statistics of the top 20 unigrams, ordered by
+     * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public int getTopUnigramStatsCount() { + if (topUnigramStatsBuilder_ == null) { + return topUnigramStats_.size(); + } else { + return topUnigramStatsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The statistics of the top 20 unigrams, ordered by
+     * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public com.google.cloud.automl.v1beta1.StringStats.UnigramStats getTopUnigramStats(int index) { + if (topUnigramStatsBuilder_ == null) { + return topUnigramStats_.get(index); + } else { + return topUnigramStatsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The statistics of the top 20 unigrams, ordered by
+     * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public Builder setTopUnigramStats( + int index, com.google.cloud.automl.v1beta1.StringStats.UnigramStats value) { + if (topUnigramStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopUnigramStatsIsMutable(); + topUnigramStats_.set(index, value); + onChanged(); + } else { + topUnigramStatsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The statistics of the top 20 unigrams, ordered by
+     * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public Builder setTopUnigramStats( + int index, + com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder builderForValue) { + if (topUnigramStatsBuilder_ == null) { + ensureTopUnigramStatsIsMutable(); + topUnigramStats_.set(index, builderForValue.build()); + onChanged(); + } else { + topUnigramStatsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The statistics of the top 20 unigrams, ordered by
+     * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public Builder addTopUnigramStats( + com.google.cloud.automl.v1beta1.StringStats.UnigramStats value) { + if (topUnigramStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopUnigramStatsIsMutable(); + topUnigramStats_.add(value); + onChanged(); + } else { + topUnigramStatsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The statistics of the top 20 unigrams, ordered by
+     * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public Builder addTopUnigramStats( + int index, com.google.cloud.automl.v1beta1.StringStats.UnigramStats value) { + if (topUnigramStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopUnigramStatsIsMutable(); + topUnigramStats_.add(index, value); + onChanged(); + } else { + topUnigramStatsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The statistics of the top 20 unigrams, ordered by
+     * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public Builder addTopUnigramStats( + com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder builderForValue) { + if (topUnigramStatsBuilder_ == null) { + ensureTopUnigramStatsIsMutable(); + topUnigramStats_.add(builderForValue.build()); + onChanged(); + } else { + topUnigramStatsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The statistics of the top 20 unigrams, ordered by
+     * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public Builder addTopUnigramStats( + int index, + com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder builderForValue) { + if (topUnigramStatsBuilder_ == null) { + ensureTopUnigramStatsIsMutable(); + topUnigramStats_.add(index, builderForValue.build()); + onChanged(); + } else { + topUnigramStatsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The statistics of the top 20 unigrams, ordered by
+     * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public Builder addAllTopUnigramStats( + java.lang.Iterable + values) { + if (topUnigramStatsBuilder_ == null) { + ensureTopUnigramStatsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topUnigramStats_); + onChanged(); + } else { + topUnigramStatsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The statistics of the top 20 unigrams, ordered by
+     * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public Builder clearTopUnigramStats() { + if (topUnigramStatsBuilder_ == null) { + topUnigramStats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + topUnigramStatsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The statistics of the top 20 unigrams, ordered by
+     * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public Builder removeTopUnigramStats(int index) { + if (topUnigramStatsBuilder_ == null) { + ensureTopUnigramStatsIsMutable(); + topUnigramStats_.remove(index); + onChanged(); + } else { + topUnigramStatsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The statistics of the top 20 unigrams, ordered by
+     * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder + getTopUnigramStatsBuilder(int index) { + return getTopUnigramStatsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The statistics of the top 20 unigrams, ordered by
+     * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder + getTopUnigramStatsOrBuilder(int index) { + if (topUnigramStatsBuilder_ == null) { + return topUnigramStats_.get(index); + } else { + return topUnigramStatsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The statistics of the top 20 unigrams, ordered by
+     * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder> + getTopUnigramStatsOrBuilderList() { + if (topUnigramStatsBuilder_ != null) { + return topUnigramStatsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(topUnigramStats_); + } + } + /** + * + * + *
+     * The statistics of the top 20 unigrams, ordered by
+     * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder + addTopUnigramStatsBuilder() { + return getTopUnigramStatsFieldBuilder() + .addBuilder( + com.google.cloud.automl.v1beta1.StringStats.UnigramStats.getDefaultInstance()); + } + /** + * + * + *
+     * The statistics of the top 20 unigrams, ordered by
+     * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder + addTopUnigramStatsBuilder(int index) { + return getTopUnigramStatsFieldBuilder() + .addBuilder( + index, com.google.cloud.automl.v1beta1.StringStats.UnigramStats.getDefaultInstance()); + } + /** + * + * + *
+     * The statistics of the top 20 unigrams, ordered by
+     * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + public java.util.List + getTopUnigramStatsBuilderList() { + return getTopUnigramStatsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.StringStats.UnigramStats, + com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder, + com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder> + getTopUnigramStatsFieldBuilder() { + if (topUnigramStatsBuilder_ == null) { + topUnigramStatsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.StringStats.UnigramStats, + com.google.cloud.automl.v1beta1.StringStats.UnigramStats.Builder, + com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder>( + topUnigramStats_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + topUnigramStats_ = null; + } + return topUnigramStatsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.StringStats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.StringStats) + private static final com.google.cloud.automl.v1beta1.StringStats DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.StringStats(); + } + + public static com.google.cloud.automl.v1beta1.StringStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StringStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StringStats(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.StringStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStatsOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStatsOrBuilder.java new file mode 100644 index 000000000000..d8b106001275 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StringStatsOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_stats.proto + +package com.google.cloud.automl.v1beta1; + +public interface StringStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.StringStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The statistics of the top 20 unigrams, ordered by
+   * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + java.util.List getTopUnigramStatsList(); + /** + * + * + *
+   * The statistics of the top 20 unigrams, ordered by
+   * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + com.google.cloud.automl.v1beta1.StringStats.UnigramStats getTopUnigramStats(int index); + /** + * + * + *
+   * The statistics of the top 20 unigrams, ordered by
+   * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + int getTopUnigramStatsCount(); + /** + * + * + *
+   * The statistics of the top 20 unigrams, ordered by
+   * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + java.util.List + getTopUnigramStatsOrBuilderList(); + /** + * + * + *
+   * The statistics of the top 20 unigrams, ordered by
+   * [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count].
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.StringStats.UnigramStats top_unigram_stats = 1; + * + */ + com.google.cloud.automl.v1beta1.StringStats.UnigramStatsOrBuilder getTopUnigramStatsOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStats.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStats.java new file mode 100644 index 000000000000..b3299518b4e4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStats.java @@ -0,0 +1,787 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_stats.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * The data statistics of a series of STRUCT values.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.StructStats} + */ +public final class StructStats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.StructStats) + StructStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use StructStats.newBuilder() to construct. + private StructStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StructStats() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StructStats( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fieldStats_ = + com.google.protobuf.MapField.newMapField( + FieldStatsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.automl.v1beta1.DataStats> + fieldStats__ = + input.readMessage( + FieldStatsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + fieldStats_.getMutableMap().put(fieldStats__.getKey(), fieldStats__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_StructStats_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetFieldStats(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_StructStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.StructStats.class, + com.google.cloud.automl.v1beta1.StructStats.Builder.class); + } + + public static final int FIELD_STATS_FIELD_NUMBER = 1; + + private static final class FieldStatsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.automl.v1beta1.DataStats> + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_StructStats_FieldStatsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.automl.v1beta1.DataStats.getDefaultInstance()); + } + + private com.google.protobuf.MapField + fieldStats_; + + private com.google.protobuf.MapField + internalGetFieldStats() { + if (fieldStats_ == null) { + return com.google.protobuf.MapField.emptyMapField(FieldStatsDefaultEntryHolder.defaultEntry); + } + return fieldStats_; + } + + public int getFieldStatsCount() { + return internalGetFieldStats().getMap().size(); + } + /** + * + * + *
+   * Map from a field name of the struct to data stats aggregated over series
+   * of all data in that field across all the structs.
+   * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1; + */ + public boolean containsFieldStats(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetFieldStats().getMap().containsKey(key); + } + /** Use {@link #getFieldStatsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map + getFieldStats() { + return getFieldStatsMap(); + } + /** + * + * + *
+   * Map from a field name of the struct to data stats aggregated over series
+   * of all data in that field across all the structs.
+   * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1; + */ + public java.util.Map + getFieldStatsMap() { + return internalGetFieldStats().getMap(); + } + /** + * + * + *
+   * Map from a field name of the struct to data stats aggregated over series
+   * of all data in that field across all the structs.
+   * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1; + */ + public com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrDefault( + java.lang.String key, com.google.cloud.automl.v1beta1.DataStats defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetFieldStats().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Map from a field name of the struct to data stats aggregated over series
+   * of all data in that field across all the structs.
+   * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1; + */ + public com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetFieldStats().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetFieldStats(), FieldStatsDefaultEntryHolder.defaultEntry, 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetFieldStats().getMap().entrySet()) { + com.google.protobuf.MapEntry + fieldStats__ = + FieldStatsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fieldStats__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.StructStats)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.StructStats other = + (com.google.cloud.automl.v1beta1.StructStats) obj; + + if (!internalGetFieldStats().equals(other.internalGetFieldStats())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetFieldStats().getMap().isEmpty()) { + hash = (37 * hash) + FIELD_STATS_FIELD_NUMBER; + hash = (53 * hash) + internalGetFieldStats().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.StructStats parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.StructStats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.StructStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.StructStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.StructStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.StructStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.StructStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.StructStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.StructStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.StructStats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.StructStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.StructStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.StructStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The data statistics of a series of STRUCT values.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.StructStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.StructStats) + com.google.cloud.automl.v1beta1.StructStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_StructStats_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetFieldStats(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 1: + return internalGetMutableFieldStats(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_StructStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.StructStats.class, + com.google.cloud.automl.v1beta1.StructStats.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.StructStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableFieldStats().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_StructStats_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.StructStats getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.StructStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.StructStats build() { + com.google.cloud.automl.v1beta1.StructStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.StructStats buildPartial() { + com.google.cloud.automl.v1beta1.StructStats result = + new com.google.cloud.automl.v1beta1.StructStats(this); + int from_bitField0_ = bitField0_; + result.fieldStats_ = internalGetFieldStats(); + result.fieldStats_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.StructStats) { + return mergeFrom((com.google.cloud.automl.v1beta1.StructStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.StructStats other) { + if (other == com.google.cloud.automl.v1beta1.StructStats.getDefaultInstance()) return this; + internalGetMutableFieldStats().mergeFrom(other.internalGetFieldStats()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.StructStats parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.StructStats) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.automl.v1beta1.DataStats> + fieldStats_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.automl.v1beta1.DataStats> + internalGetFieldStats() { + if (fieldStats_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FieldStatsDefaultEntryHolder.defaultEntry); + } + return fieldStats_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.automl.v1beta1.DataStats> + internalGetMutableFieldStats() { + onChanged(); + ; + if (fieldStats_ == null) { + fieldStats_ = + com.google.protobuf.MapField.newMapField(FieldStatsDefaultEntryHolder.defaultEntry); + } + if (!fieldStats_.isMutable()) { + fieldStats_ = fieldStats_.copy(); + } + return fieldStats_; + } + + public int getFieldStatsCount() { + return internalGetFieldStats().getMap().size(); + } + /** + * + * + *
+     * Map from a field name of the struct to data stats aggregated over series
+     * of all data in that field across all the structs.
+     * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1; + */ + public boolean containsFieldStats(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetFieldStats().getMap().containsKey(key); + } + /** Use {@link #getFieldStatsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map + getFieldStats() { + return getFieldStatsMap(); + } + /** + * + * + *
+     * Map from a field name of the struct to data stats aggregated over series
+     * of all data in that field across all the structs.
+     * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1; + */ + public java.util.Map + getFieldStatsMap() { + return internalGetFieldStats().getMap(); + } + /** + * + * + *
+     * Map from a field name of the struct to data stats aggregated over series
+     * of all data in that field across all the structs.
+     * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1; + */ + public com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrDefault( + java.lang.String key, com.google.cloud.automl.v1beta1.DataStats defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetFieldStats().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Map from a field name of the struct to data stats aggregated over series
+     * of all data in that field across all the structs.
+     * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1; + */ + public com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetFieldStats().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFieldStats() { + internalGetMutableFieldStats().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Map from a field name of the struct to data stats aggregated over series
+     * of all data in that field across all the structs.
+     * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1; + */ + public Builder removeFieldStats(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableFieldStats().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableFieldStats() { + return internalGetMutableFieldStats().getMutableMap(); + } + /** + * + * + *
+     * Map from a field name of the struct to data stats aggregated over series
+     * of all data in that field across all the structs.
+     * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1; + */ + public Builder putFieldStats( + java.lang.String key, com.google.cloud.automl.v1beta1.DataStats value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableFieldStats().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Map from a field name of the struct to data stats aggregated over series
+     * of all data in that field across all the structs.
+     * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1; + */ + public Builder putAllFieldStats( + java.util.Map values) { + internalGetMutableFieldStats().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.StructStats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.StructStats) + private static final com.google.cloud.automl.v1beta1.StructStats DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.StructStats(); + } + + public static com.google.cloud.automl.v1beta1.StructStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StructStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StructStats(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.StructStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStatsOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStatsOrBuilder.java new file mode 100644 index 000000000000..7f3a487fddce --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructStatsOrBuilder.java @@ -0,0 +1,70 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_stats.proto + +package com.google.cloud.automl.v1beta1; + +public interface StructStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.StructStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Map from a field name of the struct to data stats aggregated over series
+   * of all data in that field across all the structs.
+   * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1; + */ + int getFieldStatsCount(); + /** + * + * + *
+   * Map from a field name of the struct to data stats aggregated over series
+   * of all data in that field across all the structs.
+   * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1; + */ + boolean containsFieldStats(java.lang.String key); + /** Use {@link #getFieldStatsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getFieldStats(); + /** + * + * + *
+   * Map from a field name of the struct to data stats aggregated over series
+   * of all data in that field across all the structs.
+   * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1; + */ + java.util.Map getFieldStatsMap(); + /** + * + * + *
+   * Map from a field name of the struct to data stats aggregated over series
+   * of all data in that field across all the structs.
+   * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1; + */ + com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrDefault( + java.lang.String key, com.google.cloud.automl.v1beta1.DataStats defaultValue); + /** + * + * + *
+   * Map from a field name of the struct to data stats aggregated over series
+   * of all data in that field across all the structs.
+   * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataStats> field_stats = 1; + */ + com.google.cloud.automl.v1beta1.DataStats getFieldStatsOrThrow(java.lang.String key); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructType.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructType.java new file mode 100644 index 000000000000..8c11ad3ca8ef --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructType.java @@ -0,0 +1,788 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_types.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * `StructType` defines the DataType-s of a [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT] type.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.StructType} + */ +public final class StructType extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.StructType) + StructTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use StructType.newBuilder() to construct. + private StructType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StructType() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StructType( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fields_ = + com.google.protobuf.MapField.newMapField(FieldsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.automl.v1beta1.DataType> + fields__ = + input.readMessage( + FieldsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + fields_.getMutableMap().put(fields__.getKey(), fields__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataTypes + .internal_static_google_cloud_automl_v1beta1_StructType_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetFields(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataTypes + .internal_static_google_cloud_automl_v1beta1_StructType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.StructType.class, + com.google.cloud.automl.v1beta1.StructType.Builder.class); + } + + public static final int FIELDS_FIELD_NUMBER = 1; + + private static final class FieldsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.automl.v1beta1.DataType> + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.automl.v1beta1.DataTypes + .internal_static_google_cloud_automl_v1beta1_StructType_FieldsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.automl.v1beta1.DataType.getDefaultInstance()); + } + + private com.google.protobuf.MapField + fields_; + + private com.google.protobuf.MapField + internalGetFields() { + if (fields_ == null) { + return com.google.protobuf.MapField.emptyMapField(FieldsDefaultEntryHolder.defaultEntry); + } + return fields_; + } + + public int getFieldsCount() { + return internalGetFields().getMap().size(); + } + /** + * + * + *
+   * Unordered map of struct field names to their data types.
+   * Fields cannot be added or removed via Update. Their names and
+   * data types are still mutable.
+   * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1; + */ + public boolean containsFields(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetFields().getMap().containsKey(key); + } + /** Use {@link #getFieldsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getFields() { + return getFieldsMap(); + } + /** + * + * + *
+   * Unordered map of struct field names to their data types.
+   * Fields cannot be added or removed via Update. Their names and
+   * data types are still mutable.
+   * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1; + */ + public java.util.Map getFieldsMap() { + return internalGetFields().getMap(); + } + /** + * + * + *
+   * Unordered map of struct field names to their data types.
+   * Fields cannot be added or removed via Update. Their names and
+   * data types are still mutable.
+   * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1; + */ + public com.google.cloud.automl.v1beta1.DataType getFieldsOrDefault( + java.lang.String key, com.google.cloud.automl.v1beta1.DataType defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetFields().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Unordered map of struct field names to their data types.
+   * Fields cannot be added or removed via Update. Their names and
+   * data types are still mutable.
+   * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1; + */ + public com.google.cloud.automl.v1beta1.DataType getFieldsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetFields().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetFields(), FieldsDefaultEntryHolder.defaultEntry, 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetFields().getMap().entrySet()) { + com.google.protobuf.MapEntry + fields__ = + FieldsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fields__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.StructType)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.StructType other = + (com.google.cloud.automl.v1beta1.StructType) obj; + + if (!internalGetFields().equals(other.internalGetFields())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetFields().getMap().isEmpty()) { + hash = (37 * hash) + FIELDS_FIELD_NUMBER; + hash = (53 * hash) + internalGetFields().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.StructType parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.StructType parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.StructType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.StructType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.StructType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.StructType parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.StructType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.StructType parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.StructType parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.StructType parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.StructType parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.StructType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.StructType prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * `StructType` defines the DataType-s of a [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT] type.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.StructType} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.StructType) + com.google.cloud.automl.v1beta1.StructTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataTypes + .internal_static_google_cloud_automl_v1beta1_StructType_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetFields(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 1: + return internalGetMutableFields(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataTypes + .internal_static_google_cloud_automl_v1beta1_StructType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.StructType.class, + com.google.cloud.automl.v1beta1.StructType.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.StructType.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableFields().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataTypes + .internal_static_google_cloud_automl_v1beta1_StructType_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.StructType getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.StructType.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.StructType build() { + com.google.cloud.automl.v1beta1.StructType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.StructType buildPartial() { + com.google.cloud.automl.v1beta1.StructType result = + new com.google.cloud.automl.v1beta1.StructType(this); + int from_bitField0_ = bitField0_; + result.fields_ = internalGetFields(); + result.fields_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.StructType) { + return mergeFrom((com.google.cloud.automl.v1beta1.StructType) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.StructType other) { + if (other == com.google.cloud.automl.v1beta1.StructType.getDefaultInstance()) return this; + internalGetMutableFields().mergeFrom(other.internalGetFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.StructType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.StructType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.MapField + fields_; + + private com.google.protobuf.MapField + internalGetFields() { + if (fields_ == null) { + return com.google.protobuf.MapField.emptyMapField(FieldsDefaultEntryHolder.defaultEntry); + } + return fields_; + } + + private com.google.protobuf.MapField + internalGetMutableFields() { + onChanged(); + ; + if (fields_ == null) { + fields_ = com.google.protobuf.MapField.newMapField(FieldsDefaultEntryHolder.defaultEntry); + } + if (!fields_.isMutable()) { + fields_ = fields_.copy(); + } + return fields_; + } + + public int getFieldsCount() { + return internalGetFields().getMap().size(); + } + /** + * + * + *
+     * Unordered map of struct field names to their data types.
+     * Fields cannot be added or removed via Update. Their names and
+     * data types are still mutable.
+     * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1; + */ + public boolean containsFields(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetFields().getMap().containsKey(key); + } + /** Use {@link #getFieldsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getFields() { + return getFieldsMap(); + } + /** + * + * + *
+     * Unordered map of struct field names to their data types.
+     * Fields cannot be added or removed via Update. Their names and
+     * data types are still mutable.
+     * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1; + */ + public java.util.Map + getFieldsMap() { + return internalGetFields().getMap(); + } + /** + * + * + *
+     * Unordered map of struct field names to their data types.
+     * Fields cannot be added or removed via Update. Their names and
+     * data types are still mutable.
+     * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1; + */ + public com.google.cloud.automl.v1beta1.DataType getFieldsOrDefault( + java.lang.String key, com.google.cloud.automl.v1beta1.DataType defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetFields().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Unordered map of struct field names to their data types.
+     * Fields cannot be added or removed via Update. Their names and
+     * data types are still mutable.
+     * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1; + */ + public com.google.cloud.automl.v1beta1.DataType getFieldsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetFields().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFields() { + internalGetMutableFields().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Unordered map of struct field names to their data types.
+     * Fields cannot be added or removed via Update. Their names and
+     * data types are still mutable.
+     * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1; + */ + public Builder removeFields(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableFields().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableFields() { + return internalGetMutableFields().getMutableMap(); + } + /** + * + * + *
+     * Unordered map of struct field names to their data types.
+     * Fields cannot be added or removed via Update. Their names and
+     * data types are still mutable.
+     * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1; + */ + public Builder putFields(java.lang.String key, com.google.cloud.automl.v1beta1.DataType value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableFields().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Unordered map of struct field names to their data types.
+     * Fields cannot be added or removed via Update. Their names and
+     * data types are still mutable.
+     * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1; + */ + public Builder putAllFields( + java.util.Map values) { + internalGetMutableFields().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.StructType) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.StructType) + private static final com.google.cloud.automl.v1beta1.StructType DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.StructType(); + } + + public static com.google.cloud.automl.v1beta1.StructType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StructType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StructType(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.StructType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructTypeOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructTypeOrBuilder.java new file mode 100644 index 000000000000..2af3c7ce0aad --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/StructTypeOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_types.proto + +package com.google.cloud.automl.v1beta1; + +public interface StructTypeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.StructType) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Unordered map of struct field names to their data types.
+   * Fields cannot be added or removed via Update. Their names and
+   * data types are still mutable.
+   * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1; + */ + int getFieldsCount(); + /** + * + * + *
+   * Unordered map of struct field names to their data types.
+   * Fields cannot be added or removed via Update. Their names and
+   * data types are still mutable.
+   * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1; + */ + boolean containsFields(java.lang.String key); + /** Use {@link #getFieldsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getFields(); + /** + * + * + *
+   * Unordered map of struct field names to their data types.
+   * Fields cannot be added or removed via Update. Their names and
+   * data types are still mutable.
+   * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1; + */ + java.util.Map getFieldsMap(); + /** + * + * + *
+   * Unordered map of struct field names to their data types.
+   * Fields cannot be added or removed via Update. Their names and
+   * data types are still mutable.
+   * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1; + */ + com.google.cloud.automl.v1beta1.DataType getFieldsOrDefault( + java.lang.String key, com.google.cloud.automl.v1beta1.DataType defaultValue); + /** + * + * + *
+   * Unordered map of struct field names to their data types.
+   * Fields cannot be added or removed via Update. Their names and
+   * data types are still mutable.
+   * 
+ * + * map<string, .google.cloud.automl.v1beta1.DataType> fields = 1; + */ + com.google.cloud.automl.v1beta1.DataType getFieldsOrThrow(java.lang.String key); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpec.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpec.java new file mode 100644 index 000000000000..37c736e53535 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpec.java @@ -0,0 +1,1682 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/table_spec.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * A specification of a relational table.
+ * The table's schema is represented via its child column specs. It is
+ * pre-populated as part of ImportData by schema inference algorithm, the
+ * version of which is a required parameter of ImportData InputConfig.
+ * Note: While working with a table, at times the schema may be
+ * inconsistent with the data in the table (e.g. string in a FLOAT64 column).
+ * The consistency validation is done upon creation of a model.
+ * Used by:
+ *   *   Tables
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TableSpec} + */ +public final class TableSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TableSpec) + TableSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TableSpec.newBuilder() to construct. + private TableSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TableSpec() { + name_ = ""; + timeColumnSpecId_ = ""; + inputConfigs_ = java.util.Collections.emptyList(); + etag_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TableSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + timeColumnSpecId_ = s; + break; + } + case 24: + { + rowCount_ = input.readInt64(); + break; + } + case 42: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + inputConfigs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + inputConfigs_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.InputConfig.parser(), extensionRegistry)); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + etag_ = s; + break; + } + case 56: + { + columnCount_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000010) != 0)) { + inputConfigs_ = java.util.Collections.unmodifiableList(inputConfigs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TableSpecOuterClass + .internal_static_google_cloud_automl_v1beta1_TableSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.TableSpecOuterClass + .internal_static_google_cloud_automl_v1beta1_TableSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TableSpec.class, + com.google.cloud.automl.v1beta1.TableSpec.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The resource name of the table spec.
+   * Form:
+   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}`
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of the table spec.
+   * Form:
+   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}`
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIME_COLUMN_SPEC_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object timeColumnSpecId_; + /** + * + * + *
+   * column_spec_id of the time column. Only used if the parent dataset's
+   * ml_use_column_spec_id is not set. Used to split rows into TRAIN, VALIDATE
+   * and TEST sets such that oldest rows go to TRAIN set, newest to TEST, and
+   * those in between to VALIDATE.
+   * Required type: TIMESTAMP.
+   * If both this column and ml_use_column are not set, then ML use of all rows
+   * will be assigned by AutoML. NOTE: Updates of this field will instantly
+   * affect any other users concurrently working with the dataset.
+   * 
+ * + * string time_column_spec_id = 2; + */ + public java.lang.String getTimeColumnSpecId() { + java.lang.Object ref = timeColumnSpecId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeColumnSpecId_ = s; + return s; + } + } + /** + * + * + *
+   * column_spec_id of the time column. Only used if the parent dataset's
+   * ml_use_column_spec_id is not set. Used to split rows into TRAIN, VALIDATE
+   * and TEST sets such that oldest rows go to TRAIN set, newest to TEST, and
+   * those in between to VALIDATE.
+   * Required type: TIMESTAMP.
+   * If both this column and ml_use_column are not set, then ML use of all rows
+   * will be assigned by AutoML. NOTE: Updates of this field will instantly
+   * affect any other users concurrently working with the dataset.
+   * 
+ * + * string time_column_spec_id = 2; + */ + public com.google.protobuf.ByteString getTimeColumnSpecIdBytes() { + java.lang.Object ref = timeColumnSpecId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeColumnSpecId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROW_COUNT_FIELD_NUMBER = 3; + private long rowCount_; + /** + * + * + *
+   * Output only. The number of rows (i.e. examples) in the table.
+   * 
+ * + * int64 row_count = 3; + */ + public long getRowCount() { + return rowCount_; + } + + public static final int COLUMN_COUNT_FIELD_NUMBER = 7; + private long columnCount_; + /** + * + * + *
+   * Output only. The number of columns of the table. That is, the number of
+   * child ColumnSpec-s.
+   * 
+ * + * int64 column_count = 7; + */ + public long getColumnCount() { + return columnCount_; + } + + public static final int INPUT_CONFIGS_FIELD_NUMBER = 5; + private java.util.List inputConfigs_; + /** + * + * + *
+   * Output only. Input configs via which data currently residing in the table
+   * had been imported.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public java.util.List getInputConfigsList() { + return inputConfigs_; + } + /** + * + * + *
+   * Output only. Input configs via which data currently residing in the table
+   * had been imported.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public java.util.List + getInputConfigsOrBuilderList() { + return inputConfigs_; + } + /** + * + * + *
+   * Output only. Input configs via which data currently residing in the table
+   * had been imported.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public int getInputConfigsCount() { + return inputConfigs_.size(); + } + /** + * + * + *
+   * Output only. Input configs via which data currently residing in the table
+   * had been imported.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public com.google.cloud.automl.v1beta1.InputConfig getInputConfigs(int index) { + return inputConfigs_.get(index); + } + /** + * + * + *
+   * Output only. Input configs via which data currently residing in the table
+   * had been imported.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigsOrBuilder(int index) { + return inputConfigs_.get(index); + } + + public static final int ETAG_FIELD_NUMBER = 6; + private volatile java.lang.Object etag_; + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 6; + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 6; + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getTimeColumnSpecIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, timeColumnSpecId_); + } + if (rowCount_ != 0L) { + output.writeInt64(3, rowCount_); + } + for (int i = 0; i < inputConfigs_.size(); i++) { + output.writeMessage(5, inputConfigs_.get(i)); + } + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, etag_); + } + if (columnCount_ != 0L) { + output.writeInt64(7, columnCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getTimeColumnSpecIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, timeColumnSpecId_); + } + if (rowCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, rowCount_); + } + for (int i = 0; i < inputConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, inputConfigs_.get(i)); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, etag_); + } + if (columnCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, columnCount_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.TableSpec)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.TableSpec other = + (com.google.cloud.automl.v1beta1.TableSpec) obj; + + if (!getName().equals(other.getName())) return false; + if (!getTimeColumnSpecId().equals(other.getTimeColumnSpecId())) return false; + if (getRowCount() != other.getRowCount()) return false; + if (getColumnCount() != other.getColumnCount()) return false; + if (!getInputConfigsList().equals(other.getInputConfigsList())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TIME_COLUMN_SPEC_ID_FIELD_NUMBER; + hash = (53 * hash) + getTimeColumnSpecId().hashCode(); + hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount()); + hash = (37 * hash) + COLUMN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getColumnCount()); + if (getInputConfigsCount() > 0) { + hash = (37 * hash) + INPUT_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getInputConfigsList().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.TableSpec parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TableSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TableSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TableSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TableSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TableSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TableSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TableSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TableSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TableSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TableSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TableSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.TableSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A specification of a relational table.
+   * The table's schema is represented via its child column specs. It is
+   * pre-populated as part of ImportData by schema inference algorithm, the
+   * version of which is a required parameter of ImportData InputConfig.
+   * Note: While working with a table, at times the schema may be
+   * inconsistent with the data in the table (e.g. string in a FLOAT64 column).
+   * The consistency validation is done upon creation of a model.
+   * Used by:
+   *   *   Tables
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TableSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TableSpec) + com.google.cloud.automl.v1beta1.TableSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TableSpecOuterClass + .internal_static_google_cloud_automl_v1beta1_TableSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.TableSpecOuterClass + .internal_static_google_cloud_automl_v1beta1_TableSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TableSpec.class, + com.google.cloud.automl.v1beta1.TableSpec.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.TableSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInputConfigsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + timeColumnSpecId_ = ""; + + rowCount_ = 0L; + + columnCount_ = 0L; + + if (inputConfigsBuilder_ == null) { + inputConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + inputConfigsBuilder_.clear(); + } + etag_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TableSpecOuterClass + .internal_static_google_cloud_automl_v1beta1_TableSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TableSpec getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.TableSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TableSpec build() { + com.google.cloud.automl.v1beta1.TableSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TableSpec buildPartial() { + com.google.cloud.automl.v1beta1.TableSpec result = + new com.google.cloud.automl.v1beta1.TableSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.timeColumnSpecId_ = timeColumnSpecId_; + result.rowCount_ = rowCount_; + result.columnCount_ = columnCount_; + if (inputConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + inputConfigs_ = java.util.Collections.unmodifiableList(inputConfigs_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.inputConfigs_ = inputConfigs_; + } else { + result.inputConfigs_ = inputConfigsBuilder_.build(); + } + result.etag_ = etag_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.TableSpec) { + return mergeFrom((com.google.cloud.automl.v1beta1.TableSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.TableSpec other) { + if (other == com.google.cloud.automl.v1beta1.TableSpec.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getTimeColumnSpecId().isEmpty()) { + timeColumnSpecId_ = other.timeColumnSpecId_; + onChanged(); + } + if (other.getRowCount() != 0L) { + setRowCount(other.getRowCount()); + } + if (other.getColumnCount() != 0L) { + setColumnCount(other.getColumnCount()); + } + if (inputConfigsBuilder_ == null) { + if (!other.inputConfigs_.isEmpty()) { + if (inputConfigs_.isEmpty()) { + inputConfigs_ = other.inputConfigs_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureInputConfigsIsMutable(); + inputConfigs_.addAll(other.inputConfigs_); + } + onChanged(); + } + } else { + if (!other.inputConfigs_.isEmpty()) { + if (inputConfigsBuilder_.isEmpty()) { + inputConfigsBuilder_.dispose(); + inputConfigsBuilder_ = null; + inputConfigs_ = other.inputConfigs_; + bitField0_ = (bitField0_ & ~0x00000010); + inputConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInputConfigsFieldBuilder() + : null; + } else { + inputConfigsBuilder_.addAllMessages(other.inputConfigs_); + } + } + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.TableSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.TableSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of the table spec.
+     * Form:
+     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}`
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the table spec.
+     * Form:
+     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}`
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the table spec.
+     * Form:
+     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}`
+     * 
+ * + * string name = 1; + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the table spec.
+     * Form:
+     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}`
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the table spec.
+     * Form:
+     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}`
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object timeColumnSpecId_ = ""; + /** + * + * + *
+     * column_spec_id of the time column. Only used if the parent dataset's
+     * ml_use_column_spec_id is not set. Used to split rows into TRAIN, VALIDATE
+     * and TEST sets such that oldest rows go to TRAIN set, newest to TEST, and
+     * those in between to VALIDATE.
+     * Required type: TIMESTAMP.
+     * If both this column and ml_use_column are not set, then ML use of all rows
+     * will be assigned by AutoML. NOTE: Updates of this field will instantly
+     * affect any other users concurrently working with the dataset.
+     * 
+ * + * string time_column_spec_id = 2; + */ + public java.lang.String getTimeColumnSpecId() { + java.lang.Object ref = timeColumnSpecId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeColumnSpecId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * column_spec_id of the time column. Only used if the parent dataset's
+     * ml_use_column_spec_id is not set. Used to split rows into TRAIN, VALIDATE
+     * and TEST sets such that oldest rows go to TRAIN set, newest to TEST, and
+     * those in between to VALIDATE.
+     * Required type: TIMESTAMP.
+     * If both this column and ml_use_column are not set, then ML use of all rows
+     * will be assigned by AutoML. NOTE: Updates of this field will instantly
+     * affect any other users concurrently working with the dataset.
+     * 
+ * + * string time_column_spec_id = 2; + */ + public com.google.protobuf.ByteString getTimeColumnSpecIdBytes() { + java.lang.Object ref = timeColumnSpecId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeColumnSpecId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * column_spec_id of the time column. Only used if the parent dataset's
+     * ml_use_column_spec_id is not set. Used to split rows into TRAIN, VALIDATE
+     * and TEST sets such that oldest rows go to TRAIN set, newest to TEST, and
+     * those in between to VALIDATE.
+     * Required type: TIMESTAMP.
+     * If both this column and ml_use_column are not set, then ML use of all rows
+     * will be assigned by AutoML. NOTE: Updates of this field will instantly
+     * affect any other users concurrently working with the dataset.
+     * 
+ * + * string time_column_spec_id = 2; + */ + public Builder setTimeColumnSpecId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + timeColumnSpecId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * column_spec_id of the time column. Only used if the parent dataset's
+     * ml_use_column_spec_id is not set. Used to split rows into TRAIN, VALIDATE
+     * and TEST sets such that oldest rows go to TRAIN set, newest to TEST, and
+     * those in between to VALIDATE.
+     * Required type: TIMESTAMP.
+     * If both this column and ml_use_column are not set, then ML use of all rows
+     * will be assigned by AutoML. NOTE: Updates of this field will instantly
+     * affect any other users concurrently working with the dataset.
+     * 
+ * + * string time_column_spec_id = 2; + */ + public Builder clearTimeColumnSpecId() { + + timeColumnSpecId_ = getDefaultInstance().getTimeColumnSpecId(); + onChanged(); + return this; + } + /** + * + * + *
+     * column_spec_id of the time column. Only used if the parent dataset's
+     * ml_use_column_spec_id is not set. Used to split rows into TRAIN, VALIDATE
+     * and TEST sets such that oldest rows go to TRAIN set, newest to TEST, and
+     * those in between to VALIDATE.
+     * Required type: TIMESTAMP.
+     * If both this column and ml_use_column are not set, then ML use of all rows
+     * will be assigned by AutoML. NOTE: Updates of this field will instantly
+     * affect any other users concurrently working with the dataset.
+     * 
+ * + * string time_column_spec_id = 2; + */ + public Builder setTimeColumnSpecIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + timeColumnSpecId_ = value; + onChanged(); + return this; + } + + private long rowCount_; + /** + * + * + *
+     * Output only. The number of rows (i.e. examples) in the table.
+     * 
+ * + * int64 row_count = 3; + */ + public long getRowCount() { + return rowCount_; + } + /** + * + * + *
+     * Output only. The number of rows (i.e. examples) in the table.
+     * 
+ * + * int64 row_count = 3; + */ + public Builder setRowCount(long value) { + + rowCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The number of rows (i.e. examples) in the table.
+     * 
+ * + * int64 row_count = 3; + */ + public Builder clearRowCount() { + + rowCount_ = 0L; + onChanged(); + return this; + } + + private long columnCount_; + /** + * + * + *
+     * Output only. The number of columns of the table. That is, the number of
+     * child ColumnSpec-s.
+     * 
+ * + * int64 column_count = 7; + */ + public long getColumnCount() { + return columnCount_; + } + /** + * + * + *
+     * Output only. The number of columns of the table. That is, the number of
+     * child ColumnSpec-s.
+     * 
+ * + * int64 column_count = 7; + */ + public Builder setColumnCount(long value) { + + columnCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The number of columns of the table. That is, the number of
+     * child ColumnSpec-s.
+     * 
+ * + * int64 column_count = 7; + */ + public Builder clearColumnCount() { + + columnCount_ = 0L; + onChanged(); + return this; + } + + private java.util.List inputConfigs_ = + java.util.Collections.emptyList(); + + private void ensureInputConfigsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + inputConfigs_ = + new java.util.ArrayList(inputConfigs_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.InputConfig, + com.google.cloud.automl.v1beta1.InputConfig.Builder, + com.google.cloud.automl.v1beta1.InputConfigOrBuilder> + inputConfigsBuilder_; + + /** + * + * + *
+     * Output only. Input configs via which data currently residing in the table
+     * had been imported.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public java.util.List getInputConfigsList() { + if (inputConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputConfigs_); + } else { + return inputConfigsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. Input configs via which data currently residing in the table
+     * had been imported.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public int getInputConfigsCount() { + if (inputConfigsBuilder_ == null) { + return inputConfigs_.size(); + } else { + return inputConfigsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. Input configs via which data currently residing in the table
+     * had been imported.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public com.google.cloud.automl.v1beta1.InputConfig getInputConfigs(int index) { + if (inputConfigsBuilder_ == null) { + return inputConfigs_.get(index); + } else { + return inputConfigsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. Input configs via which data currently residing in the table
+     * had been imported.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public Builder setInputConfigs(int index, com.google.cloud.automl.v1beta1.InputConfig value) { + if (inputConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputConfigsIsMutable(); + inputConfigs_.set(index, value); + onChanged(); + } else { + inputConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Input configs via which data currently residing in the table
+     * had been imported.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public Builder setInputConfigs( + int index, com.google.cloud.automl.v1beta1.InputConfig.Builder builderForValue) { + if (inputConfigsBuilder_ == null) { + ensureInputConfigsIsMutable(); + inputConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + inputConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Input configs via which data currently residing in the table
+     * had been imported.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public Builder addInputConfigs(com.google.cloud.automl.v1beta1.InputConfig value) { + if (inputConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputConfigsIsMutable(); + inputConfigs_.add(value); + onChanged(); + } else { + inputConfigsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. Input configs via which data currently residing in the table
+     * had been imported.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public Builder addInputConfigs(int index, com.google.cloud.automl.v1beta1.InputConfig value) { + if (inputConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputConfigsIsMutable(); + inputConfigs_.add(index, value); + onChanged(); + } else { + inputConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Input configs via which data currently residing in the table
+     * had been imported.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public Builder addInputConfigs( + com.google.cloud.automl.v1beta1.InputConfig.Builder builderForValue) { + if (inputConfigsBuilder_ == null) { + ensureInputConfigsIsMutable(); + inputConfigs_.add(builderForValue.build()); + onChanged(); + } else { + inputConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Input configs via which data currently residing in the table
+     * had been imported.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public Builder addInputConfigs( + int index, com.google.cloud.automl.v1beta1.InputConfig.Builder builderForValue) { + if (inputConfigsBuilder_ == null) { + ensureInputConfigsIsMutable(); + inputConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + inputConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Input configs via which data currently residing in the table
+     * had been imported.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public Builder addAllInputConfigs( + java.lang.Iterable values) { + if (inputConfigsBuilder_ == null) { + ensureInputConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputConfigs_); + onChanged(); + } else { + inputConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. Input configs via which data currently residing in the table
+     * had been imported.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public Builder clearInputConfigs() { + if (inputConfigsBuilder_ == null) { + inputConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + inputConfigsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Input configs via which data currently residing in the table
+     * had been imported.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public Builder removeInputConfigs(int index) { + if (inputConfigsBuilder_ == null) { + ensureInputConfigsIsMutable(); + inputConfigs_.remove(index); + onChanged(); + } else { + inputConfigsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. Input configs via which data currently residing in the table
+     * had been imported.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public com.google.cloud.automl.v1beta1.InputConfig.Builder getInputConfigsBuilder(int index) { + return getInputConfigsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. Input configs via which data currently residing in the table
+     * had been imported.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigsOrBuilder( + int index) { + if (inputConfigsBuilder_ == null) { + return inputConfigs_.get(index); + } else { + return inputConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. Input configs via which data currently residing in the table
+     * had been imported.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public java.util.List + getInputConfigsOrBuilderList() { + if (inputConfigsBuilder_ != null) { + return inputConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputConfigs_); + } + } + /** + * + * + *
+     * Output only. Input configs via which data currently residing in the table
+     * had been imported.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public com.google.cloud.automl.v1beta1.InputConfig.Builder addInputConfigsBuilder() { + return getInputConfigsFieldBuilder() + .addBuilder(com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Input configs via which data currently residing in the table
+     * had been imported.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public com.google.cloud.automl.v1beta1.InputConfig.Builder addInputConfigsBuilder(int index) { + return getInputConfigsFieldBuilder() + .addBuilder(index, com.google.cloud.automl.v1beta1.InputConfig.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Input configs via which data currently residing in the table
+     * had been imported.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + public java.util.List + getInputConfigsBuilderList() { + return getInputConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.InputConfig, + com.google.cloud.automl.v1beta1.InputConfig.Builder, + com.google.cloud.automl.v1beta1.InputConfigOrBuilder> + getInputConfigsFieldBuilder() { + if (inputConfigsBuilder_ == null) { + inputConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.InputConfig, + com.google.cloud.automl.v1beta1.InputConfig.Builder, + com.google.cloud.automl.v1beta1.InputConfigOrBuilder>( + inputConfigs_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + inputConfigs_ = null; + } + return inputConfigsBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 6; + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 6; + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 6; + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + etag_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 6; + */ + public Builder clearEtag() { + + etag_ = getDefaultInstance().getEtag(); + onChanged(); + return this; + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 6; + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + etag_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TableSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TableSpec) + private static final com.google.cloud.automl.v1beta1.TableSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TableSpec(); + } + + public static com.google.cloud.automl.v1beta1.TableSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TableSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TableSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOrBuilder.java new file mode 100644 index 000000000000..bf3238710997 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOrBuilder.java @@ -0,0 +1,173 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/table_spec.proto + +package com.google.cloud.automl.v1beta1; + +public interface TableSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TableSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of the table spec.
+   * Form:
+   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}`
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of the table spec.
+   * Form:
+   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}`
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * column_spec_id of the time column. Only used if the parent dataset's
+   * ml_use_column_spec_id is not set. Used to split rows into TRAIN, VALIDATE
+   * and TEST sets such that oldest rows go to TRAIN set, newest to TEST, and
+   * those in between to VALIDATE.
+   * Required type: TIMESTAMP.
+   * If both this column and ml_use_column are not set, then ML use of all rows
+   * will be assigned by AutoML. NOTE: Updates of this field will instantly
+   * affect any other users concurrently working with the dataset.
+   * 
+ * + * string time_column_spec_id = 2; + */ + java.lang.String getTimeColumnSpecId(); + /** + * + * + *
+   * column_spec_id of the time column. Only used if the parent dataset's
+   * ml_use_column_spec_id is not set. Used to split rows into TRAIN, VALIDATE
+   * and TEST sets such that oldest rows go to TRAIN set, newest to TEST, and
+   * those in between to VALIDATE.
+   * Required type: TIMESTAMP.
+   * If both this column and ml_use_column are not set, then ML use of all rows
+   * will be assigned by AutoML. NOTE: Updates of this field will instantly
+   * affect any other users concurrently working with the dataset.
+   * 
+ * + * string time_column_spec_id = 2; + */ + com.google.protobuf.ByteString getTimeColumnSpecIdBytes(); + + /** + * + * + *
+   * Output only. The number of rows (i.e. examples) in the table.
+   * 
+ * + * int64 row_count = 3; + */ + long getRowCount(); + + /** + * + * + *
+   * Output only. The number of columns of the table. That is, the number of
+   * child ColumnSpec-s.
+   * 
+ * + * int64 column_count = 7; + */ + long getColumnCount(); + + /** + * + * + *
+   * Output only. Input configs via which data currently residing in the table
+   * had been imported.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + java.util.List getInputConfigsList(); + /** + * + * + *
+   * Output only. Input configs via which data currently residing in the table
+   * had been imported.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + com.google.cloud.automl.v1beta1.InputConfig getInputConfigs(int index); + /** + * + * + *
+   * Output only. Input configs via which data currently residing in the table
+   * had been imported.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + int getInputConfigsCount(); + /** + * + * + *
+   * Output only. Input configs via which data currently residing in the table
+   * had been imported.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + java.util.List + getInputConfigsOrBuilderList(); + /** + * + * + *
+   * Output only. Input configs via which data currently residing in the table
+   * had been imported.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; + */ + com.google.cloud.automl.v1beta1.InputConfigOrBuilder getInputConfigsOrBuilder(int index); + + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 6; + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 6; + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOuterClass.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOuterClass.java new file mode 100644 index 000000000000..d87dd04e6489 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TableSpecOuterClass.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/table_spec.proto + +package com.google.cloud.automl.v1beta1; + +public final class TableSpecOuterClass { + private TableSpecOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TableSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TableSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/automl/v1beta1/table_spec" + + ".proto\022\033google.cloud.automl.v1beta1\032\034goo" + + "gle/api/annotations.proto\032$google/cloud/" + + "automl/v1beta1/io.proto\"\256\001\n\tTableSpec\022\014\n" + + "\004name\030\001 \001(\t\022\033\n\023time_column_spec_id\030\002 \001(\t" + + "\022\021\n\trow_count\030\003 \001(\003\022\024\n\014column_count\030\007 \001(" + + "\003\022?\n\rinput_configs\030\005 \003(\0132(.google.cloud." + + "automl.v1beta1.InputConfig\022\014\n\004etag\030\006 \001(\t" + + "B\204\001\n\037com.google.cloud.automl.v1beta1P\001ZA" + + "google.golang.org/genproto/googleapis/cl" + + "oud/automl/v1beta1;automl\312\002\033Google\\Cloud" + + "\\AutoMl\\V1beta1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.automl.v1beta1.Io.getDescriptor(), + }, + assigner); + internal_static_google_cloud_automl_v1beta1_TableSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_TableSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TableSpec_descriptor, + new java.lang.String[] { + "Name", "TimeColumnSpecId", "RowCount", "ColumnCount", "InputConfigs", "Etag", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.automl.v1beta1.Io.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Tables.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Tables.java new file mode 100644 index 000000000000..9f6e8ec6b889 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Tables.java @@ -0,0 +1,165 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/tables.proto + +package com.google.cloud.automl.v1beta1; + +public final class Tables { + private Tables() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TablesDatasetMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TablesDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TablesDatasetMetadata_TargetColumnCorrelationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TablesDatasetMetadata_TargetColumnCorrelationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TablesModelMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TablesModelMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TablesAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TablesAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TablesModelColumnInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TablesModelColumnInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n(google/cloud/automl/v1beta1/tables.pro" + + "to\022\033google.cloud.automl.v1beta1\032\034google/" + + "api/annotations.proto\032-google/cloud/auto" + + "ml/v1beta1/column_spec.proto\032,google/clo" + + "ud/automl/v1beta1/data_stats.proto\032(goog" + + "le/cloud/automl/v1beta1/ranges.proto\032\034go" + + "ogle/protobuf/struct.proto\032\037google/proto" + + "buf/timestamp.proto\"\260\003\n\025TablesDatasetMet" + + "adata\022\035\n\025primary_table_spec_id\030\001 \001(\t\022\035\n\025" + + "target_column_spec_id\030\002 \001(\t\022\035\n\025weight_co" + + "lumn_spec_id\030\003 \001(\t\022\035\n\025ml_use_column_spec" + + "_id\030\004 \001(\t\022t\n\032target_column_correlations\030" + + "\006 \003(\0132P.google.cloud.automl.v1beta1.Tabl" + + "esDatasetMetadata.TargetColumnCorrelatio" + + "nsEntry\0225\n\021stats_update_time\030\007 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\032n\n\035TargetColumnCo" + + "rrelationsEntry\022\013\n\003key\030\001 \001(\t\022<\n\005value\030\002 " + + "\001(\0132-.google.cloud.automl.v1beta1.Correl" + + "ationStats:\0028\001\"\351\002\n\023TablesModelMetadata\022C" + + "\n\022target_column_spec\030\002 \001(\0132\'.google.clou" + + "d.automl.v1beta1.ColumnSpec\022K\n\032input_fea" + + "ture_column_specs\030\003 \003(\0132\'.google.cloud.a" + + "utoml.v1beta1.ColumnSpec\022\036\n\026optimization" + + "_objective\030\004 \001(\t\022T\n\030tables_model_column_" + + "info\030\005 \003(\01322.google.cloud.automl.v1beta1" + + ".TablesModelColumnInfo\022%\n\035train_budget_m" + + "illi_node_hours\030\006 \001(\003\022#\n\033train_cost_mill" + + "i_node_hours\030\007 \001(\003\"\345\001\n\020TablesAnnotation\022" + + "\r\n\005score\030\001 \001(\002\022E\n\023prediction_interval\030\004 " + + "\001(\0132(.google.cloud.automl.v1beta1.Double" + + "Range\022%\n\005value\030\002 \001(\0132\026.google.protobuf.V" + + "alue\022T\n\030tables_model_column_info\030\003 \003(\01322" + + ".google.cloud.automl.v1beta1.TablesModel" + + "ColumnInfo\"j\n\025TablesModelColumnInfo\022\030\n\020c" + + "olumn_spec_name\030\001 \001(\t\022\033\n\023column_display_" + + "name\030\002 \001(\t\022\032\n\022feature_importance\030\003 \001(\002B\204" + + "\001\n\037com.google.cloud.automl.v1beta1P\001ZAgo" + + "ogle.golang.org/genproto/googleapis/clou" + + "d/automl/v1beta1;automl\312\002\033Google\\Cloud\\A" + + "utoMl\\V1beta1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.automl.v1beta1.ColumnSpecOuterClass.getDescriptor(), + com.google.cloud.automl.v1beta1.DataStatsOuterClass.getDescriptor(), + com.google.cloud.automl.v1beta1.RangesProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_automl_v1beta1_TablesDatasetMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_TablesDatasetMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TablesDatasetMetadata_descriptor, + new java.lang.String[] { + "PrimaryTableSpecId", + "TargetColumnSpecId", + "WeightColumnSpecId", + "MlUseColumnSpecId", + "TargetColumnCorrelations", + "StatsUpdateTime", + }); + internal_static_google_cloud_automl_v1beta1_TablesDatasetMetadata_TargetColumnCorrelationsEntry_descriptor = + internal_static_google_cloud_automl_v1beta1_TablesDatasetMetadata_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_automl_v1beta1_TablesDatasetMetadata_TargetColumnCorrelationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TablesDatasetMetadata_TargetColumnCorrelationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_automl_v1beta1_TablesModelMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_TablesModelMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TablesModelMetadata_descriptor, + new java.lang.String[] { + "TargetColumnSpec", + "InputFeatureColumnSpecs", + "OptimizationObjective", + "TablesModelColumnInfo", + "TrainBudgetMilliNodeHours", + "TrainCostMilliNodeHours", + }); + internal_static_google_cloud_automl_v1beta1_TablesAnnotation_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_automl_v1beta1_TablesAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TablesAnnotation_descriptor, + new java.lang.String[] { + "Score", "PredictionInterval", "Value", "TablesModelColumnInfo", + }); + internal_static_google_cloud_automl_v1beta1_TablesModelColumnInfo_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_automl_v1beta1_TablesModelColumnInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TablesModelColumnInfo_descriptor, + new java.lang.String[] { + "ColumnSpecName", "ColumnDisplayName", "FeatureImportance", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.automl.v1beta1.ColumnSpecOuterClass.getDescriptor(); + com.google.cloud.automl.v1beta1.DataStatsOuterClass.getDescriptor(); + com.google.cloud.automl.v1beta1.RangesProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotation.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotation.java new file mode 100644 index 000000000000..d24adb5921bb --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotation.java @@ -0,0 +1,1790 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/tables.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Contains annotation details specific to Tables.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TablesAnnotation} + */ +public final class TablesAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TablesAnnotation) + TablesAnnotationOrBuilder { + private static final long serialVersionUID = 0L; + // Use TablesAnnotation.newBuilder() to construct. + private TablesAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TablesAnnotation() { + tablesModelColumnInfo_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TablesAnnotation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + score_ = input.readFloat(); + break; + } + case 18: + { + com.google.protobuf.Value.Builder subBuilder = null; + if (value_ != null) { + subBuilder = value_.toBuilder(); + } + value_ = input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(value_); + value_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + tablesModelColumnInfo_ = + new java.util.ArrayList< + com.google.cloud.automl.v1beta1.TablesModelColumnInfo>(); + mutable_bitField0_ |= 0x00000008; + } + tablesModelColumnInfo_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.TablesModelColumnInfo.parser(), + extensionRegistry)); + break; + } + case 34: + { + com.google.cloud.automl.v1beta1.DoubleRange.Builder subBuilder = null; + if (predictionInterval_ != null) { + subBuilder = predictionInterval_.toBuilder(); + } + predictionInterval_ = + input.readMessage( + com.google.cloud.automl.v1beta1.DoubleRange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(predictionInterval_); + predictionInterval_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) != 0)) { + tablesModelColumnInfo_ = java.util.Collections.unmodifiableList(tablesModelColumnInfo_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Tables + .internal_static_google_cloud_automl_v1beta1_TablesAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Tables + .internal_static_google_cloud_automl_v1beta1_TablesAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TablesAnnotation.class, + com.google.cloud.automl.v1beta1.TablesAnnotation.Builder.class); + } + + private int bitField0_; + public static final int SCORE_FIELD_NUMBER = 1; + private float score_; + /** + * + * + *
+   * Output only. A confidence estimate between 0.0 and 1.0, inclusive. A higher
+   * value means greater confidence in the returned value.
+   * For
+   * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * of ARRAY(CATEGORY) data type, this is a confidence that one of the values
+   * in the ARRAY would be the provided value.
+   * For
+   * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * of FLOAT64 data type the score is not populated.
+   * 
+ * + * float score = 1; + */ + public float getScore() { + return score_; + } + + public static final int PREDICTION_INTERVAL_FIELD_NUMBER = 4; + private com.google.cloud.automl.v1beta1.DoubleRange predictionInterval_; + /** + * + * + *
+   * Output only. Only populated when
+   * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * has FLOAT64 data type (i.e. for regression predictions). An interval in
+   * which the exactly correct target value has 95% chance to be in.
+   * 
+ * + * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; + */ + public boolean hasPredictionInterval() { + return predictionInterval_ != null; + } + /** + * + * + *
+   * Output only. Only populated when
+   * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * has FLOAT64 data type (i.e. for regression predictions). An interval in
+   * which the exactly correct target value has 95% chance to be in.
+   * 
+ * + * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; + */ + public com.google.cloud.automl.v1beta1.DoubleRange getPredictionInterval() { + return predictionInterval_ == null + ? com.google.cloud.automl.v1beta1.DoubleRange.getDefaultInstance() + : predictionInterval_; + } + /** + * + * + *
+   * Output only. Only populated when
+   * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * has FLOAT64 data type (i.e. for regression predictions). An interval in
+   * which the exactly correct target value has 95% chance to be in.
+   * 
+ * + * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; + */ + public com.google.cloud.automl.v1beta1.DoubleRangeOrBuilder getPredictionIntervalOrBuilder() { + return getPredictionInterval(); + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.protobuf.Value value_; + /** + * + * + *
+   * The predicted value of the row's
+   * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
+   * The value depends on the column's DataType:
+   * CATEGORY - the predicted (with the above confidence `score`) CATEGORY
+   *            value.
+   * FLOAT64 - the predicted (with the above confidence `score`) FLOAT64 value.
+   * ARRAY(CATEGORY) - CATEGORY value meaning that this value would be in the
+   *                   ARRAY in that column (with the above confidence `score`).
+   * 
+ * + * .google.protobuf.Value value = 2; + */ + public boolean hasValue() { + return value_ != null; + } + /** + * + * + *
+   * The predicted value of the row's
+   * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
+   * The value depends on the column's DataType:
+   * CATEGORY - the predicted (with the above confidence `score`) CATEGORY
+   *            value.
+   * FLOAT64 - the predicted (with the above confidence `score`) FLOAT64 value.
+   * ARRAY(CATEGORY) - CATEGORY value meaning that this value would be in the
+   *                   ARRAY in that column (with the above confidence `score`).
+   * 
+ * + * .google.protobuf.Value value = 2; + */ + public com.google.protobuf.Value getValue() { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } + /** + * + * + *
+   * The predicted value of the row's
+   * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
+   * The value depends on the column's DataType:
+   * CATEGORY - the predicted (with the above confidence `score`) CATEGORY
+   *            value.
+   * FLOAT64 - the predicted (with the above confidence `score`) FLOAT64 value.
+   * ARRAY(CATEGORY) - CATEGORY value meaning that this value would be in the
+   *                   ARRAY in that column (with the above confidence `score`).
+   * 
+ * + * .google.protobuf.Value value = 2; + */ + public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { + return getValue(); + } + + public static final int TABLES_MODEL_COLUMN_INFO_FIELD_NUMBER = 3; + private java.util.List + tablesModelColumnInfo_; + /** + * + * + *
+   * Output only. Auxiliary information for each of the model's
+   * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * with respect to this particular prediction.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public java.util.List + getTablesModelColumnInfoList() { + return tablesModelColumnInfo_; + } + /** + * + * + *
+   * Output only. Auxiliary information for each of the model's
+   * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * with respect to this particular prediction.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public java.util.List + getTablesModelColumnInfoOrBuilderList() { + return tablesModelColumnInfo_; + } + /** + * + * + *
+   * Output only. Auxiliary information for each of the model's
+   * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * with respect to this particular prediction.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public int getTablesModelColumnInfoCount() { + return tablesModelColumnInfo_.size(); + } + /** + * + * + *
+   * Output only. Auxiliary information for each of the model's
+   * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * with respect to this particular prediction.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColumnInfo(int index) { + return tablesModelColumnInfo_.get(index); + } + /** + * + * + *
+   * Output only. Auxiliary information for each of the model's
+   * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * with respect to this particular prediction.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder + getTablesModelColumnInfoOrBuilder(int index) { + return tablesModelColumnInfo_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (score_ != 0F) { + output.writeFloat(1, score_); + } + if (value_ != null) { + output.writeMessage(2, getValue()); + } + for (int i = 0; i < tablesModelColumnInfo_.size(); i++) { + output.writeMessage(3, tablesModelColumnInfo_.get(i)); + } + if (predictionInterval_ != null) { + output.writeMessage(4, getPredictionInterval()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (score_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); + } + if (value_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); + } + for (int i = 0; i < tablesModelColumnInfo_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, tablesModelColumnInfo_.get(i)); + } + if (predictionInterval_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPredictionInterval()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.TablesAnnotation)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.TablesAnnotation other = + (com.google.cloud.automl.v1beta1.TablesAnnotation) obj; + + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) return false; + if (hasPredictionInterval() != other.hasPredictionInterval()) return false; + if (hasPredictionInterval()) { + if (!getPredictionInterval().equals(other.getPredictionInterval())) return false; + } + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue().equals(other.getValue())) return false; + } + if (!getTablesModelColumnInfoList().equals(other.getTablesModelColumnInfoList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + if (hasPredictionInterval()) { + hash = (37 * hash) + PREDICTION_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getPredictionInterval().hashCode(); + } + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + if (getTablesModelColumnInfoCount() > 0) { + hash = (37 * hash) + TABLES_MODEL_COLUMN_INFO_FIELD_NUMBER; + hash = (53 * hash) + getTablesModelColumnInfoList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.TablesAnnotation parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TablesAnnotation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TablesAnnotation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TablesAnnotation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TablesAnnotation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TablesAnnotation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TablesAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TablesAnnotation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TablesAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TablesAnnotation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TablesAnnotation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TablesAnnotation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.TablesAnnotation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Contains annotation details specific to Tables.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TablesAnnotation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TablesAnnotation) + com.google.cloud.automl.v1beta1.TablesAnnotationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Tables + .internal_static_google_cloud_automl_v1beta1_TablesAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Tables + .internal_static_google_cloud_automl_v1beta1_TablesAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TablesAnnotation.class, + com.google.cloud.automl.v1beta1.TablesAnnotation.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.TablesAnnotation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTablesModelColumnInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + score_ = 0F; + + if (predictionIntervalBuilder_ == null) { + predictionInterval_ = null; + } else { + predictionInterval_ = null; + predictionIntervalBuilder_ = null; + } + if (valueBuilder_ == null) { + value_ = null; + } else { + value_ = null; + valueBuilder_ = null; + } + if (tablesModelColumnInfoBuilder_ == null) { + tablesModelColumnInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + tablesModelColumnInfoBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Tables + .internal_static_google_cloud_automl_v1beta1_TablesAnnotation_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TablesAnnotation getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.TablesAnnotation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TablesAnnotation build() { + com.google.cloud.automl.v1beta1.TablesAnnotation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TablesAnnotation buildPartial() { + com.google.cloud.automl.v1beta1.TablesAnnotation result = + new com.google.cloud.automl.v1beta1.TablesAnnotation(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.score_ = score_; + if (predictionIntervalBuilder_ == null) { + result.predictionInterval_ = predictionInterval_; + } else { + result.predictionInterval_ = predictionIntervalBuilder_.build(); + } + if (valueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = valueBuilder_.build(); + } + if (tablesModelColumnInfoBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + tablesModelColumnInfo_ = java.util.Collections.unmodifiableList(tablesModelColumnInfo_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.tablesModelColumnInfo_ = tablesModelColumnInfo_; + } else { + result.tablesModelColumnInfo_ = tablesModelColumnInfoBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.TablesAnnotation) { + return mergeFrom((com.google.cloud.automl.v1beta1.TablesAnnotation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.TablesAnnotation other) { + if (other == com.google.cloud.automl.v1beta1.TablesAnnotation.getDefaultInstance()) + return this; + if (other.getScore() != 0F) { + setScore(other.getScore()); + } + if (other.hasPredictionInterval()) { + mergePredictionInterval(other.getPredictionInterval()); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + if (tablesModelColumnInfoBuilder_ == null) { + if (!other.tablesModelColumnInfo_.isEmpty()) { + if (tablesModelColumnInfo_.isEmpty()) { + tablesModelColumnInfo_ = other.tablesModelColumnInfo_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTablesModelColumnInfoIsMutable(); + tablesModelColumnInfo_.addAll(other.tablesModelColumnInfo_); + } + onChanged(); + } + } else { + if (!other.tablesModelColumnInfo_.isEmpty()) { + if (tablesModelColumnInfoBuilder_.isEmpty()) { + tablesModelColumnInfoBuilder_.dispose(); + tablesModelColumnInfoBuilder_ = null; + tablesModelColumnInfo_ = other.tablesModelColumnInfo_; + bitField0_ = (bitField0_ & ~0x00000008); + tablesModelColumnInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTablesModelColumnInfoFieldBuilder() + : null; + } else { + tablesModelColumnInfoBuilder_.addAllMessages(other.tablesModelColumnInfo_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.TablesAnnotation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.TablesAnnotation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private float score_; + /** + * + * + *
+     * Output only. A confidence estimate between 0.0 and 1.0, inclusive. A higher
+     * value means greater confidence in the returned value.
+     * For
+     * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * of ARRAY(CATEGORY) data type, this is a confidence that one of the values
+     * in the ARRAY would be the provided value.
+     * For
+     * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * of FLOAT64 data type the score is not populated.
+     * 
+ * + * float score = 1; + */ + public float getScore() { + return score_; + } + /** + * + * + *
+     * Output only. A confidence estimate between 0.0 and 1.0, inclusive. A higher
+     * value means greater confidence in the returned value.
+     * For
+     * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * of ARRAY(CATEGORY) data type, this is a confidence that one of the values
+     * in the ARRAY would be the provided value.
+     * For
+     * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * of FLOAT64 data type the score is not populated.
+     * 
+ * + * float score = 1; + */ + public Builder setScore(float value) { + + score_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A confidence estimate between 0.0 and 1.0, inclusive. A higher
+     * value means greater confidence in the returned value.
+     * For
+     * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * of ARRAY(CATEGORY) data type, this is a confidence that one of the values
+     * in the ARRAY would be the provided value.
+     * For
+     * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * of FLOAT64 data type the score is not populated.
+     * 
+ * + * float score = 1; + */ + public Builder clearScore() { + + score_ = 0F; + onChanged(); + return this; + } + + private com.google.cloud.automl.v1beta1.DoubleRange predictionInterval_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DoubleRange, + com.google.cloud.automl.v1beta1.DoubleRange.Builder, + com.google.cloud.automl.v1beta1.DoubleRangeOrBuilder> + predictionIntervalBuilder_; + /** + * + * + *
+     * Output only. Only populated when
+     * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * has FLOAT64 data type (i.e. for regression predictions). An interval in
+     * which the exactly correct target value has 95% chance to be in.
+     * 
+ * + * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; + */ + public boolean hasPredictionInterval() { + return predictionIntervalBuilder_ != null || predictionInterval_ != null; + } + /** + * + * + *
+     * Output only. Only populated when
+     * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * has FLOAT64 data type (i.e. for regression predictions). An interval in
+     * which the exactly correct target value has 95% chance to be in.
+     * 
+ * + * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; + */ + public com.google.cloud.automl.v1beta1.DoubleRange getPredictionInterval() { + if (predictionIntervalBuilder_ == null) { + return predictionInterval_ == null + ? com.google.cloud.automl.v1beta1.DoubleRange.getDefaultInstance() + : predictionInterval_; + } else { + return predictionIntervalBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Only populated when
+     * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * has FLOAT64 data type (i.e. for regression predictions). An interval in
+     * which the exactly correct target value has 95% chance to be in.
+     * 
+ * + * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; + */ + public Builder setPredictionInterval(com.google.cloud.automl.v1beta1.DoubleRange value) { + if (predictionIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predictionInterval_ = value; + onChanged(); + } else { + predictionIntervalBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Only populated when
+     * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * has FLOAT64 data type (i.e. for regression predictions). An interval in
+     * which the exactly correct target value has 95% chance to be in.
+     * 
+ * + * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; + */ + public Builder setPredictionInterval( + com.google.cloud.automl.v1beta1.DoubleRange.Builder builderForValue) { + if (predictionIntervalBuilder_ == null) { + predictionInterval_ = builderForValue.build(); + onChanged(); + } else { + predictionIntervalBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Only populated when
+     * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * has FLOAT64 data type (i.e. for regression predictions). An interval in
+     * which the exactly correct target value has 95% chance to be in.
+     * 
+ * + * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; + */ + public Builder mergePredictionInterval(com.google.cloud.automl.v1beta1.DoubleRange value) { + if (predictionIntervalBuilder_ == null) { + if (predictionInterval_ != null) { + predictionInterval_ = + com.google.cloud.automl.v1beta1.DoubleRange.newBuilder(predictionInterval_) + .mergeFrom(value) + .buildPartial(); + } else { + predictionInterval_ = value; + } + onChanged(); + } else { + predictionIntervalBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Only populated when
+     * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * has FLOAT64 data type (i.e. for regression predictions). An interval in
+     * which the exactly correct target value has 95% chance to be in.
+     * 
+ * + * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; + */ + public Builder clearPredictionInterval() { + if (predictionIntervalBuilder_ == null) { + predictionInterval_ = null; + onChanged(); + } else { + predictionInterval_ = null; + predictionIntervalBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Only populated when
+     * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * has FLOAT64 data type (i.e. for regression predictions). An interval in
+     * which the exactly correct target value has 95% chance to be in.
+     * 
+ * + * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; + */ + public com.google.cloud.automl.v1beta1.DoubleRange.Builder getPredictionIntervalBuilder() { + + onChanged(); + return getPredictionIntervalFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Only populated when
+     * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * has FLOAT64 data type (i.e. for regression predictions). An interval in
+     * which the exactly correct target value has 95% chance to be in.
+     * 
+ * + * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; + */ + public com.google.cloud.automl.v1beta1.DoubleRangeOrBuilder getPredictionIntervalOrBuilder() { + if (predictionIntervalBuilder_ != null) { + return predictionIntervalBuilder_.getMessageOrBuilder(); + } else { + return predictionInterval_ == null + ? com.google.cloud.automl.v1beta1.DoubleRange.getDefaultInstance() + : predictionInterval_; + } + } + /** + * + * + *
+     * Output only. Only populated when
+     * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * has FLOAT64 data type (i.e. for regression predictions). An interval in
+     * which the exactly correct target value has 95% chance to be in.
+     * 
+ * + * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DoubleRange, + com.google.cloud.automl.v1beta1.DoubleRange.Builder, + com.google.cloud.automl.v1beta1.DoubleRangeOrBuilder> + getPredictionIntervalFieldBuilder() { + if (predictionIntervalBuilder_ == null) { + predictionIntervalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.DoubleRange, + com.google.cloud.automl.v1beta1.DoubleRange.Builder, + com.google.cloud.automl.v1beta1.DoubleRangeOrBuilder>( + getPredictionInterval(), getParentForChildren(), isClean()); + predictionInterval_ = null; + } + return predictionIntervalBuilder_; + } + + private com.google.protobuf.Value value_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + valueBuilder_; + /** + * + * + *
+     * The predicted value of the row's
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
+     * The value depends on the column's DataType:
+     * CATEGORY - the predicted (with the above confidence `score`) CATEGORY
+     *            value.
+     * FLOAT64 - the predicted (with the above confidence `score`) FLOAT64 value.
+     * ARRAY(CATEGORY) - CATEGORY value meaning that this value would be in the
+     *                   ARRAY in that column (with the above confidence `score`).
+     * 
+ * + * .google.protobuf.Value value = 2; + */ + public boolean hasValue() { + return valueBuilder_ != null || value_ != null; + } + /** + * + * + *
+     * The predicted value of the row's
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
+     * The value depends on the column's DataType:
+     * CATEGORY - the predicted (with the above confidence `score`) CATEGORY
+     *            value.
+     * FLOAT64 - the predicted (with the above confidence `score`) FLOAT64 value.
+     * ARRAY(CATEGORY) - CATEGORY value meaning that this value would be in the
+     *                   ARRAY in that column (with the above confidence `score`).
+     * 
+ * + * .google.protobuf.Value value = 2; + */ + public com.google.protobuf.Value getValue() { + if (valueBuilder_ == null) { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } else { + return valueBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The predicted value of the row's
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
+     * The value depends on the column's DataType:
+     * CATEGORY - the predicted (with the above confidence `score`) CATEGORY
+     *            value.
+     * FLOAT64 - the predicted (with the above confidence `score`) FLOAT64 value.
+     * ARRAY(CATEGORY) - CATEGORY value meaning that this value would be in the
+     *                   ARRAY in that column (with the above confidence `score`).
+     * 
+ * + * .google.protobuf.Value value = 2; + */ + public Builder setValue(com.google.protobuf.Value value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + valueBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The predicted value of the row's
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
+     * The value depends on the column's DataType:
+     * CATEGORY - the predicted (with the above confidence `score`) CATEGORY
+     *            value.
+     * FLOAT64 - the predicted (with the above confidence `score`) FLOAT64 value.
+     * ARRAY(CATEGORY) - CATEGORY value meaning that this value would be in the
+     *                   ARRAY in that column (with the above confidence `score`).
+     * 
+ * + * .google.protobuf.Value value = 2; + */ + public Builder setValue(com.google.protobuf.Value.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The predicted value of the row's
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
+     * The value depends on the column's DataType:
+     * CATEGORY - the predicted (with the above confidence `score`) CATEGORY
+     *            value.
+     * FLOAT64 - the predicted (with the above confidence `score`) FLOAT64 value.
+     * ARRAY(CATEGORY) - CATEGORY value meaning that this value would be in the
+     *                   ARRAY in that column (with the above confidence `score`).
+     * 
+ * + * .google.protobuf.Value value = 2; + */ + public Builder mergeValue(com.google.protobuf.Value value) { + if (valueBuilder_ == null) { + if (value_ != null) { + value_ = com.google.protobuf.Value.newBuilder(value_).mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + valueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The predicted value of the row's
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
+     * The value depends on the column's DataType:
+     * CATEGORY - the predicted (with the above confidence `score`) CATEGORY
+     *            value.
+     * FLOAT64 - the predicted (with the above confidence `score`) FLOAT64 value.
+     * ARRAY(CATEGORY) - CATEGORY value meaning that this value would be in the
+     *                   ARRAY in that column (with the above confidence `score`).
+     * 
+ * + * .google.protobuf.Value value = 2; + */ + public Builder clearValue() { + if (valueBuilder_ == null) { + value_ = null; + onChanged(); + } else { + value_ = null; + valueBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The predicted value of the row's
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
+     * The value depends on the column's DataType:
+     * CATEGORY - the predicted (with the above confidence `score`) CATEGORY
+     *            value.
+     * FLOAT64 - the predicted (with the above confidence `score`) FLOAT64 value.
+     * ARRAY(CATEGORY) - CATEGORY value meaning that this value would be in the
+     *                   ARRAY in that column (with the above confidence `score`).
+     * 
+ * + * .google.protobuf.Value value = 2; + */ + public com.google.protobuf.Value.Builder getValueBuilder() { + + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The predicted value of the row's
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
+     * The value depends on the column's DataType:
+     * CATEGORY - the predicted (with the above confidence `score`) CATEGORY
+     *            value.
+     * FLOAT64 - the predicted (with the above confidence `score`) FLOAT64 value.
+     * ARRAY(CATEGORY) - CATEGORY value meaning that this value would be in the
+     *                   ARRAY in that column (with the above confidence `score`).
+     * 
+ * + * .google.protobuf.Value value = 2; + */ + public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } + } + /** + * + * + *
+     * The predicted value of the row's
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
+     * The value depends on the column's DataType:
+     * CATEGORY - the predicted (with the above confidence `score`) CATEGORY
+     *            value.
+     * FLOAT64 - the predicted (with the above confidence `score`) FLOAT64 value.
+     * ARRAY(CATEGORY) - CATEGORY value meaning that this value would be in the
+     *                   ARRAY in that column (with the above confidence `score`).
+     * 
+ * + * .google.protobuf.Value value = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, + com.google.protobuf.Value.Builder, + com.google.protobuf.ValueOrBuilder>(getValue(), getParentForChildren(), isClean()); + value_ = null; + } + return valueBuilder_; + } + + private java.util.List + tablesModelColumnInfo_ = java.util.Collections.emptyList(); + + private void ensureTablesModelColumnInfoIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + tablesModelColumnInfo_ = + new java.util.ArrayList( + tablesModelColumnInfo_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.TablesModelColumnInfo, + com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder, + com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder> + tablesModelColumnInfoBuilder_; + + /** + * + * + *
+     * Output only. Auxiliary information for each of the model's
+     * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * with respect to this particular prediction.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public java.util.List + getTablesModelColumnInfoList() { + if (tablesModelColumnInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(tablesModelColumnInfo_); + } else { + return tablesModelColumnInfoBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the model's
+     * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * with respect to this particular prediction.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public int getTablesModelColumnInfoCount() { + if (tablesModelColumnInfoBuilder_ == null) { + return tablesModelColumnInfo_.size(); + } else { + return tablesModelColumnInfoBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the model's
+     * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * with respect to this particular prediction.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColumnInfo( + int index) { + if (tablesModelColumnInfoBuilder_ == null) { + return tablesModelColumnInfo_.get(index); + } else { + return tablesModelColumnInfoBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the model's
+     * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * with respect to this particular prediction.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public Builder setTablesModelColumnInfo( + int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo value) { + if (tablesModelColumnInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTablesModelColumnInfoIsMutable(); + tablesModelColumnInfo_.set(index, value); + onChanged(); + } else { + tablesModelColumnInfoBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the model's
+     * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * with respect to this particular prediction.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public Builder setTablesModelColumnInfo( + int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder builderForValue) { + if (tablesModelColumnInfoBuilder_ == null) { + ensureTablesModelColumnInfoIsMutable(); + tablesModelColumnInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + tablesModelColumnInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the model's
+     * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * with respect to this particular prediction.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public Builder addTablesModelColumnInfo( + com.google.cloud.automl.v1beta1.TablesModelColumnInfo value) { + if (tablesModelColumnInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTablesModelColumnInfoIsMutable(); + tablesModelColumnInfo_.add(value); + onChanged(); + } else { + tablesModelColumnInfoBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the model's
+     * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * with respect to this particular prediction.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public Builder addTablesModelColumnInfo( + int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo value) { + if (tablesModelColumnInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTablesModelColumnInfoIsMutable(); + tablesModelColumnInfo_.add(index, value); + onChanged(); + } else { + tablesModelColumnInfoBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the model's
+     * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * with respect to this particular prediction.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public Builder addTablesModelColumnInfo( + com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder builderForValue) { + if (tablesModelColumnInfoBuilder_ == null) { + ensureTablesModelColumnInfoIsMutable(); + tablesModelColumnInfo_.add(builderForValue.build()); + onChanged(); + } else { + tablesModelColumnInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the model's
+     * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * with respect to this particular prediction.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public Builder addTablesModelColumnInfo( + int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder builderForValue) { + if (tablesModelColumnInfoBuilder_ == null) { + ensureTablesModelColumnInfoIsMutable(); + tablesModelColumnInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + tablesModelColumnInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the model's
+     * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * with respect to this particular prediction.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public Builder addAllTablesModelColumnInfo( + java.lang.Iterable + values) { + if (tablesModelColumnInfoBuilder_ == null) { + ensureTablesModelColumnInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tablesModelColumnInfo_); + onChanged(); + } else { + tablesModelColumnInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the model's
+     * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * with respect to this particular prediction.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public Builder clearTablesModelColumnInfo() { + if (tablesModelColumnInfoBuilder_ == null) { + tablesModelColumnInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + tablesModelColumnInfoBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the model's
+     * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * with respect to this particular prediction.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public Builder removeTablesModelColumnInfo(int index) { + if (tablesModelColumnInfoBuilder_ == null) { + ensureTablesModelColumnInfoIsMutable(); + tablesModelColumnInfo_.remove(index); + onChanged(); + } else { + tablesModelColumnInfoBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the model's
+     * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * with respect to this particular prediction.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder + getTablesModelColumnInfoBuilder(int index) { + return getTablesModelColumnInfoFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the model's
+     * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * with respect to this particular prediction.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder + getTablesModelColumnInfoOrBuilder(int index) { + if (tablesModelColumnInfoBuilder_ == null) { + return tablesModelColumnInfo_.get(index); + } else { + return tablesModelColumnInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the model's
+     * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * with respect to this particular prediction.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public java.util.List + getTablesModelColumnInfoOrBuilderList() { + if (tablesModelColumnInfoBuilder_ != null) { + return tablesModelColumnInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tablesModelColumnInfo_); + } + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the model's
+     * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * with respect to this particular prediction.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder + addTablesModelColumnInfoBuilder() { + return getTablesModelColumnInfoFieldBuilder() + .addBuilder(com.google.cloud.automl.v1beta1.TablesModelColumnInfo.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the model's
+     * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * with respect to this particular prediction.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder + addTablesModelColumnInfoBuilder(int index) { + return getTablesModelColumnInfoFieldBuilder() + .addBuilder( + index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the model's
+     * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+     * with respect to this particular prediction.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + public java.util.List + getTablesModelColumnInfoBuilderList() { + return getTablesModelColumnInfoFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.TablesModelColumnInfo, + com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder, + com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder> + getTablesModelColumnInfoFieldBuilder() { + if (tablesModelColumnInfoBuilder_ == null) { + tablesModelColumnInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.TablesModelColumnInfo, + com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder, + com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder>( + tablesModelColumnInfo_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + tablesModelColumnInfo_ = null; + } + return tablesModelColumnInfoBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TablesAnnotation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TablesAnnotation) + private static final com.google.cloud.automl.v1beta1.TablesAnnotation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TablesAnnotation(); + } + + public static com.google.cloud.automl.v1beta1.TablesAnnotation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TablesAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TablesAnnotation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TablesAnnotation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotationOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotationOrBuilder.java new file mode 100644 index 000000000000..757a560d02bc --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesAnnotationOrBuilder.java @@ -0,0 +1,190 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/tables.proto + +package com.google.cloud.automl.v1beta1; + +public interface TablesAnnotationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TablesAnnotation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. A confidence estimate between 0.0 and 1.0, inclusive. A higher
+   * value means greater confidence in the returned value.
+   * For
+   * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * of ARRAY(CATEGORY) data type, this is a confidence that one of the values
+   * in the ARRAY would be the provided value.
+   * For
+   * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * of FLOAT64 data type the score is not populated.
+   * 
+ * + * float score = 1; + */ + float getScore(); + + /** + * + * + *
+   * Output only. Only populated when
+   * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * has FLOAT64 data type (i.e. for regression predictions). An interval in
+   * which the exactly correct target value has 95% chance to be in.
+   * 
+ * + * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; + */ + boolean hasPredictionInterval(); + /** + * + * + *
+   * Output only. Only populated when
+   * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * has FLOAT64 data type (i.e. for regression predictions). An interval in
+   * which the exactly correct target value has 95% chance to be in.
+   * 
+ * + * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; + */ + com.google.cloud.automl.v1beta1.DoubleRange getPredictionInterval(); + /** + * + * + *
+   * Output only. Only populated when
+   * [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * has FLOAT64 data type (i.e. for regression predictions). An interval in
+   * which the exactly correct target value has 95% chance to be in.
+   * 
+ * + * .google.cloud.automl.v1beta1.DoubleRange prediction_interval = 4; + */ + com.google.cloud.automl.v1beta1.DoubleRangeOrBuilder getPredictionIntervalOrBuilder(); + + /** + * + * + *
+   * The predicted value of the row's
+   * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
+   * The value depends on the column's DataType:
+   * CATEGORY - the predicted (with the above confidence `score`) CATEGORY
+   *            value.
+   * FLOAT64 - the predicted (with the above confidence `score`) FLOAT64 value.
+   * ARRAY(CATEGORY) - CATEGORY value meaning that this value would be in the
+   *                   ARRAY in that column (with the above confidence `score`).
+   * 
+ * + * .google.protobuf.Value value = 2; + */ + boolean hasValue(); + /** + * + * + *
+   * The predicted value of the row's
+   * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
+   * The value depends on the column's DataType:
+   * CATEGORY - the predicted (with the above confidence `score`) CATEGORY
+   *            value.
+   * FLOAT64 - the predicted (with the above confidence `score`) FLOAT64 value.
+   * ARRAY(CATEGORY) - CATEGORY value meaning that this value would be in the
+   *                   ARRAY in that column (with the above confidence `score`).
+   * 
+ * + * .google.protobuf.Value value = 2; + */ + com.google.protobuf.Value getValue(); + /** + * + * + *
+   * The predicted value of the row's
+   * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec].
+   * The value depends on the column's DataType:
+   * CATEGORY - the predicted (with the above confidence `score`) CATEGORY
+   *            value.
+   * FLOAT64 - the predicted (with the above confidence `score`) FLOAT64 value.
+   * ARRAY(CATEGORY) - CATEGORY value meaning that this value would be in the
+   *                   ARRAY in that column (with the above confidence `score`).
+   * 
+ * + * .google.protobuf.Value value = 2; + */ + com.google.protobuf.ValueOrBuilder getValueOrBuilder(); + + /** + * + * + *
+   * Output only. Auxiliary information for each of the model's
+   * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * with respect to this particular prediction.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + java.util.List + getTablesModelColumnInfoList(); + /** + * + * + *
+   * Output only. Auxiliary information for each of the model's
+   * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * with respect to this particular prediction.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColumnInfo(int index); + /** + * + * + *
+   * Output only. Auxiliary information for each of the model's
+   * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * with respect to this particular prediction.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + int getTablesModelColumnInfoCount(); + /** + * + * + *
+   * Output only. Auxiliary information for each of the model's
+   * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * with respect to this particular prediction.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + java.util.List + getTablesModelColumnInfoOrBuilderList(); + /** + * + * + *
+   * Output only. Auxiliary information for each of the model's
+   * [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs]
+   * with respect to this particular prediction.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 3; + * + */ + com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesModelColumnInfoOrBuilder( + int index); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadata.java new file mode 100644 index 000000000000..d75ffce924c0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadata.java @@ -0,0 +1,2087 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/tables.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Metadata for a dataset used for AutoML Tables.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TablesDatasetMetadata} + */ +public final class TablesDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TablesDatasetMetadata) + TablesDatasetMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use TablesDatasetMetadata.newBuilder() to construct. + private TablesDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TablesDatasetMetadata() { + primaryTableSpecId_ = ""; + targetColumnSpecId_ = ""; + weightColumnSpecId_ = ""; + mlUseColumnSpecId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TablesDatasetMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + primaryTableSpecId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + targetColumnSpecId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + weightColumnSpecId_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + mlUseColumnSpecId_ = s; + break; + } + case 50: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + targetColumnCorrelations_ = + com.google.protobuf.MapField.newMapField( + TargetColumnCorrelationsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.automl.v1beta1.CorrelationStats> + targetColumnCorrelations__ = + input.readMessage( + TargetColumnCorrelationsDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + targetColumnCorrelations_ + .getMutableMap() + .put(targetColumnCorrelations__.getKey(), targetColumnCorrelations__.getValue()); + break; + } + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (statsUpdateTime_ != null) { + subBuilder = statsUpdateTime_.toBuilder(); + } + statsUpdateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(statsUpdateTime_); + statsUpdateTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Tables + .internal_static_google_cloud_automl_v1beta1_TablesDatasetMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 6: + return internalGetTargetColumnCorrelations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Tables + .internal_static_google_cloud_automl_v1beta1_TablesDatasetMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TablesDatasetMetadata.class, + com.google.cloud.automl.v1beta1.TablesDatasetMetadata.Builder.class); + } + + private int bitField0_; + public static final int PRIMARY_TABLE_SPEC_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object primaryTableSpecId_; + /** + * + * + *
+   * Output only. The table_spec_id of the primary table of this dataset.
+   * 
+ * + * string primary_table_spec_id = 1; + */ + public java.lang.String getPrimaryTableSpecId() { + java.lang.Object ref = primaryTableSpecId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + primaryTableSpecId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The table_spec_id of the primary table of this dataset.
+   * 
+ * + * string primary_table_spec_id = 1; + */ + public com.google.protobuf.ByteString getPrimaryTableSpecIdBytes() { + java.lang.Object ref = primaryTableSpecId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + primaryTableSpecId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_COLUMN_SPEC_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object targetColumnSpecId_; + /** + * + * + *
+   * column_spec_id of the primary table's column that should be used as the
+   * training & prediction target.
+   * This column must be non-nullable and have one of following data types
+   * (otherwise model creation will error):
+   * * CATEGORY
+   * * ARRAY(CATEGORY)
+   * * FLOAT64
+   * Furthermore, if the type is CATEGORY or ARRAY(CATEGORY), then only up to
+   * 40 unique values may exist in that column across all rows, but for
+   * ARRAY(CATEGORY) unique values are counted as elements of the ARRAY (i.e.
+   * following 3 ARRAY-s: [A, B], [A], [B] are counted as having 2 unique
+   * values).
+   * NOTE: Updates of this field will instantly affect any other users
+   * concurrently working with the dataset.
+   * 
+ * + * string target_column_spec_id = 2; + */ + public java.lang.String getTargetColumnSpecId() { + java.lang.Object ref = targetColumnSpecId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetColumnSpecId_ = s; + return s; + } + } + /** + * + * + *
+   * column_spec_id of the primary table's column that should be used as the
+   * training & prediction target.
+   * This column must be non-nullable and have one of following data types
+   * (otherwise model creation will error):
+   * * CATEGORY
+   * * ARRAY(CATEGORY)
+   * * FLOAT64
+   * Furthermore, if the type is CATEGORY or ARRAY(CATEGORY), then only up to
+   * 40 unique values may exist in that column across all rows, but for
+   * ARRAY(CATEGORY) unique values are counted as elements of the ARRAY (i.e.
+   * following 3 ARRAY-s: [A, B], [A], [B] are counted as having 2 unique
+   * values).
+   * NOTE: Updates of this field will instantly affect any other users
+   * concurrently working with the dataset.
+   * 
+ * + * string target_column_spec_id = 2; + */ + public com.google.protobuf.ByteString getTargetColumnSpecIdBytes() { + java.lang.Object ref = targetColumnSpecId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetColumnSpecId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WEIGHT_COLUMN_SPEC_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object weightColumnSpecId_; + /** + * + * + *
+   * column_spec_id of the primary table's column that should be used as the
+   * weight column, i.e. the higher the value the more important the row will be
+   * during model training.
+   * Required type: FLOAT64.
+   * Allowed values: 0 to 10000, inclusive on both ends; 0 means the row is
+   *                 ignored for training.
+   * If not set all rows are assumed to have equal weight of 1.
+   * NOTE: Updates of this field will instantly affect any other users
+   * concurrently working with the dataset.
+   * 
+ * + * string weight_column_spec_id = 3; + */ + public java.lang.String getWeightColumnSpecId() { + java.lang.Object ref = weightColumnSpecId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + weightColumnSpecId_ = s; + return s; + } + } + /** + * + * + *
+   * column_spec_id of the primary table's column that should be used as the
+   * weight column, i.e. the higher the value the more important the row will be
+   * during model training.
+   * Required type: FLOAT64.
+   * Allowed values: 0 to 10000, inclusive on both ends; 0 means the row is
+   *                 ignored for training.
+   * If not set all rows are assumed to have equal weight of 1.
+   * NOTE: Updates of this field will instantly affect any other users
+   * concurrently working with the dataset.
+   * 
+ * + * string weight_column_spec_id = 3; + */ + public com.google.protobuf.ByteString getWeightColumnSpecIdBytes() { + java.lang.Object ref = weightColumnSpecId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + weightColumnSpecId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ML_USE_COLUMN_SPEC_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object mlUseColumnSpecId_; + /** + * + * + *
+   * column_spec_id of the primary table column which specifies a possible ML
+   * use of the row, i.e. the column will be used to split the rows into TRAIN,
+   * VALIDATE and TEST sets.
+   * Required type: STRING.
+   * This column, if set, must either have all of `TRAIN`, `VALIDATE`, `TEST`
+   * among its values, or only have `TEST`, `UNASSIGNED` values. In the latter
+   * case the rows with `UNASSIGNED` value will be assigned by AutoML. Note
+   * that if a given ml use distribution makes it impossible to create a "good"
+   * model, that call will error describing the issue.
+   * If both this column_spec_id and primary table's time_column_spec_id are not
+   * set, then all rows are treated as `UNASSIGNED`.
+   * NOTE: Updates of this field will instantly affect any other users
+   * concurrently working with the dataset.
+   * 
+ * + * string ml_use_column_spec_id = 4; + */ + public java.lang.String getMlUseColumnSpecId() { + java.lang.Object ref = mlUseColumnSpecId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mlUseColumnSpecId_ = s; + return s; + } + } + /** + * + * + *
+   * column_spec_id of the primary table column which specifies a possible ML
+   * use of the row, i.e. the column will be used to split the rows into TRAIN,
+   * VALIDATE and TEST sets.
+   * Required type: STRING.
+   * This column, if set, must either have all of `TRAIN`, `VALIDATE`, `TEST`
+   * among its values, or only have `TEST`, `UNASSIGNED` values. In the latter
+   * case the rows with `UNASSIGNED` value will be assigned by AutoML. Note
+   * that if a given ml use distribution makes it impossible to create a "good"
+   * model, that call will error describing the issue.
+   * If both this column_spec_id and primary table's time_column_spec_id are not
+   * set, then all rows are treated as `UNASSIGNED`.
+   * NOTE: Updates of this field will instantly affect any other users
+   * concurrently working with the dataset.
+   * 
+ * + * string ml_use_column_spec_id = 4; + */ + public com.google.protobuf.ByteString getMlUseColumnSpecIdBytes() { + java.lang.Object ref = mlUseColumnSpecId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mlUseColumnSpecId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_COLUMN_CORRELATIONS_FIELD_NUMBER = 6; + + private static final class TargetColumnCorrelationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.automl.v1beta1.CorrelationStats> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.automl.v1beta1.Tables + .internal_static_google_cloud_automl_v1beta1_TablesDatasetMetadata_TargetColumnCorrelationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.automl.v1beta1.CorrelationStats.getDefaultInstance()); + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.automl.v1beta1.CorrelationStats> + targetColumnCorrelations_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.automl.v1beta1.CorrelationStats> + internalGetTargetColumnCorrelations() { + if (targetColumnCorrelations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TargetColumnCorrelationsDefaultEntryHolder.defaultEntry); + } + return targetColumnCorrelations_; + } + + public int getTargetColumnCorrelationsCount() { + return internalGetTargetColumnCorrelations().getMap().size(); + } + /** + * + * + *
+   * Output only. Correlations between
+   * [target_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column],
+   * and other columns of the
+   * [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id].
+   * Only set if the target column is set. Mapping from other column spec id to
+   * its CorrelationStats with the target column.
+   * This field may be stale, see the stats_update_time field for
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + */ + public boolean containsTargetColumnCorrelations(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetTargetColumnCorrelations().getMap().containsKey(key); + } + /** Use {@link #getTargetColumnCorrelationsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map + getTargetColumnCorrelations() { + return getTargetColumnCorrelationsMap(); + } + /** + * + * + *
+   * Output only. Correlations between
+   * [target_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column],
+   * and other columns of the
+   * [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id].
+   * Only set if the target column is set. Mapping from other column spec id to
+   * its CorrelationStats with the target column.
+   * This field may be stale, see the stats_update_time field for
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + */ + public java.util.Map + getTargetColumnCorrelationsMap() { + return internalGetTargetColumnCorrelations().getMap(); + } + /** + * + * + *
+   * Output only. Correlations between
+   * [target_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column],
+   * and other columns of the
+   * [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id].
+   * Only set if the target column is set. Mapping from other column spec id to
+   * its CorrelationStats with the target column.
+   * This field may be stale, see the stats_update_time field for
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + */ + public com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelationsOrDefault( + java.lang.String key, com.google.cloud.automl.v1beta1.CorrelationStats defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetTargetColumnCorrelations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Output only. Correlations between
+   * [target_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column],
+   * and other columns of the
+   * [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id].
+   * Only set if the target column is set. Mapping from other column spec id to
+   * its CorrelationStats with the target column.
+   * This field may be stale, see the stats_update_time field for
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + */ + public com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelationsOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetTargetColumnCorrelations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int STATS_UPDATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp statsUpdateTime_; + /** + * + * + *
+   * The most recent timestamp when target_column_correlations field and all
+   * descendant ColumnSpec.data_stats and ColumnSpec.top_correlated_columns
+   * fields were last (re-)generated. Any changes that happened to the dataset
+   * afterwards are not reflected in these fields values. The regeneration
+   * happens in the background on a best effort basis.
+   * 
+ * + * .google.protobuf.Timestamp stats_update_time = 7; + */ + public boolean hasStatsUpdateTime() { + return statsUpdateTime_ != null; + } + /** + * + * + *
+   * The most recent timestamp when target_column_correlations field and all
+   * descendant ColumnSpec.data_stats and ColumnSpec.top_correlated_columns
+   * fields were last (re-)generated. Any changes that happened to the dataset
+   * afterwards are not reflected in these fields values. The regeneration
+   * happens in the background on a best effort basis.
+   * 
+ * + * .google.protobuf.Timestamp stats_update_time = 7; + */ + public com.google.protobuf.Timestamp getStatsUpdateTime() { + return statsUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : statsUpdateTime_; + } + /** + * + * + *
+   * The most recent timestamp when target_column_correlations field and all
+   * descendant ColumnSpec.data_stats and ColumnSpec.top_correlated_columns
+   * fields were last (re-)generated. Any changes that happened to the dataset
+   * afterwards are not reflected in these fields values. The regeneration
+   * happens in the background on a best effort basis.
+   * 
+ * + * .google.protobuf.Timestamp stats_update_time = 7; + */ + public com.google.protobuf.TimestampOrBuilder getStatsUpdateTimeOrBuilder() { + return getStatsUpdateTime(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getPrimaryTableSpecIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, primaryTableSpecId_); + } + if (!getTargetColumnSpecIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetColumnSpecId_); + } + if (!getWeightColumnSpecIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, weightColumnSpecId_); + } + if (!getMlUseColumnSpecIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, mlUseColumnSpecId_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, + internalGetTargetColumnCorrelations(), + TargetColumnCorrelationsDefaultEntryHolder.defaultEntry, + 6); + if (statsUpdateTime_ != null) { + output.writeMessage(7, getStatsUpdateTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getPrimaryTableSpecIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, primaryTableSpecId_); + } + if (!getTargetColumnSpecIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetColumnSpecId_); + } + if (!getWeightColumnSpecIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, weightColumnSpecId_); + } + if (!getMlUseColumnSpecIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, mlUseColumnSpecId_); + } + for (java.util.Map.Entry + entry : internalGetTargetColumnCorrelations().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.automl.v1beta1.CorrelationStats> + targetColumnCorrelations__ = + TargetColumnCorrelationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, targetColumnCorrelations__); + } + if (statsUpdateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getStatsUpdateTime()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.TablesDatasetMetadata)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.TablesDatasetMetadata other = + (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) obj; + + if (!getPrimaryTableSpecId().equals(other.getPrimaryTableSpecId())) return false; + if (!getTargetColumnSpecId().equals(other.getTargetColumnSpecId())) return false; + if (!getWeightColumnSpecId().equals(other.getWeightColumnSpecId())) return false; + if (!getMlUseColumnSpecId().equals(other.getMlUseColumnSpecId())) return false; + if (!internalGetTargetColumnCorrelations().equals(other.internalGetTargetColumnCorrelations())) + return false; + if (hasStatsUpdateTime() != other.hasStatsUpdateTime()) return false; + if (hasStatsUpdateTime()) { + if (!getStatsUpdateTime().equals(other.getStatsUpdateTime())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PRIMARY_TABLE_SPEC_ID_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryTableSpecId().hashCode(); + hash = (37 * hash) + TARGET_COLUMN_SPEC_ID_FIELD_NUMBER; + hash = (53 * hash) + getTargetColumnSpecId().hashCode(); + hash = (37 * hash) + WEIGHT_COLUMN_SPEC_ID_FIELD_NUMBER; + hash = (53 * hash) + getWeightColumnSpecId().hashCode(); + hash = (37 * hash) + ML_USE_COLUMN_SPEC_ID_FIELD_NUMBER; + hash = (53 * hash) + getMlUseColumnSpecId().hashCode(); + if (!internalGetTargetColumnCorrelations().getMap().isEmpty()) { + hash = (37 * hash) + TARGET_COLUMN_CORRELATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTargetColumnCorrelations().hashCode(); + } + if (hasStatsUpdateTime()) { + hash = (37 * hash) + STATS_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStatsUpdateTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.TablesDatasetMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TablesDatasetMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TablesDatasetMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TablesDatasetMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TablesDatasetMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TablesDatasetMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TablesDatasetMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TablesDatasetMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TablesDatasetMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TablesDatasetMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TablesDatasetMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TablesDatasetMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.TablesDatasetMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Metadata for a dataset used for AutoML Tables.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TablesDatasetMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TablesDatasetMetadata) + com.google.cloud.automl.v1beta1.TablesDatasetMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Tables + .internal_static_google_cloud_automl_v1beta1_TablesDatasetMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 6: + return internalGetTargetColumnCorrelations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 6: + return internalGetMutableTargetColumnCorrelations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Tables + .internal_static_google_cloud_automl_v1beta1_TablesDatasetMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TablesDatasetMetadata.class, + com.google.cloud.automl.v1beta1.TablesDatasetMetadata.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.TablesDatasetMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + primaryTableSpecId_ = ""; + + targetColumnSpecId_ = ""; + + weightColumnSpecId_ = ""; + + mlUseColumnSpecId_ = ""; + + internalGetMutableTargetColumnCorrelations().clear(); + if (statsUpdateTimeBuilder_ == null) { + statsUpdateTime_ = null; + } else { + statsUpdateTime_ = null; + statsUpdateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Tables + .internal_static_google_cloud_automl_v1beta1_TablesDatasetMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TablesDatasetMetadata getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TablesDatasetMetadata build() { + com.google.cloud.automl.v1beta1.TablesDatasetMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TablesDatasetMetadata buildPartial() { + com.google.cloud.automl.v1beta1.TablesDatasetMetadata result = + new com.google.cloud.automl.v1beta1.TablesDatasetMetadata(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.primaryTableSpecId_ = primaryTableSpecId_; + result.targetColumnSpecId_ = targetColumnSpecId_; + result.weightColumnSpecId_ = weightColumnSpecId_; + result.mlUseColumnSpecId_ = mlUseColumnSpecId_; + result.targetColumnCorrelations_ = internalGetTargetColumnCorrelations(); + result.targetColumnCorrelations_.makeImmutable(); + if (statsUpdateTimeBuilder_ == null) { + result.statsUpdateTime_ = statsUpdateTime_; + } else { + result.statsUpdateTime_ = statsUpdateTimeBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.TablesDatasetMetadata) { + return mergeFrom((com.google.cloud.automl.v1beta1.TablesDatasetMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.TablesDatasetMetadata other) { + if (other == com.google.cloud.automl.v1beta1.TablesDatasetMetadata.getDefaultInstance()) + return this; + if (!other.getPrimaryTableSpecId().isEmpty()) { + primaryTableSpecId_ = other.primaryTableSpecId_; + onChanged(); + } + if (!other.getTargetColumnSpecId().isEmpty()) { + targetColumnSpecId_ = other.targetColumnSpecId_; + onChanged(); + } + if (!other.getWeightColumnSpecId().isEmpty()) { + weightColumnSpecId_ = other.weightColumnSpecId_; + onChanged(); + } + if (!other.getMlUseColumnSpecId().isEmpty()) { + mlUseColumnSpecId_ = other.mlUseColumnSpecId_; + onChanged(); + } + internalGetMutableTargetColumnCorrelations() + .mergeFrom(other.internalGetTargetColumnCorrelations()); + if (other.hasStatsUpdateTime()) { + mergeStatsUpdateTime(other.getStatsUpdateTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.TablesDatasetMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.TablesDatasetMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object primaryTableSpecId_ = ""; + /** + * + * + *
+     * Output only. The table_spec_id of the primary table of this dataset.
+     * 
+ * + * string primary_table_spec_id = 1; + */ + public java.lang.String getPrimaryTableSpecId() { + java.lang.Object ref = primaryTableSpecId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + primaryTableSpecId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The table_spec_id of the primary table of this dataset.
+     * 
+ * + * string primary_table_spec_id = 1; + */ + public com.google.protobuf.ByteString getPrimaryTableSpecIdBytes() { + java.lang.Object ref = primaryTableSpecId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + primaryTableSpecId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The table_spec_id of the primary table of this dataset.
+     * 
+ * + * string primary_table_spec_id = 1; + */ + public Builder setPrimaryTableSpecId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + primaryTableSpecId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The table_spec_id of the primary table of this dataset.
+     * 
+ * + * string primary_table_spec_id = 1; + */ + public Builder clearPrimaryTableSpecId() { + + primaryTableSpecId_ = getDefaultInstance().getPrimaryTableSpecId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The table_spec_id of the primary table of this dataset.
+     * 
+ * + * string primary_table_spec_id = 1; + */ + public Builder setPrimaryTableSpecIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + primaryTableSpecId_ = value; + onChanged(); + return this; + } + + private java.lang.Object targetColumnSpecId_ = ""; + /** + * + * + *
+     * column_spec_id of the primary table's column that should be used as the
+     * training & prediction target.
+     * This column must be non-nullable and have one of following data types
+     * (otherwise model creation will error):
+     * * CATEGORY
+     * * ARRAY(CATEGORY)
+     * * FLOAT64
+     * Furthermore, if the type is CATEGORY or ARRAY(CATEGORY), then only up to
+     * 40 unique values may exist in that column across all rows, but for
+     * ARRAY(CATEGORY) unique values are counted as elements of the ARRAY (i.e.
+     * following 3 ARRAY-s: [A, B], [A], [B] are counted as having 2 unique
+     * values).
+     * NOTE: Updates of this field will instantly affect any other users
+     * concurrently working with the dataset.
+     * 
+ * + * string target_column_spec_id = 2; + */ + public java.lang.String getTargetColumnSpecId() { + java.lang.Object ref = targetColumnSpecId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetColumnSpecId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * column_spec_id of the primary table's column that should be used as the
+     * training & prediction target.
+     * This column must be non-nullable and have one of following data types
+     * (otherwise model creation will error):
+     * * CATEGORY
+     * * ARRAY(CATEGORY)
+     * * FLOAT64
+     * Furthermore, if the type is CATEGORY or ARRAY(CATEGORY), then only up to
+     * 40 unique values may exist in that column across all rows, but for
+     * ARRAY(CATEGORY) unique values are counted as elements of the ARRAY (i.e.
+     * following 3 ARRAY-s: [A, B], [A], [B] are counted as having 2 unique
+     * values).
+     * NOTE: Updates of this field will instantly affect any other users
+     * concurrently working with the dataset.
+     * 
+ * + * string target_column_spec_id = 2; + */ + public com.google.protobuf.ByteString getTargetColumnSpecIdBytes() { + java.lang.Object ref = targetColumnSpecId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetColumnSpecId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * column_spec_id of the primary table's column that should be used as the
+     * training & prediction target.
+     * This column must be non-nullable and have one of following data types
+     * (otherwise model creation will error):
+     * * CATEGORY
+     * * ARRAY(CATEGORY)
+     * * FLOAT64
+     * Furthermore, if the type is CATEGORY or ARRAY(CATEGORY), then only up to
+     * 40 unique values may exist in that column across all rows, but for
+     * ARRAY(CATEGORY) unique values are counted as elements of the ARRAY (i.e.
+     * following 3 ARRAY-s: [A, B], [A], [B] are counted as having 2 unique
+     * values).
+     * NOTE: Updates of this field will instantly affect any other users
+     * concurrently working with the dataset.
+     * 
+ * + * string target_column_spec_id = 2; + */ + public Builder setTargetColumnSpecId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + targetColumnSpecId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * column_spec_id of the primary table's column that should be used as the
+     * training & prediction target.
+     * This column must be non-nullable and have one of following data types
+     * (otherwise model creation will error):
+     * * CATEGORY
+     * * ARRAY(CATEGORY)
+     * * FLOAT64
+     * Furthermore, if the type is CATEGORY or ARRAY(CATEGORY), then only up to
+     * 40 unique values may exist in that column across all rows, but for
+     * ARRAY(CATEGORY) unique values are counted as elements of the ARRAY (i.e.
+     * following 3 ARRAY-s: [A, B], [A], [B] are counted as having 2 unique
+     * values).
+     * NOTE: Updates of this field will instantly affect any other users
+     * concurrently working with the dataset.
+     * 
+ * + * string target_column_spec_id = 2; + */ + public Builder clearTargetColumnSpecId() { + + targetColumnSpecId_ = getDefaultInstance().getTargetColumnSpecId(); + onChanged(); + return this; + } + /** + * + * + *
+     * column_spec_id of the primary table's column that should be used as the
+     * training & prediction target.
+     * This column must be non-nullable and have one of following data types
+     * (otherwise model creation will error):
+     * * CATEGORY
+     * * ARRAY(CATEGORY)
+     * * FLOAT64
+     * Furthermore, if the type is CATEGORY or ARRAY(CATEGORY), then only up to
+     * 40 unique values may exist in that column across all rows, but for
+     * ARRAY(CATEGORY) unique values are counted as elements of the ARRAY (i.e.
+     * following 3 ARRAY-s: [A, B], [A], [B] are counted as having 2 unique
+     * values).
+     * NOTE: Updates of this field will instantly affect any other users
+     * concurrently working with the dataset.
+     * 
+ * + * string target_column_spec_id = 2; + */ + public Builder setTargetColumnSpecIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + targetColumnSpecId_ = value; + onChanged(); + return this; + } + + private java.lang.Object weightColumnSpecId_ = ""; + /** + * + * + *
+     * column_spec_id of the primary table's column that should be used as the
+     * weight column, i.e. the higher the value the more important the row will be
+     * during model training.
+     * Required type: FLOAT64.
+     * Allowed values: 0 to 10000, inclusive on both ends; 0 means the row is
+     *                 ignored for training.
+     * If not set all rows are assumed to have equal weight of 1.
+     * NOTE: Updates of this field will instantly affect any other users
+     * concurrently working with the dataset.
+     * 
+ * + * string weight_column_spec_id = 3; + */ + public java.lang.String getWeightColumnSpecId() { + java.lang.Object ref = weightColumnSpecId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + weightColumnSpecId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * column_spec_id of the primary table's column that should be used as the
+     * weight column, i.e. the higher the value the more important the row will be
+     * during model training.
+     * Required type: FLOAT64.
+     * Allowed values: 0 to 10000, inclusive on both ends; 0 means the row is
+     *                 ignored for training.
+     * If not set all rows are assumed to have equal weight of 1.
+     * NOTE: Updates of this field will instantly affect any other users
+     * concurrently working with the dataset.
+     * 
+ * + * string weight_column_spec_id = 3; + */ + public com.google.protobuf.ByteString getWeightColumnSpecIdBytes() { + java.lang.Object ref = weightColumnSpecId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + weightColumnSpecId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * column_spec_id of the primary table's column that should be used as the
+     * weight column, i.e. the higher the value the more important the row will be
+     * during model training.
+     * Required type: FLOAT64.
+     * Allowed values: 0 to 10000, inclusive on both ends; 0 means the row is
+     *                 ignored for training.
+     * If not set all rows are assumed to have equal weight of 1.
+     * NOTE: Updates of this field will instantly affect any other users
+     * concurrently working with the dataset.
+     * 
+ * + * string weight_column_spec_id = 3; + */ + public Builder setWeightColumnSpecId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + weightColumnSpecId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * column_spec_id of the primary table's column that should be used as the
+     * weight column, i.e. the higher the value the more important the row will be
+     * during model training.
+     * Required type: FLOAT64.
+     * Allowed values: 0 to 10000, inclusive on both ends; 0 means the row is
+     *                 ignored for training.
+     * If not set all rows are assumed to have equal weight of 1.
+     * NOTE: Updates of this field will instantly affect any other users
+     * concurrently working with the dataset.
+     * 
+ * + * string weight_column_spec_id = 3; + */ + public Builder clearWeightColumnSpecId() { + + weightColumnSpecId_ = getDefaultInstance().getWeightColumnSpecId(); + onChanged(); + return this; + } + /** + * + * + *
+     * column_spec_id of the primary table's column that should be used as the
+     * weight column, i.e. the higher the value the more important the row will be
+     * during model training.
+     * Required type: FLOAT64.
+     * Allowed values: 0 to 10000, inclusive on both ends; 0 means the row is
+     *                 ignored for training.
+     * If not set all rows are assumed to have equal weight of 1.
+     * NOTE: Updates of this field will instantly affect any other users
+     * concurrently working with the dataset.
+     * 
+ * + * string weight_column_spec_id = 3; + */ + public Builder setWeightColumnSpecIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + weightColumnSpecId_ = value; + onChanged(); + return this; + } + + private java.lang.Object mlUseColumnSpecId_ = ""; + /** + * + * + *
+     * column_spec_id of the primary table column which specifies a possible ML
+     * use of the row, i.e. the column will be used to split the rows into TRAIN,
+     * VALIDATE and TEST sets.
+     * Required type: STRING.
+     * This column, if set, must either have all of `TRAIN`, `VALIDATE`, `TEST`
+     * among its values, or only have `TEST`, `UNASSIGNED` values. In the latter
+     * case the rows with `UNASSIGNED` value will be assigned by AutoML. Note
+     * that if a given ml use distribution makes it impossible to create a "good"
+     * model, that call will error describing the issue.
+     * If both this column_spec_id and primary table's time_column_spec_id are not
+     * set, then all rows are treated as `UNASSIGNED`.
+     * NOTE: Updates of this field will instantly affect any other users
+     * concurrently working with the dataset.
+     * 
+ * + * string ml_use_column_spec_id = 4; + */ + public java.lang.String getMlUseColumnSpecId() { + java.lang.Object ref = mlUseColumnSpecId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mlUseColumnSpecId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * column_spec_id of the primary table column which specifies a possible ML
+     * use of the row, i.e. the column will be used to split the rows into TRAIN,
+     * VALIDATE and TEST sets.
+     * Required type: STRING.
+     * This column, if set, must either have all of `TRAIN`, `VALIDATE`, `TEST`
+     * among its values, or only have `TEST`, `UNASSIGNED` values. In the latter
+     * case the rows with `UNASSIGNED` value will be assigned by AutoML. Note
+     * that if a given ml use distribution makes it impossible to create a "good"
+     * model, that call will error describing the issue.
+     * If both this column_spec_id and primary table's time_column_spec_id are not
+     * set, then all rows are treated as `UNASSIGNED`.
+     * NOTE: Updates of this field will instantly affect any other users
+     * concurrently working with the dataset.
+     * 
+ * + * string ml_use_column_spec_id = 4; + */ + public com.google.protobuf.ByteString getMlUseColumnSpecIdBytes() { + java.lang.Object ref = mlUseColumnSpecId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mlUseColumnSpecId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * column_spec_id of the primary table column which specifies a possible ML
+     * use of the row, i.e. the column will be used to split the rows into TRAIN,
+     * VALIDATE and TEST sets.
+     * Required type: STRING.
+     * This column, if set, must either have all of `TRAIN`, `VALIDATE`, `TEST`
+     * among its values, or only have `TEST`, `UNASSIGNED` values. In the latter
+     * case the rows with `UNASSIGNED` value will be assigned by AutoML. Note
+     * that if a given ml use distribution makes it impossible to create a "good"
+     * model, that call will error describing the issue.
+     * If both this column_spec_id and primary table's time_column_spec_id are not
+     * set, then all rows are treated as `UNASSIGNED`.
+     * NOTE: Updates of this field will instantly affect any other users
+     * concurrently working with the dataset.
+     * 
+ * + * string ml_use_column_spec_id = 4; + */ + public Builder setMlUseColumnSpecId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + mlUseColumnSpecId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * column_spec_id of the primary table column which specifies a possible ML
+     * use of the row, i.e. the column will be used to split the rows into TRAIN,
+     * VALIDATE and TEST sets.
+     * Required type: STRING.
+     * This column, if set, must either have all of `TRAIN`, `VALIDATE`, `TEST`
+     * among its values, or only have `TEST`, `UNASSIGNED` values. In the latter
+     * case the rows with `UNASSIGNED` value will be assigned by AutoML. Note
+     * that if a given ml use distribution makes it impossible to create a "good"
+     * model, that call will error describing the issue.
+     * If both this column_spec_id and primary table's time_column_spec_id are not
+     * set, then all rows are treated as `UNASSIGNED`.
+     * NOTE: Updates of this field will instantly affect any other users
+     * concurrently working with the dataset.
+     * 
+ * + * string ml_use_column_spec_id = 4; + */ + public Builder clearMlUseColumnSpecId() { + + mlUseColumnSpecId_ = getDefaultInstance().getMlUseColumnSpecId(); + onChanged(); + return this; + } + /** + * + * + *
+     * column_spec_id of the primary table column which specifies a possible ML
+     * use of the row, i.e. the column will be used to split the rows into TRAIN,
+     * VALIDATE and TEST sets.
+     * Required type: STRING.
+     * This column, if set, must either have all of `TRAIN`, `VALIDATE`, `TEST`
+     * among its values, or only have `TEST`, `UNASSIGNED` values. In the latter
+     * case the rows with `UNASSIGNED` value will be assigned by AutoML. Note
+     * that if a given ml use distribution makes it impossible to create a "good"
+     * model, that call will error describing the issue.
+     * If both this column_spec_id and primary table's time_column_spec_id are not
+     * set, then all rows are treated as `UNASSIGNED`.
+     * NOTE: Updates of this field will instantly affect any other users
+     * concurrently working with the dataset.
+     * 
+ * + * string ml_use_column_spec_id = 4; + */ + public Builder setMlUseColumnSpecIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mlUseColumnSpecId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.automl.v1beta1.CorrelationStats> + targetColumnCorrelations_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.automl.v1beta1.CorrelationStats> + internalGetTargetColumnCorrelations() { + if (targetColumnCorrelations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TargetColumnCorrelationsDefaultEntryHolder.defaultEntry); + } + return targetColumnCorrelations_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.automl.v1beta1.CorrelationStats> + internalGetMutableTargetColumnCorrelations() { + onChanged(); + ; + if (targetColumnCorrelations_ == null) { + targetColumnCorrelations_ = + com.google.protobuf.MapField.newMapField( + TargetColumnCorrelationsDefaultEntryHolder.defaultEntry); + } + if (!targetColumnCorrelations_.isMutable()) { + targetColumnCorrelations_ = targetColumnCorrelations_.copy(); + } + return targetColumnCorrelations_; + } + + public int getTargetColumnCorrelationsCount() { + return internalGetTargetColumnCorrelations().getMap().size(); + } + /** + * + * + *
+     * Output only. Correlations between
+     * [target_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column],
+     * and other columns of the
+     * [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id].
+     * Only set if the target column is set. Mapping from other column spec id to
+     * its CorrelationStats with the target column.
+     * This field may be stale, see the stats_update_time field for
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + */ + public boolean containsTargetColumnCorrelations(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetTargetColumnCorrelations().getMap().containsKey(key); + } + /** Use {@link #getTargetColumnCorrelationsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map + getTargetColumnCorrelations() { + return getTargetColumnCorrelationsMap(); + } + /** + * + * + *
+     * Output only. Correlations between
+     * [target_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column],
+     * and other columns of the
+     * [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id].
+     * Only set if the target column is set. Mapping from other column spec id to
+     * its CorrelationStats with the target column.
+     * This field may be stale, see the stats_update_time field for
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + */ + public java.util.Map + getTargetColumnCorrelationsMap() { + return internalGetTargetColumnCorrelations().getMap(); + } + /** + * + * + *
+     * Output only. Correlations between
+     * [target_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column],
+     * and other columns of the
+     * [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id].
+     * Only set if the target column is set. Mapping from other column spec id to
+     * its CorrelationStats with the target column.
+     * This field may be stale, see the stats_update_time field for
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + */ + public com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelationsOrDefault( + java.lang.String key, com.google.cloud.automl.v1beta1.CorrelationStats defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetTargetColumnCorrelations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Output only. Correlations between
+     * [target_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column],
+     * and other columns of the
+     * [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id].
+     * Only set if the target column is set. Mapping from other column spec id to
+     * its CorrelationStats with the target column.
+     * This field may be stale, see the stats_update_time field for
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + */ + public com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelationsOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetTargetColumnCorrelations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTargetColumnCorrelations() { + internalGetMutableTargetColumnCorrelations().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Output only. Correlations between
+     * [target_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column],
+     * and other columns of the
+     * [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id].
+     * Only set if the target column is set. Mapping from other column spec id to
+     * its CorrelationStats with the target column.
+     * This field may be stale, see the stats_update_time field for
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + */ + public Builder removeTargetColumnCorrelations(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableTargetColumnCorrelations().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableTargetColumnCorrelations() { + return internalGetMutableTargetColumnCorrelations().getMutableMap(); + } + /** + * + * + *
+     * Output only. Correlations between
+     * [target_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column],
+     * and other columns of the
+     * [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id].
+     * Only set if the target column is set. Mapping from other column spec id to
+     * its CorrelationStats with the target column.
+     * This field may be stale, see the stats_update_time field for
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + */ + public Builder putTargetColumnCorrelations( + java.lang.String key, com.google.cloud.automl.v1beta1.CorrelationStats value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableTargetColumnCorrelations().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Output only. Correlations between
+     * [target_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column],
+     * and other columns of the
+     * [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id].
+     * Only set if the target column is set. Mapping from other column spec id to
+     * its CorrelationStats with the target column.
+     * This field may be stale, see the stats_update_time field for
+     * for the timestamp at which these stats were last updated.
+     * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + */ + public Builder putAllTargetColumnCorrelations( + java.util.Map values) { + internalGetMutableTargetColumnCorrelations().getMutableMap().putAll(values); + return this; + } + + private com.google.protobuf.Timestamp statsUpdateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + statsUpdateTimeBuilder_; + /** + * + * + *
+     * The most recent timestamp when target_column_correlations field and all
+     * descendant ColumnSpec.data_stats and ColumnSpec.top_correlated_columns
+     * fields were last (re-)generated. Any changes that happened to the dataset
+     * afterwards are not reflected in these fields values. The regeneration
+     * happens in the background on a best effort basis.
+     * 
+ * + * .google.protobuf.Timestamp stats_update_time = 7; + */ + public boolean hasStatsUpdateTime() { + return statsUpdateTimeBuilder_ != null || statsUpdateTime_ != null; + } + /** + * + * + *
+     * The most recent timestamp when target_column_correlations field and all
+     * descendant ColumnSpec.data_stats and ColumnSpec.top_correlated_columns
+     * fields were last (re-)generated. Any changes that happened to the dataset
+     * afterwards are not reflected in these fields values. The regeneration
+     * happens in the background on a best effort basis.
+     * 
+ * + * .google.protobuf.Timestamp stats_update_time = 7; + */ + public com.google.protobuf.Timestamp getStatsUpdateTime() { + if (statsUpdateTimeBuilder_ == null) { + return statsUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : statsUpdateTime_; + } else { + return statsUpdateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The most recent timestamp when target_column_correlations field and all
+     * descendant ColumnSpec.data_stats and ColumnSpec.top_correlated_columns
+     * fields were last (re-)generated. Any changes that happened to the dataset
+     * afterwards are not reflected in these fields values. The regeneration
+     * happens in the background on a best effort basis.
+     * 
+ * + * .google.protobuf.Timestamp stats_update_time = 7; + */ + public Builder setStatsUpdateTime(com.google.protobuf.Timestamp value) { + if (statsUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + statsUpdateTime_ = value; + onChanged(); + } else { + statsUpdateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The most recent timestamp when target_column_correlations field and all
+     * descendant ColumnSpec.data_stats and ColumnSpec.top_correlated_columns
+     * fields were last (re-)generated. Any changes that happened to the dataset
+     * afterwards are not reflected in these fields values. The regeneration
+     * happens in the background on a best effort basis.
+     * 
+ * + * .google.protobuf.Timestamp stats_update_time = 7; + */ + public Builder setStatsUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (statsUpdateTimeBuilder_ == null) { + statsUpdateTime_ = builderForValue.build(); + onChanged(); + } else { + statsUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The most recent timestamp when target_column_correlations field and all
+     * descendant ColumnSpec.data_stats and ColumnSpec.top_correlated_columns
+     * fields were last (re-)generated. Any changes that happened to the dataset
+     * afterwards are not reflected in these fields values. The regeneration
+     * happens in the background on a best effort basis.
+     * 
+ * + * .google.protobuf.Timestamp stats_update_time = 7; + */ + public Builder mergeStatsUpdateTime(com.google.protobuf.Timestamp value) { + if (statsUpdateTimeBuilder_ == null) { + if (statsUpdateTime_ != null) { + statsUpdateTime_ = + com.google.protobuf.Timestamp.newBuilder(statsUpdateTime_) + .mergeFrom(value) + .buildPartial(); + } else { + statsUpdateTime_ = value; + } + onChanged(); + } else { + statsUpdateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The most recent timestamp when target_column_correlations field and all
+     * descendant ColumnSpec.data_stats and ColumnSpec.top_correlated_columns
+     * fields were last (re-)generated. Any changes that happened to the dataset
+     * afterwards are not reflected in these fields values. The regeneration
+     * happens in the background on a best effort basis.
+     * 
+ * + * .google.protobuf.Timestamp stats_update_time = 7; + */ + public Builder clearStatsUpdateTime() { + if (statsUpdateTimeBuilder_ == null) { + statsUpdateTime_ = null; + onChanged(); + } else { + statsUpdateTime_ = null; + statsUpdateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The most recent timestamp when target_column_correlations field and all
+     * descendant ColumnSpec.data_stats and ColumnSpec.top_correlated_columns
+     * fields were last (re-)generated. Any changes that happened to the dataset
+     * afterwards are not reflected in these fields values. The regeneration
+     * happens in the background on a best effort basis.
+     * 
+ * + * .google.protobuf.Timestamp stats_update_time = 7; + */ + public com.google.protobuf.Timestamp.Builder getStatsUpdateTimeBuilder() { + + onChanged(); + return getStatsUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The most recent timestamp when target_column_correlations field and all
+     * descendant ColumnSpec.data_stats and ColumnSpec.top_correlated_columns
+     * fields were last (re-)generated. Any changes that happened to the dataset
+     * afterwards are not reflected in these fields values. The regeneration
+     * happens in the background on a best effort basis.
+     * 
+ * + * .google.protobuf.Timestamp stats_update_time = 7; + */ + public com.google.protobuf.TimestampOrBuilder getStatsUpdateTimeOrBuilder() { + if (statsUpdateTimeBuilder_ != null) { + return statsUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return statsUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : statsUpdateTime_; + } + } + /** + * + * + *
+     * The most recent timestamp when target_column_correlations field and all
+     * descendant ColumnSpec.data_stats and ColumnSpec.top_correlated_columns
+     * fields were last (re-)generated. Any changes that happened to the dataset
+     * afterwards are not reflected in these fields values. The regeneration
+     * happens in the background on a best effort basis.
+     * 
+ * + * .google.protobuf.Timestamp stats_update_time = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStatsUpdateTimeFieldBuilder() { + if (statsUpdateTimeBuilder_ == null) { + statsUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStatsUpdateTime(), getParentForChildren(), isClean()); + statsUpdateTime_ = null; + } + return statsUpdateTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TablesDatasetMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TablesDatasetMetadata) + private static final com.google.cloud.automl.v1beta1.TablesDatasetMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TablesDatasetMetadata(); + } + + public static com.google.cloud.automl.v1beta1.TablesDatasetMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TablesDatasetMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TablesDatasetMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TablesDatasetMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadataOrBuilder.java new file mode 100644 index 000000000000..feb7edb89fc6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesDatasetMetadataOrBuilder.java @@ -0,0 +1,306 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/tables.proto + +package com.google.cloud.automl.v1beta1; + +public interface TablesDatasetMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TablesDatasetMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The table_spec_id of the primary table of this dataset.
+   * 
+ * + * string primary_table_spec_id = 1; + */ + java.lang.String getPrimaryTableSpecId(); + /** + * + * + *
+   * Output only. The table_spec_id of the primary table of this dataset.
+   * 
+ * + * string primary_table_spec_id = 1; + */ + com.google.protobuf.ByteString getPrimaryTableSpecIdBytes(); + + /** + * + * + *
+   * column_spec_id of the primary table's column that should be used as the
+   * training & prediction target.
+   * This column must be non-nullable and have one of following data types
+   * (otherwise model creation will error):
+   * * CATEGORY
+   * * ARRAY(CATEGORY)
+   * * FLOAT64
+   * Furthermore, if the type is CATEGORY or ARRAY(CATEGORY), then only up to
+   * 40 unique values may exist in that column across all rows, but for
+   * ARRAY(CATEGORY) unique values are counted as elements of the ARRAY (i.e.
+   * following 3 ARRAY-s: [A, B], [A], [B] are counted as having 2 unique
+   * values).
+   * NOTE: Updates of this field will instantly affect any other users
+   * concurrently working with the dataset.
+   * 
+ * + * string target_column_spec_id = 2; + */ + java.lang.String getTargetColumnSpecId(); + /** + * + * + *
+   * column_spec_id of the primary table's column that should be used as the
+   * training & prediction target.
+   * This column must be non-nullable and have one of following data types
+   * (otherwise model creation will error):
+   * * CATEGORY
+   * * ARRAY(CATEGORY)
+   * * FLOAT64
+   * Furthermore, if the type is CATEGORY or ARRAY(CATEGORY), then only up to
+   * 40 unique values may exist in that column across all rows, but for
+   * ARRAY(CATEGORY) unique values are counted as elements of the ARRAY (i.e.
+   * following 3 ARRAY-s: [A, B], [A], [B] are counted as having 2 unique
+   * values).
+   * NOTE: Updates of this field will instantly affect any other users
+   * concurrently working with the dataset.
+   * 
+ * + * string target_column_spec_id = 2; + */ + com.google.protobuf.ByteString getTargetColumnSpecIdBytes(); + + /** + * + * + *
+   * column_spec_id of the primary table's column that should be used as the
+   * weight column, i.e. the higher the value the more important the row will be
+   * during model training.
+   * Required type: FLOAT64.
+   * Allowed values: 0 to 10000, inclusive on both ends; 0 means the row is
+   *                 ignored for training.
+   * If not set all rows are assumed to have equal weight of 1.
+   * NOTE: Updates of this field will instantly affect any other users
+   * concurrently working with the dataset.
+   * 
+ * + * string weight_column_spec_id = 3; + */ + java.lang.String getWeightColumnSpecId(); + /** + * + * + *
+   * column_spec_id of the primary table's column that should be used as the
+   * weight column, i.e. the higher the value the more important the row will be
+   * during model training.
+   * Required type: FLOAT64.
+   * Allowed values: 0 to 10000, inclusive on both ends; 0 means the row is
+   *                 ignored for training.
+   * If not set all rows are assumed to have equal weight of 1.
+   * NOTE: Updates of this field will instantly affect any other users
+   * concurrently working with the dataset.
+   * 
+ * + * string weight_column_spec_id = 3; + */ + com.google.protobuf.ByteString getWeightColumnSpecIdBytes(); + + /** + * + * + *
+   * column_spec_id of the primary table column which specifies a possible ML
+   * use of the row, i.e. the column will be used to split the rows into TRAIN,
+   * VALIDATE and TEST sets.
+   * Required type: STRING.
+   * This column, if set, must either have all of `TRAIN`, `VALIDATE`, `TEST`
+   * among its values, or only have `TEST`, `UNASSIGNED` values. In the latter
+   * case the rows with `UNASSIGNED` value will be assigned by AutoML. Note
+   * that if a given ml use distribution makes it impossible to create a "good"
+   * model, that call will error describing the issue.
+   * If both this column_spec_id and primary table's time_column_spec_id are not
+   * set, then all rows are treated as `UNASSIGNED`.
+   * NOTE: Updates of this field will instantly affect any other users
+   * concurrently working with the dataset.
+   * 
+ * + * string ml_use_column_spec_id = 4; + */ + java.lang.String getMlUseColumnSpecId(); + /** + * + * + *
+   * column_spec_id of the primary table column which specifies a possible ML
+   * use of the row, i.e. the column will be used to split the rows into TRAIN,
+   * VALIDATE and TEST sets.
+   * Required type: STRING.
+   * This column, if set, must either have all of `TRAIN`, `VALIDATE`, `TEST`
+   * among its values, or only have `TEST`, `UNASSIGNED` values. In the latter
+   * case the rows with `UNASSIGNED` value will be assigned by AutoML. Note
+   * that if a given ml use distribution makes it impossible to create a "good"
+   * model, that call will error describing the issue.
+   * If both this column_spec_id and primary table's time_column_spec_id are not
+   * set, then all rows are treated as `UNASSIGNED`.
+   * NOTE: Updates of this field will instantly affect any other users
+   * concurrently working with the dataset.
+   * 
+ * + * string ml_use_column_spec_id = 4; + */ + com.google.protobuf.ByteString getMlUseColumnSpecIdBytes(); + + /** + * + * + *
+   * Output only. Correlations between
+   * [target_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column],
+   * and other columns of the
+   * [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id].
+   * Only set if the target column is set. Mapping from other column spec id to
+   * its CorrelationStats with the target column.
+   * This field may be stale, see the stats_update_time field for
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + */ + int getTargetColumnCorrelationsCount(); + /** + * + * + *
+   * Output only. Correlations between
+   * [target_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column],
+   * and other columns of the
+   * [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id].
+   * Only set if the target column is set. Mapping from other column spec id to
+   * its CorrelationStats with the target column.
+   * This field may be stale, see the stats_update_time field for
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + */ + boolean containsTargetColumnCorrelations(java.lang.String key); + /** Use {@link #getTargetColumnCorrelationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getTargetColumnCorrelations(); + /** + * + * + *
+   * Output only. Correlations between
+   * [target_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column],
+   * and other columns of the
+   * [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id].
+   * Only set if the target column is set. Mapping from other column spec id to
+   * its CorrelationStats with the target column.
+   * This field may be stale, see the stats_update_time field for
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + */ + java.util.Map + getTargetColumnCorrelationsMap(); + /** + * + * + *
+   * Output only. Correlations between
+   * [target_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column],
+   * and other columns of the
+   * [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id].
+   * Only set if the target column is set. Mapping from other column spec id to
+   * its CorrelationStats with the target column.
+   * This field may be stale, see the stats_update_time field for
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + */ + com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelationsOrDefault( + java.lang.String key, com.google.cloud.automl.v1beta1.CorrelationStats defaultValue); + /** + * + * + *
+   * Output only. Correlations between
+   * [target_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column],
+   * and other columns of the
+   * [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id].
+   * Only set if the target column is set. Mapping from other column spec id to
+   * its CorrelationStats with the target column.
+   * This field may be stale, see the stats_update_time field for
+   * for the timestamp at which these stats were last updated.
+   * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.CorrelationStats> target_column_correlations = 6; + * + */ + com.google.cloud.automl.v1beta1.CorrelationStats getTargetColumnCorrelationsOrThrow( + java.lang.String key); + + /** + * + * + *
+   * The most recent timestamp when target_column_correlations field and all
+   * descendant ColumnSpec.data_stats and ColumnSpec.top_correlated_columns
+   * fields were last (re-)generated. Any changes that happened to the dataset
+   * afterwards are not reflected in these fields values. The regeneration
+   * happens in the background on a best effort basis.
+   * 
+ * + * .google.protobuf.Timestamp stats_update_time = 7; + */ + boolean hasStatsUpdateTime(); + /** + * + * + *
+   * The most recent timestamp when target_column_correlations field and all
+   * descendant ColumnSpec.data_stats and ColumnSpec.top_correlated_columns
+   * fields were last (re-)generated. Any changes that happened to the dataset
+   * afterwards are not reflected in these fields values. The regeneration
+   * happens in the background on a best effort basis.
+   * 
+ * + * .google.protobuf.Timestamp stats_update_time = 7; + */ + com.google.protobuf.Timestamp getStatsUpdateTime(); + /** + * + * + *
+   * The most recent timestamp when target_column_correlations field and all
+   * descendant ColumnSpec.data_stats and ColumnSpec.top_correlated_columns
+   * fields were last (re-)generated. Any changes that happened to the dataset
+   * afterwards are not reflected in these fields values. The regeneration
+   * happens in the background on a best effort basis.
+   * 
+ * + * .google.protobuf.Timestamp stats_update_time = 7; + */ + com.google.protobuf.TimestampOrBuilder getStatsUpdateTimeOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfo.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfo.java new file mode 100644 index 000000000000..75aeca2ba638 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfo.java @@ -0,0 +1,896 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/tables.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * An information specific to given column and Tables Model, in context
+ * of the Model and the predictions created by it.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TablesModelColumnInfo} + */ +public final class TablesModelColumnInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TablesModelColumnInfo) + TablesModelColumnInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use TablesModelColumnInfo.newBuilder() to construct. + private TablesModelColumnInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TablesModelColumnInfo() { + columnSpecName_ = ""; + columnDisplayName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TablesModelColumnInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + columnSpecName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + columnDisplayName_ = s; + break; + } + case 29: + { + featureImportance_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Tables + .internal_static_google_cloud_automl_v1beta1_TablesModelColumnInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Tables + .internal_static_google_cloud_automl_v1beta1_TablesModelColumnInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TablesModelColumnInfo.class, + com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder.class); + } + + public static final int COLUMN_SPEC_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object columnSpecName_; + /** + * + * + *
+   * Output only. The name of the ColumnSpec describing the column. Not
+   * populated when this proto is outputted to BigQuery.
+   * 
+ * + * string column_spec_name = 1; + */ + public java.lang.String getColumnSpecName() { + java.lang.Object ref = columnSpecName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + columnSpecName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The name of the ColumnSpec describing the column. Not
+   * populated when this proto is outputted to BigQuery.
+   * 
+ * + * string column_spec_name = 1; + */ + public com.google.protobuf.ByteString getColumnSpecNameBytes() { + java.lang.Object ref = columnSpecName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + columnSpecName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COLUMN_DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object columnDisplayName_; + /** + * + * + *
+   * Output only. The display name of the column (same as the display_name of
+   * its ColumnSpec).
+   * 
+ * + * string column_display_name = 2; + */ + public java.lang.String getColumnDisplayName() { + java.lang.Object ref = columnDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + columnDisplayName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The display name of the column (same as the display_name of
+   * its ColumnSpec).
+   * 
+ * + * string column_display_name = 2; + */ + public com.google.protobuf.ByteString getColumnDisplayNameBytes() { + java.lang.Object ref = columnDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + columnDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FEATURE_IMPORTANCE_FIELD_NUMBER = 3; + private float featureImportance_; + /** + * + * + *
+   * Output only.
+   * When given as part of a Model:
+   * Measurement of how much model predictions correctness on the TEST data
+   * depend on values in this column. A value between 0 and 1, higher means
+   * higher influence. These values are normalized - for all input feature
+   * columns of a given model they add to 1.
+   * When given back by Predict or Batch Predict:
+   * Measurement of how impactful for the prediction returned for the given row
+   * the value in this column was. A value between 0 and 1, higher means larger
+   * impact. These values are normalized - for all input feature columns of a
+   * single predicted row they add to 1.
+   * 
+ * + * float feature_importance = 3; + */ + public float getFeatureImportance() { + return featureImportance_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getColumnSpecNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnSpecName_); + } + if (!getColumnDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, columnDisplayName_); + } + if (featureImportance_ != 0F) { + output.writeFloat(3, featureImportance_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getColumnSpecNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnSpecName_); + } + if (!getColumnDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, columnDisplayName_); + } + if (featureImportance_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, featureImportance_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.TablesModelColumnInfo)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.TablesModelColumnInfo other = + (com.google.cloud.automl.v1beta1.TablesModelColumnInfo) obj; + + if (!getColumnSpecName().equals(other.getColumnSpecName())) return false; + if (!getColumnDisplayName().equals(other.getColumnDisplayName())) return false; + if (java.lang.Float.floatToIntBits(getFeatureImportance()) + != java.lang.Float.floatToIntBits(other.getFeatureImportance())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COLUMN_SPEC_NAME_FIELD_NUMBER; + hash = (53 * hash) + getColumnSpecName().hashCode(); + hash = (37 * hash) + COLUMN_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getColumnDisplayName().hashCode(); + hash = (37 * hash) + FEATURE_IMPORTANCE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getFeatureImportance()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.TablesModelColumnInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TablesModelColumnInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TablesModelColumnInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TablesModelColumnInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TablesModelColumnInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TablesModelColumnInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TablesModelColumnInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TablesModelColumnInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TablesModelColumnInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TablesModelColumnInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TablesModelColumnInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TablesModelColumnInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.TablesModelColumnInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * An information specific to given column and Tables Model, in context
+   * of the Model and the predictions created by it.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TablesModelColumnInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TablesModelColumnInfo) + com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Tables + .internal_static_google_cloud_automl_v1beta1_TablesModelColumnInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Tables + .internal_static_google_cloud_automl_v1beta1_TablesModelColumnInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TablesModelColumnInfo.class, + com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.TablesModelColumnInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + columnSpecName_ = ""; + + columnDisplayName_ = ""; + + featureImportance_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Tables + .internal_static_google_cloud_automl_v1beta1_TablesModelColumnInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.TablesModelColumnInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TablesModelColumnInfo build() { + com.google.cloud.automl.v1beta1.TablesModelColumnInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TablesModelColumnInfo buildPartial() { + com.google.cloud.automl.v1beta1.TablesModelColumnInfo result = + new com.google.cloud.automl.v1beta1.TablesModelColumnInfo(this); + result.columnSpecName_ = columnSpecName_; + result.columnDisplayName_ = columnDisplayName_; + result.featureImportance_ = featureImportance_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.TablesModelColumnInfo) { + return mergeFrom((com.google.cloud.automl.v1beta1.TablesModelColumnInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.TablesModelColumnInfo other) { + if (other == com.google.cloud.automl.v1beta1.TablesModelColumnInfo.getDefaultInstance()) + return this; + if (!other.getColumnSpecName().isEmpty()) { + columnSpecName_ = other.columnSpecName_; + onChanged(); + } + if (!other.getColumnDisplayName().isEmpty()) { + columnDisplayName_ = other.columnDisplayName_; + onChanged(); + } + if (other.getFeatureImportance() != 0F) { + setFeatureImportance(other.getFeatureImportance()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.TablesModelColumnInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.TablesModelColumnInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object columnSpecName_ = ""; + /** + * + * + *
+     * Output only. The name of the ColumnSpec describing the column. Not
+     * populated when this proto is outputted to BigQuery.
+     * 
+ * + * string column_spec_name = 1; + */ + public java.lang.String getColumnSpecName() { + java.lang.Object ref = columnSpecName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + columnSpecName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The name of the ColumnSpec describing the column. Not
+     * populated when this proto is outputted to BigQuery.
+     * 
+ * + * string column_spec_name = 1; + */ + public com.google.protobuf.ByteString getColumnSpecNameBytes() { + java.lang.Object ref = columnSpecName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + columnSpecName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The name of the ColumnSpec describing the column. Not
+     * populated when this proto is outputted to BigQuery.
+     * 
+ * + * string column_spec_name = 1; + */ + public Builder setColumnSpecName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + columnSpecName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The name of the ColumnSpec describing the column. Not
+     * populated when this proto is outputted to BigQuery.
+     * 
+ * + * string column_spec_name = 1; + */ + public Builder clearColumnSpecName() { + + columnSpecName_ = getDefaultInstance().getColumnSpecName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The name of the ColumnSpec describing the column. Not
+     * populated when this proto is outputted to BigQuery.
+     * 
+ * + * string column_spec_name = 1; + */ + public Builder setColumnSpecNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + columnSpecName_ = value; + onChanged(); + return this; + } + + private java.lang.Object columnDisplayName_ = ""; + /** + * + * + *
+     * Output only. The display name of the column (same as the display_name of
+     * its ColumnSpec).
+     * 
+ * + * string column_display_name = 2; + */ + public java.lang.String getColumnDisplayName() { + java.lang.Object ref = columnDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + columnDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The display name of the column (same as the display_name of
+     * its ColumnSpec).
+     * 
+ * + * string column_display_name = 2; + */ + public com.google.protobuf.ByteString getColumnDisplayNameBytes() { + java.lang.Object ref = columnDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + columnDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The display name of the column (same as the display_name of
+     * its ColumnSpec).
+     * 
+ * + * string column_display_name = 2; + */ + public Builder setColumnDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + columnDisplayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The display name of the column (same as the display_name of
+     * its ColumnSpec).
+     * 
+ * + * string column_display_name = 2; + */ + public Builder clearColumnDisplayName() { + + columnDisplayName_ = getDefaultInstance().getColumnDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The display name of the column (same as the display_name of
+     * its ColumnSpec).
+     * 
+ * + * string column_display_name = 2; + */ + public Builder setColumnDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + columnDisplayName_ = value; + onChanged(); + return this; + } + + private float featureImportance_; + /** + * + * + *
+     * Output only.
+     * When given as part of a Model:
+     * Measurement of how much model predictions correctness on the TEST data
+     * depend on values in this column. A value between 0 and 1, higher means
+     * higher influence. These values are normalized - for all input feature
+     * columns of a given model they add to 1.
+     * When given back by Predict or Batch Predict:
+     * Measurement of how impactful for the prediction returned for the given row
+     * the value in this column was. A value between 0 and 1, higher means larger
+     * impact. These values are normalized - for all input feature columns of a
+     * single predicted row they add to 1.
+     * 
+ * + * float feature_importance = 3; + */ + public float getFeatureImportance() { + return featureImportance_; + } + /** + * + * + *
+     * Output only.
+     * When given as part of a Model:
+     * Measurement of how much model predictions correctness on the TEST data
+     * depend on values in this column. A value between 0 and 1, higher means
+     * higher influence. These values are normalized - for all input feature
+     * columns of a given model they add to 1.
+     * When given back by Predict or Batch Predict:
+     * Measurement of how impactful for the prediction returned for the given row
+     * the value in this column was. A value between 0 and 1, higher means larger
+     * impact. These values are normalized - for all input feature columns of a
+     * single predicted row they add to 1.
+     * 
+ * + * float feature_importance = 3; + */ + public Builder setFeatureImportance(float value) { + + featureImportance_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only.
+     * When given as part of a Model:
+     * Measurement of how much model predictions correctness on the TEST data
+     * depend on values in this column. A value between 0 and 1, higher means
+     * higher influence. These values are normalized - for all input feature
+     * columns of a given model they add to 1.
+     * When given back by Predict or Batch Predict:
+     * Measurement of how impactful for the prediction returned for the given row
+     * the value in this column was. A value between 0 and 1, higher means larger
+     * impact. These values are normalized - for all input feature columns of a
+     * single predicted row they add to 1.
+     * 
+ * + * float feature_importance = 3; + */ + public Builder clearFeatureImportance() { + + featureImportance_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TablesModelColumnInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TablesModelColumnInfo) + private static final com.google.cloud.automl.v1beta1.TablesModelColumnInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TablesModelColumnInfo(); + } + + public static com.google.cloud.automl.v1beta1.TablesModelColumnInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TablesModelColumnInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TablesModelColumnInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfoOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfoOrBuilder.java new file mode 100644 index 000000000000..4e97b62b9d76 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelColumnInfoOrBuilder.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/tables.proto + +package com.google.cloud.automl.v1beta1; + +public interface TablesModelColumnInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TablesModelColumnInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The name of the ColumnSpec describing the column. Not
+   * populated when this proto is outputted to BigQuery.
+   * 
+ * + * string column_spec_name = 1; + */ + java.lang.String getColumnSpecName(); + /** + * + * + *
+   * Output only. The name of the ColumnSpec describing the column. Not
+   * populated when this proto is outputted to BigQuery.
+   * 
+ * + * string column_spec_name = 1; + */ + com.google.protobuf.ByteString getColumnSpecNameBytes(); + + /** + * + * + *
+   * Output only. The display name of the column (same as the display_name of
+   * its ColumnSpec).
+   * 
+ * + * string column_display_name = 2; + */ + java.lang.String getColumnDisplayName(); + /** + * + * + *
+   * Output only. The display name of the column (same as the display_name of
+   * its ColumnSpec).
+   * 
+ * + * string column_display_name = 2; + */ + com.google.protobuf.ByteString getColumnDisplayNameBytes(); + + /** + * + * + *
+   * Output only.
+   * When given as part of a Model:
+   * Measurement of how much model predictions correctness on the TEST data
+   * depend on values in this column. A value between 0 and 1, higher means
+   * higher influence. These values are normalized - for all input feature
+   * columns of a given model they add to 1.
+   * When given back by Predict or Batch Predict:
+   * Measurement of how impactful for the prediction returned for the given row
+   * the value in this column was. A value between 0 and 1, higher means larger
+   * impact. These values are normalized - for all input feature columns of a
+   * single predicted row they add to 1.
+   * 
+ * + * float feature_importance = 3; + */ + float getFeatureImportance(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadata.java new file mode 100644 index 000000000000..b85ee0228269 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadata.java @@ -0,0 +1,2700 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/tables.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Model metadata specific to AutoML Tables.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TablesModelMetadata} + */ +public final class TablesModelMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TablesModelMetadata) + TablesModelMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use TablesModelMetadata.newBuilder() to construct. + private TablesModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TablesModelMetadata() { + inputFeatureColumnSpecs_ = java.util.Collections.emptyList(); + optimizationObjective_ = ""; + tablesModelColumnInfo_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TablesModelMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + com.google.cloud.automl.v1beta1.ColumnSpec.Builder subBuilder = null; + if (targetColumnSpec_ != null) { + subBuilder = targetColumnSpec_.toBuilder(); + } + targetColumnSpec_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ColumnSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(targetColumnSpec_); + targetColumnSpec_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + inputFeatureColumnSpecs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + inputFeatureColumnSpecs_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.ColumnSpec.parser(), extensionRegistry)); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + optimizationObjective_ = s; + break; + } + case 42: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + tablesModelColumnInfo_ = + new java.util.ArrayList< + com.google.cloud.automl.v1beta1.TablesModelColumnInfo>(); + mutable_bitField0_ |= 0x00000008; + } + tablesModelColumnInfo_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.TablesModelColumnInfo.parser(), + extensionRegistry)); + break; + } + case 48: + { + trainBudgetMilliNodeHours_ = input.readInt64(); + break; + } + case 56: + { + trainCostMilliNodeHours_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + inputFeatureColumnSpecs_ = java.util.Collections.unmodifiableList(inputFeatureColumnSpecs_); + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + tablesModelColumnInfo_ = java.util.Collections.unmodifiableList(tablesModelColumnInfo_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Tables + .internal_static_google_cloud_automl_v1beta1_TablesModelMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Tables + .internal_static_google_cloud_automl_v1beta1_TablesModelMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TablesModelMetadata.class, + com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder.class); + } + + private int bitField0_; + public static final int TARGET_COLUMN_SPEC_FIELD_NUMBER = 2; + private com.google.cloud.automl.v1beta1.ColumnSpec targetColumnSpec_; + /** + * + * + *
+   * Column spec of the dataset's primary table's column the model is
+   * predicting. Snapshotted when model creation started.
+   * Only 3 fields are used:
+   * name - May be set on CreateModel, if it's not then the ColumnSpec
+   *        corresponding to the current target_column_spec_id of the dataset
+   *        the model is trained from is used.
+   *        If neither is set, CreateModel will error.
+   * display_name - Output only.
+   * data_type - Output only.
+   * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; + */ + public boolean hasTargetColumnSpec() { + return targetColumnSpec_ != null; + } + /** + * + * + *
+   * Column spec of the dataset's primary table's column the model is
+   * predicting. Snapshotted when model creation started.
+   * Only 3 fields are used:
+   * name - May be set on CreateModel, if it's not then the ColumnSpec
+   *        corresponding to the current target_column_spec_id of the dataset
+   *        the model is trained from is used.
+   *        If neither is set, CreateModel will error.
+   * display_name - Output only.
+   * data_type - Output only.
+   * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; + */ + public com.google.cloud.automl.v1beta1.ColumnSpec getTargetColumnSpec() { + return targetColumnSpec_ == null + ? com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance() + : targetColumnSpec_; + } + /** + * + * + *
+   * Column spec of the dataset's primary table's column the model is
+   * predicting. Snapshotted when model creation started.
+   * Only 3 fields are used:
+   * name - May be set on CreateModel, if it's not then the ColumnSpec
+   *        corresponding to the current target_column_spec_id of the dataset
+   *        the model is trained from is used.
+   *        If neither is set, CreateModel will error.
+   * display_name - Output only.
+   * data_type - Output only.
+   * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; + */ + public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getTargetColumnSpecOrBuilder() { + return getTargetColumnSpec(); + } + + public static final int INPUT_FEATURE_COLUMN_SPECS_FIELD_NUMBER = 3; + private java.util.List inputFeatureColumnSpecs_; + /** + * + * + *
+   * Column specs of the dataset's primary table's columns, on which
+   * the model is trained and which are used as the input for predictions.
+   * The
+   * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * as well as, according to dataset's state upon model creation,
+   * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+   * and
+   * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+   * must never be included here.
+   * Only 3 fields are used:
+   * name - May be set on CreateModel, if set only the columns specified are
+   *        used, otherwise all primary table's columns (except the ones listed
+   *        above) are used for the training and prediction input.
+   * display_name - Output only.
+   * data_type - Output only.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public java.util.List + getInputFeatureColumnSpecsList() { + return inputFeatureColumnSpecs_; + } + /** + * + * + *
+   * Column specs of the dataset's primary table's columns, on which
+   * the model is trained and which are used as the input for predictions.
+   * The
+   * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * as well as, according to dataset's state upon model creation,
+   * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+   * and
+   * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+   * must never be included here.
+   * Only 3 fields are used:
+   * name - May be set on CreateModel, if set only the columns specified are
+   *        used, otherwise all primary table's columns (except the ones listed
+   *        above) are used for the training and prediction input.
+   * display_name - Output only.
+   * data_type - Output only.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public java.util.List + getInputFeatureColumnSpecsOrBuilderList() { + return inputFeatureColumnSpecs_; + } + /** + * + * + *
+   * Column specs of the dataset's primary table's columns, on which
+   * the model is trained and which are used as the input for predictions.
+   * The
+   * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * as well as, according to dataset's state upon model creation,
+   * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+   * and
+   * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+   * must never be included here.
+   * Only 3 fields are used:
+   * name - May be set on CreateModel, if set only the columns specified are
+   *        used, otherwise all primary table's columns (except the ones listed
+   *        above) are used for the training and prediction input.
+   * display_name - Output only.
+   * data_type - Output only.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public int getInputFeatureColumnSpecsCount() { + return inputFeatureColumnSpecs_.size(); + } + /** + * + * + *
+   * Column specs of the dataset's primary table's columns, on which
+   * the model is trained and which are used as the input for predictions.
+   * The
+   * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * as well as, according to dataset's state upon model creation,
+   * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+   * and
+   * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+   * must never be included here.
+   * Only 3 fields are used:
+   * name - May be set on CreateModel, if set only the columns specified are
+   *        used, otherwise all primary table's columns (except the ones listed
+   *        above) are used for the training and prediction input.
+   * display_name - Output only.
+   * data_type - Output only.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public com.google.cloud.automl.v1beta1.ColumnSpec getInputFeatureColumnSpecs(int index) { + return inputFeatureColumnSpecs_.get(index); + } + /** + * + * + *
+   * Column specs of the dataset's primary table's columns, on which
+   * the model is trained and which are used as the input for predictions.
+   * The
+   * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * as well as, according to dataset's state upon model creation,
+   * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+   * and
+   * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+   * must never be included here.
+   * Only 3 fields are used:
+   * name - May be set on CreateModel, if set only the columns specified are
+   *        used, otherwise all primary table's columns (except the ones listed
+   *        above) are used for the training and prediction input.
+   * display_name - Output only.
+   * data_type - Output only.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getInputFeatureColumnSpecsOrBuilder( + int index) { + return inputFeatureColumnSpecs_.get(index); + } + + public static final int OPTIMIZATION_OBJECTIVE_FIELD_NUMBER = 4; + private volatile java.lang.Object optimizationObjective_; + /** + * + * + *
+   * Objective function the model is optimizing towards. The training process
+   * creates a model that maximizes/minimizes the value of the objective
+   * function over the validation set.
+   * The supported optimization objectives depend on the prediction_type.
+   * If the field is not set, a default objective function is used.
+   * CLASSIFICATION_BINARY:
+   *   "MAXIMIZE_AU_ROC" (default) - Maximize the area under the receiver
+   *                                 operating characteristic (ROC) curve.
+   *   "MINIMIZE_LOG_LOSS" - Minimize log loss.
+   *   "MAXIMIZE_AU_PRC" - Maximize the area under the precision-recall curve.
+   * CLASSIFICATION_MULTI_CLASS :
+   *   "MINIMIZE_LOG_LOSS" (default) - Minimize log loss.
+   * CLASSIFICATION_MULTI_LABEL:
+   *   "MINIMIZE_LOG_LOSS" (default) - Minimize log loss.
+   * REGRESSION:
+   *   "MINIMIZE_RMSE" (default) - Minimize root-mean-squared error (RMSE).
+   *   "MINIMIZE_MAE" - Minimize mean-absolute error (MAE).
+   *   "MINIMIZE_RMSLE" - Minimize root-mean-squared log error (RMSLE).
+   * FORECASTING:
+   *   "MINIMIZE_RMSE" (default) - Minimize root-mean-squared error (RMSE).
+   *   "MINIMIZE_MAE" - Minimize mean-absolute error (MAE).
+   * 
+ * + * string optimization_objective = 4; + */ + public java.lang.String getOptimizationObjective() { + java.lang.Object ref = optimizationObjective_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + optimizationObjective_ = s; + return s; + } + } + /** + * + * + *
+   * Objective function the model is optimizing towards. The training process
+   * creates a model that maximizes/minimizes the value of the objective
+   * function over the validation set.
+   * The supported optimization objectives depend on the prediction_type.
+   * If the field is not set, a default objective function is used.
+   * CLASSIFICATION_BINARY:
+   *   "MAXIMIZE_AU_ROC" (default) - Maximize the area under the receiver
+   *                                 operating characteristic (ROC) curve.
+   *   "MINIMIZE_LOG_LOSS" - Minimize log loss.
+   *   "MAXIMIZE_AU_PRC" - Maximize the area under the precision-recall curve.
+   * CLASSIFICATION_MULTI_CLASS :
+   *   "MINIMIZE_LOG_LOSS" (default) - Minimize log loss.
+   * CLASSIFICATION_MULTI_LABEL:
+   *   "MINIMIZE_LOG_LOSS" (default) - Minimize log loss.
+   * REGRESSION:
+   *   "MINIMIZE_RMSE" (default) - Minimize root-mean-squared error (RMSE).
+   *   "MINIMIZE_MAE" - Minimize mean-absolute error (MAE).
+   *   "MINIMIZE_RMSLE" - Minimize root-mean-squared log error (RMSLE).
+   * FORECASTING:
+   *   "MINIMIZE_RMSE" (default) - Minimize root-mean-squared error (RMSE).
+   *   "MINIMIZE_MAE" - Minimize mean-absolute error (MAE).
+   * 
+ * + * string optimization_objective = 4; + */ + public com.google.protobuf.ByteString getOptimizationObjectiveBytes() { + java.lang.Object ref = optimizationObjective_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + optimizationObjective_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLES_MODEL_COLUMN_INFO_FIELD_NUMBER = 5; + private java.util.List + tablesModelColumnInfo_; + /** + * + * + *
+   * Output only. Auxiliary information for each of the
+   * input_feature_column_specs, with respect to this particular model.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public java.util.List + getTablesModelColumnInfoList() { + return tablesModelColumnInfo_; + } + /** + * + * + *
+   * Output only. Auxiliary information for each of the
+   * input_feature_column_specs, with respect to this particular model.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public java.util.List + getTablesModelColumnInfoOrBuilderList() { + return tablesModelColumnInfo_; + } + /** + * + * + *
+   * Output only. Auxiliary information for each of the
+   * input_feature_column_specs, with respect to this particular model.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public int getTablesModelColumnInfoCount() { + return tablesModelColumnInfo_.size(); + } + /** + * + * + *
+   * Output only. Auxiliary information for each of the
+   * input_feature_column_specs, with respect to this particular model.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColumnInfo(int index) { + return tablesModelColumnInfo_.get(index); + } + /** + * + * + *
+   * Output only. Auxiliary information for each of the
+   * input_feature_column_specs, with respect to this particular model.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder + getTablesModelColumnInfoOrBuilder(int index) { + return tablesModelColumnInfo_.get(index); + } + + public static final int TRAIN_BUDGET_MILLI_NODE_HOURS_FIELD_NUMBER = 6; + private long trainBudgetMilliNodeHours_; + /** + * + * + *
+   * The train budget of creating this model, expressed in milli node hours
+   * i.e. 1,000 value in this field means 1 node hour.
+   * The training cost of the model will not exceed this budget. The final cost
+   * will be attempted to be close to the budget, though may end up being (even)
+   * noticeably smaller - at the backend's discretion. This especially may
+   * happen when further model training ceases to provide any improvements.
+   * If the budget is set to a value known to be insufficient to train a
+   * model for the given dataset, the training won't be attempted and
+   * will error.
+   * 
+ * + * int64 train_budget_milli_node_hours = 6; + */ + public long getTrainBudgetMilliNodeHours() { + return trainBudgetMilliNodeHours_; + } + + public static final int TRAIN_COST_MILLI_NODE_HOURS_FIELD_NUMBER = 7; + private long trainCostMilliNodeHours_; + /** + * + * + *
+   * Output only. The actual training cost of the model, expressed in milli
+   * node hours, i.e. 1,000 value in this field means 1 node hour. Guaranteed
+   * to not exceed the train budget.
+   * 
+ * + * int64 train_cost_milli_node_hours = 7; + */ + public long getTrainCostMilliNodeHours() { + return trainCostMilliNodeHours_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (targetColumnSpec_ != null) { + output.writeMessage(2, getTargetColumnSpec()); + } + for (int i = 0; i < inputFeatureColumnSpecs_.size(); i++) { + output.writeMessage(3, inputFeatureColumnSpecs_.get(i)); + } + if (!getOptimizationObjectiveBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, optimizationObjective_); + } + for (int i = 0; i < tablesModelColumnInfo_.size(); i++) { + output.writeMessage(5, tablesModelColumnInfo_.get(i)); + } + if (trainBudgetMilliNodeHours_ != 0L) { + output.writeInt64(6, trainBudgetMilliNodeHours_); + } + if (trainCostMilliNodeHours_ != 0L) { + output.writeInt64(7, trainCostMilliNodeHours_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (targetColumnSpec_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTargetColumnSpec()); + } + for (int i = 0; i < inputFeatureColumnSpecs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, inputFeatureColumnSpecs_.get(i)); + } + if (!getOptimizationObjectiveBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, optimizationObjective_); + } + for (int i = 0; i < tablesModelColumnInfo_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, tablesModelColumnInfo_.get(i)); + } + if (trainBudgetMilliNodeHours_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, trainBudgetMilliNodeHours_); + } + if (trainCostMilliNodeHours_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, trainCostMilliNodeHours_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.TablesModelMetadata)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.TablesModelMetadata other = + (com.google.cloud.automl.v1beta1.TablesModelMetadata) obj; + + if (hasTargetColumnSpec() != other.hasTargetColumnSpec()) return false; + if (hasTargetColumnSpec()) { + if (!getTargetColumnSpec().equals(other.getTargetColumnSpec())) return false; + } + if (!getInputFeatureColumnSpecsList().equals(other.getInputFeatureColumnSpecsList())) + return false; + if (!getOptimizationObjective().equals(other.getOptimizationObjective())) return false; + if (!getTablesModelColumnInfoList().equals(other.getTablesModelColumnInfoList())) return false; + if (getTrainBudgetMilliNodeHours() != other.getTrainBudgetMilliNodeHours()) return false; + if (getTrainCostMilliNodeHours() != other.getTrainCostMilliNodeHours()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTargetColumnSpec()) { + hash = (37 * hash) + TARGET_COLUMN_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getTargetColumnSpec().hashCode(); + } + if (getInputFeatureColumnSpecsCount() > 0) { + hash = (37 * hash) + INPUT_FEATURE_COLUMN_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getInputFeatureColumnSpecsList().hashCode(); + } + hash = (37 * hash) + OPTIMIZATION_OBJECTIVE_FIELD_NUMBER; + hash = (53 * hash) + getOptimizationObjective().hashCode(); + if (getTablesModelColumnInfoCount() > 0) { + hash = (37 * hash) + TABLES_MODEL_COLUMN_INFO_FIELD_NUMBER; + hash = (53 * hash) + getTablesModelColumnInfoList().hashCode(); + } + hash = (37 * hash) + TRAIN_BUDGET_MILLI_NODE_HOURS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrainBudgetMilliNodeHours()); + hash = (37 * hash) + TRAIN_COST_MILLI_NODE_HOURS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTrainCostMilliNodeHours()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.TablesModelMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TablesModelMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TablesModelMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TablesModelMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TablesModelMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TablesModelMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TablesModelMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TablesModelMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TablesModelMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TablesModelMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TablesModelMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TablesModelMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.TablesModelMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Model metadata specific to AutoML Tables.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TablesModelMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TablesModelMetadata) + com.google.cloud.automl.v1beta1.TablesModelMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Tables + .internal_static_google_cloud_automl_v1beta1_TablesModelMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Tables + .internal_static_google_cloud_automl_v1beta1_TablesModelMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TablesModelMetadata.class, + com.google.cloud.automl.v1beta1.TablesModelMetadata.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.TablesModelMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInputFeatureColumnSpecsFieldBuilder(); + getTablesModelColumnInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (targetColumnSpecBuilder_ == null) { + targetColumnSpec_ = null; + } else { + targetColumnSpec_ = null; + targetColumnSpecBuilder_ = null; + } + if (inputFeatureColumnSpecsBuilder_ == null) { + inputFeatureColumnSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + inputFeatureColumnSpecsBuilder_.clear(); + } + optimizationObjective_ = ""; + + if (tablesModelColumnInfoBuilder_ == null) { + tablesModelColumnInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + tablesModelColumnInfoBuilder_.clear(); + } + trainBudgetMilliNodeHours_ = 0L; + + trainCostMilliNodeHours_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Tables + .internal_static_google_cloud_automl_v1beta1_TablesModelMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TablesModelMetadata getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.TablesModelMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TablesModelMetadata build() { + com.google.cloud.automl.v1beta1.TablesModelMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TablesModelMetadata buildPartial() { + com.google.cloud.automl.v1beta1.TablesModelMetadata result = + new com.google.cloud.automl.v1beta1.TablesModelMetadata(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (targetColumnSpecBuilder_ == null) { + result.targetColumnSpec_ = targetColumnSpec_; + } else { + result.targetColumnSpec_ = targetColumnSpecBuilder_.build(); + } + if (inputFeatureColumnSpecsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + inputFeatureColumnSpecs_ = + java.util.Collections.unmodifiableList(inputFeatureColumnSpecs_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.inputFeatureColumnSpecs_ = inputFeatureColumnSpecs_; + } else { + result.inputFeatureColumnSpecs_ = inputFeatureColumnSpecsBuilder_.build(); + } + result.optimizationObjective_ = optimizationObjective_; + if (tablesModelColumnInfoBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + tablesModelColumnInfo_ = java.util.Collections.unmodifiableList(tablesModelColumnInfo_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.tablesModelColumnInfo_ = tablesModelColumnInfo_; + } else { + result.tablesModelColumnInfo_ = tablesModelColumnInfoBuilder_.build(); + } + result.trainBudgetMilliNodeHours_ = trainBudgetMilliNodeHours_; + result.trainCostMilliNodeHours_ = trainCostMilliNodeHours_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.TablesModelMetadata) { + return mergeFrom((com.google.cloud.automl.v1beta1.TablesModelMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.TablesModelMetadata other) { + if (other == com.google.cloud.automl.v1beta1.TablesModelMetadata.getDefaultInstance()) + return this; + if (other.hasTargetColumnSpec()) { + mergeTargetColumnSpec(other.getTargetColumnSpec()); + } + if (inputFeatureColumnSpecsBuilder_ == null) { + if (!other.inputFeatureColumnSpecs_.isEmpty()) { + if (inputFeatureColumnSpecs_.isEmpty()) { + inputFeatureColumnSpecs_ = other.inputFeatureColumnSpecs_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInputFeatureColumnSpecsIsMutable(); + inputFeatureColumnSpecs_.addAll(other.inputFeatureColumnSpecs_); + } + onChanged(); + } + } else { + if (!other.inputFeatureColumnSpecs_.isEmpty()) { + if (inputFeatureColumnSpecsBuilder_.isEmpty()) { + inputFeatureColumnSpecsBuilder_.dispose(); + inputFeatureColumnSpecsBuilder_ = null; + inputFeatureColumnSpecs_ = other.inputFeatureColumnSpecs_; + bitField0_ = (bitField0_ & ~0x00000002); + inputFeatureColumnSpecsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInputFeatureColumnSpecsFieldBuilder() + : null; + } else { + inputFeatureColumnSpecsBuilder_.addAllMessages(other.inputFeatureColumnSpecs_); + } + } + } + if (!other.getOptimizationObjective().isEmpty()) { + optimizationObjective_ = other.optimizationObjective_; + onChanged(); + } + if (tablesModelColumnInfoBuilder_ == null) { + if (!other.tablesModelColumnInfo_.isEmpty()) { + if (tablesModelColumnInfo_.isEmpty()) { + tablesModelColumnInfo_ = other.tablesModelColumnInfo_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTablesModelColumnInfoIsMutable(); + tablesModelColumnInfo_.addAll(other.tablesModelColumnInfo_); + } + onChanged(); + } + } else { + if (!other.tablesModelColumnInfo_.isEmpty()) { + if (tablesModelColumnInfoBuilder_.isEmpty()) { + tablesModelColumnInfoBuilder_.dispose(); + tablesModelColumnInfoBuilder_ = null; + tablesModelColumnInfo_ = other.tablesModelColumnInfo_; + bitField0_ = (bitField0_ & ~0x00000008); + tablesModelColumnInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTablesModelColumnInfoFieldBuilder() + : null; + } else { + tablesModelColumnInfoBuilder_.addAllMessages(other.tablesModelColumnInfo_); + } + } + } + if (other.getTrainBudgetMilliNodeHours() != 0L) { + setTrainBudgetMilliNodeHours(other.getTrainBudgetMilliNodeHours()); + } + if (other.getTrainCostMilliNodeHours() != 0L) { + setTrainCostMilliNodeHours(other.getTrainCostMilliNodeHours()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.TablesModelMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.TablesModelMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.cloud.automl.v1beta1.ColumnSpec targetColumnSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ColumnSpec, + com.google.cloud.automl.v1beta1.ColumnSpec.Builder, + com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder> + targetColumnSpecBuilder_; + /** + * + * + *
+     * Column spec of the dataset's primary table's column the model is
+     * predicting. Snapshotted when model creation started.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if it's not then the ColumnSpec
+     *        corresponding to the current target_column_spec_id of the dataset
+     *        the model is trained from is used.
+     *        If neither is set, CreateModel will error.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; + */ + public boolean hasTargetColumnSpec() { + return targetColumnSpecBuilder_ != null || targetColumnSpec_ != null; + } + /** + * + * + *
+     * Column spec of the dataset's primary table's column the model is
+     * predicting. Snapshotted when model creation started.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if it's not then the ColumnSpec
+     *        corresponding to the current target_column_spec_id of the dataset
+     *        the model is trained from is used.
+     *        If neither is set, CreateModel will error.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; + */ + public com.google.cloud.automl.v1beta1.ColumnSpec getTargetColumnSpec() { + if (targetColumnSpecBuilder_ == null) { + return targetColumnSpec_ == null + ? com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance() + : targetColumnSpec_; + } else { + return targetColumnSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Column spec of the dataset's primary table's column the model is
+     * predicting. Snapshotted when model creation started.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if it's not then the ColumnSpec
+     *        corresponding to the current target_column_spec_id of the dataset
+     *        the model is trained from is used.
+     *        If neither is set, CreateModel will error.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; + */ + public Builder setTargetColumnSpec(com.google.cloud.automl.v1beta1.ColumnSpec value) { + if (targetColumnSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetColumnSpec_ = value; + onChanged(); + } else { + targetColumnSpecBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Column spec of the dataset's primary table's column the model is
+     * predicting. Snapshotted when model creation started.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if it's not then the ColumnSpec
+     *        corresponding to the current target_column_spec_id of the dataset
+     *        the model is trained from is used.
+     *        If neither is set, CreateModel will error.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; + */ + public Builder setTargetColumnSpec( + com.google.cloud.automl.v1beta1.ColumnSpec.Builder builderForValue) { + if (targetColumnSpecBuilder_ == null) { + targetColumnSpec_ = builderForValue.build(); + onChanged(); + } else { + targetColumnSpecBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Column spec of the dataset's primary table's column the model is
+     * predicting. Snapshotted when model creation started.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if it's not then the ColumnSpec
+     *        corresponding to the current target_column_spec_id of the dataset
+     *        the model is trained from is used.
+     *        If neither is set, CreateModel will error.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; + */ + public Builder mergeTargetColumnSpec(com.google.cloud.automl.v1beta1.ColumnSpec value) { + if (targetColumnSpecBuilder_ == null) { + if (targetColumnSpec_ != null) { + targetColumnSpec_ = + com.google.cloud.automl.v1beta1.ColumnSpec.newBuilder(targetColumnSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + targetColumnSpec_ = value; + } + onChanged(); + } else { + targetColumnSpecBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Column spec of the dataset's primary table's column the model is
+     * predicting. Snapshotted when model creation started.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if it's not then the ColumnSpec
+     *        corresponding to the current target_column_spec_id of the dataset
+     *        the model is trained from is used.
+     *        If neither is set, CreateModel will error.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; + */ + public Builder clearTargetColumnSpec() { + if (targetColumnSpecBuilder_ == null) { + targetColumnSpec_ = null; + onChanged(); + } else { + targetColumnSpec_ = null; + targetColumnSpecBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Column spec of the dataset's primary table's column the model is
+     * predicting. Snapshotted when model creation started.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if it's not then the ColumnSpec
+     *        corresponding to the current target_column_spec_id of the dataset
+     *        the model is trained from is used.
+     *        If neither is set, CreateModel will error.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; + */ + public com.google.cloud.automl.v1beta1.ColumnSpec.Builder getTargetColumnSpecBuilder() { + + onChanged(); + return getTargetColumnSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Column spec of the dataset's primary table's column the model is
+     * predicting. Snapshotted when model creation started.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if it's not then the ColumnSpec
+     *        corresponding to the current target_column_spec_id of the dataset
+     *        the model is trained from is used.
+     *        If neither is set, CreateModel will error.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; + */ + public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getTargetColumnSpecOrBuilder() { + if (targetColumnSpecBuilder_ != null) { + return targetColumnSpecBuilder_.getMessageOrBuilder(); + } else { + return targetColumnSpec_ == null + ? com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance() + : targetColumnSpec_; + } + } + /** + * + * + *
+     * Column spec of the dataset's primary table's column the model is
+     * predicting. Snapshotted when model creation started.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if it's not then the ColumnSpec
+     *        corresponding to the current target_column_spec_id of the dataset
+     *        the model is trained from is used.
+     *        If neither is set, CreateModel will error.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ColumnSpec, + com.google.cloud.automl.v1beta1.ColumnSpec.Builder, + com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder> + getTargetColumnSpecFieldBuilder() { + if (targetColumnSpecBuilder_ == null) { + targetColumnSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ColumnSpec, + com.google.cloud.automl.v1beta1.ColumnSpec.Builder, + com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder>( + getTargetColumnSpec(), getParentForChildren(), isClean()); + targetColumnSpec_ = null; + } + return targetColumnSpecBuilder_; + } + + private java.util.List inputFeatureColumnSpecs_ = + java.util.Collections.emptyList(); + + private void ensureInputFeatureColumnSpecsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + inputFeatureColumnSpecs_ = + new java.util.ArrayList( + inputFeatureColumnSpecs_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.ColumnSpec, + com.google.cloud.automl.v1beta1.ColumnSpec.Builder, + com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder> + inputFeatureColumnSpecsBuilder_; + + /** + * + * + *
+     * Column specs of the dataset's primary table's columns, on which
+     * the model is trained and which are used as the input for predictions.
+     * The
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * as well as, according to dataset's state upon model creation,
+     * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+     * and
+     * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+     * must never be included here.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if set only the columns specified are
+     *        used, otherwise all primary table's columns (except the ones listed
+     *        above) are used for the training and prediction input.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public java.util.List + getInputFeatureColumnSpecsList() { + if (inputFeatureColumnSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputFeatureColumnSpecs_); + } else { + return inputFeatureColumnSpecsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Column specs of the dataset's primary table's columns, on which
+     * the model is trained and which are used as the input for predictions.
+     * The
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * as well as, according to dataset's state upon model creation,
+     * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+     * and
+     * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+     * must never be included here.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if set only the columns specified are
+     *        used, otherwise all primary table's columns (except the ones listed
+     *        above) are used for the training and prediction input.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public int getInputFeatureColumnSpecsCount() { + if (inputFeatureColumnSpecsBuilder_ == null) { + return inputFeatureColumnSpecs_.size(); + } else { + return inputFeatureColumnSpecsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Column specs of the dataset's primary table's columns, on which
+     * the model is trained and which are used as the input for predictions.
+     * The
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * as well as, according to dataset's state upon model creation,
+     * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+     * and
+     * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+     * must never be included here.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if set only the columns specified are
+     *        used, otherwise all primary table's columns (except the ones listed
+     *        above) are used for the training and prediction input.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public com.google.cloud.automl.v1beta1.ColumnSpec getInputFeatureColumnSpecs(int index) { + if (inputFeatureColumnSpecsBuilder_ == null) { + return inputFeatureColumnSpecs_.get(index); + } else { + return inputFeatureColumnSpecsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Column specs of the dataset's primary table's columns, on which
+     * the model is trained and which are used as the input for predictions.
+     * The
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * as well as, according to dataset's state upon model creation,
+     * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+     * and
+     * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+     * must never be included here.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if set only the columns specified are
+     *        used, otherwise all primary table's columns (except the ones listed
+     *        above) are used for the training and prediction input.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public Builder setInputFeatureColumnSpecs( + int index, com.google.cloud.automl.v1beta1.ColumnSpec value) { + if (inputFeatureColumnSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputFeatureColumnSpecsIsMutable(); + inputFeatureColumnSpecs_.set(index, value); + onChanged(); + } else { + inputFeatureColumnSpecsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Column specs of the dataset's primary table's columns, on which
+     * the model is trained and which are used as the input for predictions.
+     * The
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * as well as, according to dataset's state upon model creation,
+     * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+     * and
+     * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+     * must never be included here.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if set only the columns specified are
+     *        used, otherwise all primary table's columns (except the ones listed
+     *        above) are used for the training and prediction input.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public Builder setInputFeatureColumnSpecs( + int index, com.google.cloud.automl.v1beta1.ColumnSpec.Builder builderForValue) { + if (inputFeatureColumnSpecsBuilder_ == null) { + ensureInputFeatureColumnSpecsIsMutable(); + inputFeatureColumnSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + inputFeatureColumnSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Column specs of the dataset's primary table's columns, on which
+     * the model is trained and which are used as the input for predictions.
+     * The
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * as well as, according to dataset's state upon model creation,
+     * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+     * and
+     * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+     * must never be included here.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if set only the columns specified are
+     *        used, otherwise all primary table's columns (except the ones listed
+     *        above) are used for the training and prediction input.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public Builder addInputFeatureColumnSpecs(com.google.cloud.automl.v1beta1.ColumnSpec value) { + if (inputFeatureColumnSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputFeatureColumnSpecsIsMutable(); + inputFeatureColumnSpecs_.add(value); + onChanged(); + } else { + inputFeatureColumnSpecsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Column specs of the dataset's primary table's columns, on which
+     * the model is trained and which are used as the input for predictions.
+     * The
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * as well as, according to dataset's state upon model creation,
+     * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+     * and
+     * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+     * must never be included here.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if set only the columns specified are
+     *        used, otherwise all primary table's columns (except the ones listed
+     *        above) are used for the training and prediction input.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public Builder addInputFeatureColumnSpecs( + int index, com.google.cloud.automl.v1beta1.ColumnSpec value) { + if (inputFeatureColumnSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputFeatureColumnSpecsIsMutable(); + inputFeatureColumnSpecs_.add(index, value); + onChanged(); + } else { + inputFeatureColumnSpecsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Column specs of the dataset's primary table's columns, on which
+     * the model is trained and which are used as the input for predictions.
+     * The
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * as well as, according to dataset's state upon model creation,
+     * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+     * and
+     * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+     * must never be included here.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if set only the columns specified are
+     *        used, otherwise all primary table's columns (except the ones listed
+     *        above) are used for the training and prediction input.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public Builder addInputFeatureColumnSpecs( + com.google.cloud.automl.v1beta1.ColumnSpec.Builder builderForValue) { + if (inputFeatureColumnSpecsBuilder_ == null) { + ensureInputFeatureColumnSpecsIsMutable(); + inputFeatureColumnSpecs_.add(builderForValue.build()); + onChanged(); + } else { + inputFeatureColumnSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Column specs of the dataset's primary table's columns, on which
+     * the model is trained and which are used as the input for predictions.
+     * The
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * as well as, according to dataset's state upon model creation,
+     * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+     * and
+     * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+     * must never be included here.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if set only the columns specified are
+     *        used, otherwise all primary table's columns (except the ones listed
+     *        above) are used for the training and prediction input.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public Builder addInputFeatureColumnSpecs( + int index, com.google.cloud.automl.v1beta1.ColumnSpec.Builder builderForValue) { + if (inputFeatureColumnSpecsBuilder_ == null) { + ensureInputFeatureColumnSpecsIsMutable(); + inputFeatureColumnSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + inputFeatureColumnSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Column specs of the dataset's primary table's columns, on which
+     * the model is trained and which are used as the input for predictions.
+     * The
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * as well as, according to dataset's state upon model creation,
+     * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+     * and
+     * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+     * must never be included here.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if set only the columns specified are
+     *        used, otherwise all primary table's columns (except the ones listed
+     *        above) are used for the training and prediction input.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public Builder addAllInputFeatureColumnSpecs( + java.lang.Iterable values) { + if (inputFeatureColumnSpecsBuilder_ == null) { + ensureInputFeatureColumnSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputFeatureColumnSpecs_); + onChanged(); + } else { + inputFeatureColumnSpecsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Column specs of the dataset's primary table's columns, on which
+     * the model is trained and which are used as the input for predictions.
+     * The
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * as well as, according to dataset's state upon model creation,
+     * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+     * and
+     * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+     * must never be included here.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if set only the columns specified are
+     *        used, otherwise all primary table's columns (except the ones listed
+     *        above) are used for the training and prediction input.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public Builder clearInputFeatureColumnSpecs() { + if (inputFeatureColumnSpecsBuilder_ == null) { + inputFeatureColumnSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + inputFeatureColumnSpecsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Column specs of the dataset's primary table's columns, on which
+     * the model is trained and which are used as the input for predictions.
+     * The
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * as well as, according to dataset's state upon model creation,
+     * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+     * and
+     * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+     * must never be included here.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if set only the columns specified are
+     *        used, otherwise all primary table's columns (except the ones listed
+     *        above) are used for the training and prediction input.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public Builder removeInputFeatureColumnSpecs(int index) { + if (inputFeatureColumnSpecsBuilder_ == null) { + ensureInputFeatureColumnSpecsIsMutable(); + inputFeatureColumnSpecs_.remove(index); + onChanged(); + } else { + inputFeatureColumnSpecsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Column specs of the dataset's primary table's columns, on which
+     * the model is trained and which are used as the input for predictions.
+     * The
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * as well as, according to dataset's state upon model creation,
+     * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+     * and
+     * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+     * must never be included here.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if set only the columns specified are
+     *        used, otherwise all primary table's columns (except the ones listed
+     *        above) are used for the training and prediction input.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public com.google.cloud.automl.v1beta1.ColumnSpec.Builder getInputFeatureColumnSpecsBuilder( + int index) { + return getInputFeatureColumnSpecsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Column specs of the dataset's primary table's columns, on which
+     * the model is trained and which are used as the input for predictions.
+     * The
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * as well as, according to dataset's state upon model creation,
+     * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+     * and
+     * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+     * must never be included here.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if set only the columns specified are
+     *        used, otherwise all primary table's columns (except the ones listed
+     *        above) are used for the training and prediction input.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getInputFeatureColumnSpecsOrBuilder( + int index) { + if (inputFeatureColumnSpecsBuilder_ == null) { + return inputFeatureColumnSpecs_.get(index); + } else { + return inputFeatureColumnSpecsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Column specs of the dataset's primary table's columns, on which
+     * the model is trained and which are used as the input for predictions.
+     * The
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * as well as, according to dataset's state upon model creation,
+     * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+     * and
+     * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+     * must never be included here.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if set only the columns specified are
+     *        used, otherwise all primary table's columns (except the ones listed
+     *        above) are used for the training and prediction input.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public java.util.List + getInputFeatureColumnSpecsOrBuilderList() { + if (inputFeatureColumnSpecsBuilder_ != null) { + return inputFeatureColumnSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputFeatureColumnSpecs_); + } + } + /** + * + * + *
+     * Column specs of the dataset's primary table's columns, on which
+     * the model is trained and which are used as the input for predictions.
+     * The
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * as well as, according to dataset's state upon model creation,
+     * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+     * and
+     * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+     * must never be included here.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if set only the columns specified are
+     *        used, otherwise all primary table's columns (except the ones listed
+     *        above) are used for the training and prediction input.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public com.google.cloud.automl.v1beta1.ColumnSpec.Builder addInputFeatureColumnSpecsBuilder() { + return getInputFeatureColumnSpecsFieldBuilder() + .addBuilder(com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance()); + } + /** + * + * + *
+     * Column specs of the dataset's primary table's columns, on which
+     * the model is trained and which are used as the input for predictions.
+     * The
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * as well as, according to dataset's state upon model creation,
+     * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+     * and
+     * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+     * must never be included here.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if set only the columns specified are
+     *        used, otherwise all primary table's columns (except the ones listed
+     *        above) are used for the training and prediction input.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public com.google.cloud.automl.v1beta1.ColumnSpec.Builder addInputFeatureColumnSpecsBuilder( + int index) { + return getInputFeatureColumnSpecsFieldBuilder() + .addBuilder(index, com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance()); + } + /** + * + * + *
+     * Column specs of the dataset's primary table's columns, on which
+     * the model is trained and which are used as the input for predictions.
+     * The
+     * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+     * as well as, according to dataset's state upon model creation,
+     * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+     * and
+     * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+     * must never be included here.
+     * Only 3 fields are used:
+     * name - May be set on CreateModel, if set only the columns specified are
+     *        used, otherwise all primary table's columns (except the ones listed
+     *        above) are used for the training and prediction input.
+     * display_name - Output only.
+     * data_type - Output only.
+     * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + public java.util.List + getInputFeatureColumnSpecsBuilderList() { + return getInputFeatureColumnSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.ColumnSpec, + com.google.cloud.automl.v1beta1.ColumnSpec.Builder, + com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder> + getInputFeatureColumnSpecsFieldBuilder() { + if (inputFeatureColumnSpecsBuilder_ == null) { + inputFeatureColumnSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.ColumnSpec, + com.google.cloud.automl.v1beta1.ColumnSpec.Builder, + com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder>( + inputFeatureColumnSpecs_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + inputFeatureColumnSpecs_ = null; + } + return inputFeatureColumnSpecsBuilder_; + } + + private java.lang.Object optimizationObjective_ = ""; + /** + * + * + *
+     * Objective function the model is optimizing towards. The training process
+     * creates a model that maximizes/minimizes the value of the objective
+     * function over the validation set.
+     * The supported optimization objectives depend on the prediction_type.
+     * If the field is not set, a default objective function is used.
+     * CLASSIFICATION_BINARY:
+     *   "MAXIMIZE_AU_ROC" (default) - Maximize the area under the receiver
+     *                                 operating characteristic (ROC) curve.
+     *   "MINIMIZE_LOG_LOSS" - Minimize log loss.
+     *   "MAXIMIZE_AU_PRC" - Maximize the area under the precision-recall curve.
+     * CLASSIFICATION_MULTI_CLASS :
+     *   "MINIMIZE_LOG_LOSS" (default) - Minimize log loss.
+     * CLASSIFICATION_MULTI_LABEL:
+     *   "MINIMIZE_LOG_LOSS" (default) - Minimize log loss.
+     * REGRESSION:
+     *   "MINIMIZE_RMSE" (default) - Minimize root-mean-squared error (RMSE).
+     *   "MINIMIZE_MAE" - Minimize mean-absolute error (MAE).
+     *   "MINIMIZE_RMSLE" - Minimize root-mean-squared log error (RMSLE).
+     * FORECASTING:
+     *   "MINIMIZE_RMSE" (default) - Minimize root-mean-squared error (RMSE).
+     *   "MINIMIZE_MAE" - Minimize mean-absolute error (MAE).
+     * 
+ * + * string optimization_objective = 4; + */ + public java.lang.String getOptimizationObjective() { + java.lang.Object ref = optimizationObjective_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + optimizationObjective_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Objective function the model is optimizing towards. The training process
+     * creates a model that maximizes/minimizes the value of the objective
+     * function over the validation set.
+     * The supported optimization objectives depend on the prediction_type.
+     * If the field is not set, a default objective function is used.
+     * CLASSIFICATION_BINARY:
+     *   "MAXIMIZE_AU_ROC" (default) - Maximize the area under the receiver
+     *                                 operating characteristic (ROC) curve.
+     *   "MINIMIZE_LOG_LOSS" - Minimize log loss.
+     *   "MAXIMIZE_AU_PRC" - Maximize the area under the precision-recall curve.
+     * CLASSIFICATION_MULTI_CLASS :
+     *   "MINIMIZE_LOG_LOSS" (default) - Minimize log loss.
+     * CLASSIFICATION_MULTI_LABEL:
+     *   "MINIMIZE_LOG_LOSS" (default) - Minimize log loss.
+     * REGRESSION:
+     *   "MINIMIZE_RMSE" (default) - Minimize root-mean-squared error (RMSE).
+     *   "MINIMIZE_MAE" - Minimize mean-absolute error (MAE).
+     *   "MINIMIZE_RMSLE" - Minimize root-mean-squared log error (RMSLE).
+     * FORECASTING:
+     *   "MINIMIZE_RMSE" (default) - Minimize root-mean-squared error (RMSE).
+     *   "MINIMIZE_MAE" - Minimize mean-absolute error (MAE).
+     * 
+ * + * string optimization_objective = 4; + */ + public com.google.protobuf.ByteString getOptimizationObjectiveBytes() { + java.lang.Object ref = optimizationObjective_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + optimizationObjective_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Objective function the model is optimizing towards. The training process
+     * creates a model that maximizes/minimizes the value of the objective
+     * function over the validation set.
+     * The supported optimization objectives depend on the prediction_type.
+     * If the field is not set, a default objective function is used.
+     * CLASSIFICATION_BINARY:
+     *   "MAXIMIZE_AU_ROC" (default) - Maximize the area under the receiver
+     *                                 operating characteristic (ROC) curve.
+     *   "MINIMIZE_LOG_LOSS" - Minimize log loss.
+     *   "MAXIMIZE_AU_PRC" - Maximize the area under the precision-recall curve.
+     * CLASSIFICATION_MULTI_CLASS :
+     *   "MINIMIZE_LOG_LOSS" (default) - Minimize log loss.
+     * CLASSIFICATION_MULTI_LABEL:
+     *   "MINIMIZE_LOG_LOSS" (default) - Minimize log loss.
+     * REGRESSION:
+     *   "MINIMIZE_RMSE" (default) - Minimize root-mean-squared error (RMSE).
+     *   "MINIMIZE_MAE" - Minimize mean-absolute error (MAE).
+     *   "MINIMIZE_RMSLE" - Minimize root-mean-squared log error (RMSLE).
+     * FORECASTING:
+     *   "MINIMIZE_RMSE" (default) - Minimize root-mean-squared error (RMSE).
+     *   "MINIMIZE_MAE" - Minimize mean-absolute error (MAE).
+     * 
+ * + * string optimization_objective = 4; + */ + public Builder setOptimizationObjective(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + optimizationObjective_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Objective function the model is optimizing towards. The training process
+     * creates a model that maximizes/minimizes the value of the objective
+     * function over the validation set.
+     * The supported optimization objectives depend on the prediction_type.
+     * If the field is not set, a default objective function is used.
+     * CLASSIFICATION_BINARY:
+     *   "MAXIMIZE_AU_ROC" (default) - Maximize the area under the receiver
+     *                                 operating characteristic (ROC) curve.
+     *   "MINIMIZE_LOG_LOSS" - Minimize log loss.
+     *   "MAXIMIZE_AU_PRC" - Maximize the area under the precision-recall curve.
+     * CLASSIFICATION_MULTI_CLASS :
+     *   "MINIMIZE_LOG_LOSS" (default) - Minimize log loss.
+     * CLASSIFICATION_MULTI_LABEL:
+     *   "MINIMIZE_LOG_LOSS" (default) - Minimize log loss.
+     * REGRESSION:
+     *   "MINIMIZE_RMSE" (default) - Minimize root-mean-squared error (RMSE).
+     *   "MINIMIZE_MAE" - Minimize mean-absolute error (MAE).
+     *   "MINIMIZE_RMSLE" - Minimize root-mean-squared log error (RMSLE).
+     * FORECASTING:
+     *   "MINIMIZE_RMSE" (default) - Minimize root-mean-squared error (RMSE).
+     *   "MINIMIZE_MAE" - Minimize mean-absolute error (MAE).
+     * 
+ * + * string optimization_objective = 4; + */ + public Builder clearOptimizationObjective() { + + optimizationObjective_ = getDefaultInstance().getOptimizationObjective(); + onChanged(); + return this; + } + /** + * + * + *
+     * Objective function the model is optimizing towards. The training process
+     * creates a model that maximizes/minimizes the value of the objective
+     * function over the validation set.
+     * The supported optimization objectives depend on the prediction_type.
+     * If the field is not set, a default objective function is used.
+     * CLASSIFICATION_BINARY:
+     *   "MAXIMIZE_AU_ROC" (default) - Maximize the area under the receiver
+     *                                 operating characteristic (ROC) curve.
+     *   "MINIMIZE_LOG_LOSS" - Minimize log loss.
+     *   "MAXIMIZE_AU_PRC" - Maximize the area under the precision-recall curve.
+     * CLASSIFICATION_MULTI_CLASS :
+     *   "MINIMIZE_LOG_LOSS" (default) - Minimize log loss.
+     * CLASSIFICATION_MULTI_LABEL:
+     *   "MINIMIZE_LOG_LOSS" (default) - Minimize log loss.
+     * REGRESSION:
+     *   "MINIMIZE_RMSE" (default) - Minimize root-mean-squared error (RMSE).
+     *   "MINIMIZE_MAE" - Minimize mean-absolute error (MAE).
+     *   "MINIMIZE_RMSLE" - Minimize root-mean-squared log error (RMSLE).
+     * FORECASTING:
+     *   "MINIMIZE_RMSE" (default) - Minimize root-mean-squared error (RMSE).
+     *   "MINIMIZE_MAE" - Minimize mean-absolute error (MAE).
+     * 
+ * + * string optimization_objective = 4; + */ + public Builder setOptimizationObjectiveBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + optimizationObjective_ = value; + onChanged(); + return this; + } + + private java.util.List + tablesModelColumnInfo_ = java.util.Collections.emptyList(); + + private void ensureTablesModelColumnInfoIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + tablesModelColumnInfo_ = + new java.util.ArrayList( + tablesModelColumnInfo_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.TablesModelColumnInfo, + com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder, + com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder> + tablesModelColumnInfoBuilder_; + + /** + * + * + *
+     * Output only. Auxiliary information for each of the
+     * input_feature_column_specs, with respect to this particular model.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public java.util.List + getTablesModelColumnInfoList() { + if (tablesModelColumnInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(tablesModelColumnInfo_); + } else { + return tablesModelColumnInfoBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the
+     * input_feature_column_specs, with respect to this particular model.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public int getTablesModelColumnInfoCount() { + if (tablesModelColumnInfoBuilder_ == null) { + return tablesModelColumnInfo_.size(); + } else { + return tablesModelColumnInfoBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the
+     * input_feature_column_specs, with respect to this particular model.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColumnInfo( + int index) { + if (tablesModelColumnInfoBuilder_ == null) { + return tablesModelColumnInfo_.get(index); + } else { + return tablesModelColumnInfoBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the
+     * input_feature_column_specs, with respect to this particular model.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public Builder setTablesModelColumnInfo( + int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo value) { + if (tablesModelColumnInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTablesModelColumnInfoIsMutable(); + tablesModelColumnInfo_.set(index, value); + onChanged(); + } else { + tablesModelColumnInfoBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the
+     * input_feature_column_specs, with respect to this particular model.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public Builder setTablesModelColumnInfo( + int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder builderForValue) { + if (tablesModelColumnInfoBuilder_ == null) { + ensureTablesModelColumnInfoIsMutable(); + tablesModelColumnInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + tablesModelColumnInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the
+     * input_feature_column_specs, with respect to this particular model.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public Builder addTablesModelColumnInfo( + com.google.cloud.automl.v1beta1.TablesModelColumnInfo value) { + if (tablesModelColumnInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTablesModelColumnInfoIsMutable(); + tablesModelColumnInfo_.add(value); + onChanged(); + } else { + tablesModelColumnInfoBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the
+     * input_feature_column_specs, with respect to this particular model.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public Builder addTablesModelColumnInfo( + int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo value) { + if (tablesModelColumnInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTablesModelColumnInfoIsMutable(); + tablesModelColumnInfo_.add(index, value); + onChanged(); + } else { + tablesModelColumnInfoBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the
+     * input_feature_column_specs, with respect to this particular model.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public Builder addTablesModelColumnInfo( + com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder builderForValue) { + if (tablesModelColumnInfoBuilder_ == null) { + ensureTablesModelColumnInfoIsMutable(); + tablesModelColumnInfo_.add(builderForValue.build()); + onChanged(); + } else { + tablesModelColumnInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the
+     * input_feature_column_specs, with respect to this particular model.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public Builder addTablesModelColumnInfo( + int index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder builderForValue) { + if (tablesModelColumnInfoBuilder_ == null) { + ensureTablesModelColumnInfoIsMutable(); + tablesModelColumnInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + tablesModelColumnInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the
+     * input_feature_column_specs, with respect to this particular model.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public Builder addAllTablesModelColumnInfo( + java.lang.Iterable + values) { + if (tablesModelColumnInfoBuilder_ == null) { + ensureTablesModelColumnInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tablesModelColumnInfo_); + onChanged(); + } else { + tablesModelColumnInfoBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the
+     * input_feature_column_specs, with respect to this particular model.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public Builder clearTablesModelColumnInfo() { + if (tablesModelColumnInfoBuilder_ == null) { + tablesModelColumnInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + tablesModelColumnInfoBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the
+     * input_feature_column_specs, with respect to this particular model.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public Builder removeTablesModelColumnInfo(int index) { + if (tablesModelColumnInfoBuilder_ == null) { + ensureTablesModelColumnInfoIsMutable(); + tablesModelColumnInfo_.remove(index); + onChanged(); + } else { + tablesModelColumnInfoBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the
+     * input_feature_column_specs, with respect to this particular model.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder + getTablesModelColumnInfoBuilder(int index) { + return getTablesModelColumnInfoFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the
+     * input_feature_column_specs, with respect to this particular model.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder + getTablesModelColumnInfoOrBuilder(int index) { + if (tablesModelColumnInfoBuilder_ == null) { + return tablesModelColumnInfo_.get(index); + } else { + return tablesModelColumnInfoBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the
+     * input_feature_column_specs, with respect to this particular model.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public java.util.List + getTablesModelColumnInfoOrBuilderList() { + if (tablesModelColumnInfoBuilder_ != null) { + return tablesModelColumnInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tablesModelColumnInfo_); + } + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the
+     * input_feature_column_specs, with respect to this particular model.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder + addTablesModelColumnInfoBuilder() { + return getTablesModelColumnInfoFieldBuilder() + .addBuilder(com.google.cloud.automl.v1beta1.TablesModelColumnInfo.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the
+     * input_feature_column_specs, with respect to this particular model.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder + addTablesModelColumnInfoBuilder(int index) { + return getTablesModelColumnInfoFieldBuilder() + .addBuilder( + index, com.google.cloud.automl.v1beta1.TablesModelColumnInfo.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Auxiliary information for each of the
+     * input_feature_column_specs, with respect to this particular model.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + public java.util.List + getTablesModelColumnInfoBuilderList() { + return getTablesModelColumnInfoFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.TablesModelColumnInfo, + com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder, + com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder> + getTablesModelColumnInfoFieldBuilder() { + if (tablesModelColumnInfoBuilder_ == null) { + tablesModelColumnInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.TablesModelColumnInfo, + com.google.cloud.automl.v1beta1.TablesModelColumnInfo.Builder, + com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder>( + tablesModelColumnInfo_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + tablesModelColumnInfo_ = null; + } + return tablesModelColumnInfoBuilder_; + } + + private long trainBudgetMilliNodeHours_; + /** + * + * + *
+     * The train budget of creating this model, expressed in milli node hours
+     * i.e. 1,000 value in this field means 1 node hour.
+     * The training cost of the model will not exceed this budget. The final cost
+     * will be attempted to be close to the budget, though may end up being (even)
+     * noticeably smaller - at the backend's discretion. This especially may
+     * happen when further model training ceases to provide any improvements.
+     * If the budget is set to a value known to be insufficient to train a
+     * model for the given dataset, the training won't be attempted and
+     * will error.
+     * 
+ * + * int64 train_budget_milli_node_hours = 6; + */ + public long getTrainBudgetMilliNodeHours() { + return trainBudgetMilliNodeHours_; + } + /** + * + * + *
+     * The train budget of creating this model, expressed in milli node hours
+     * i.e. 1,000 value in this field means 1 node hour.
+     * The training cost of the model will not exceed this budget. The final cost
+     * will be attempted to be close to the budget, though may end up being (even)
+     * noticeably smaller - at the backend's discretion. This especially may
+     * happen when further model training ceases to provide any improvements.
+     * If the budget is set to a value known to be insufficient to train a
+     * model for the given dataset, the training won't be attempted and
+     * will error.
+     * 
+ * + * int64 train_budget_milli_node_hours = 6; + */ + public Builder setTrainBudgetMilliNodeHours(long value) { + + trainBudgetMilliNodeHours_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The train budget of creating this model, expressed in milli node hours
+     * i.e. 1,000 value in this field means 1 node hour.
+     * The training cost of the model will not exceed this budget. The final cost
+     * will be attempted to be close to the budget, though may end up being (even)
+     * noticeably smaller - at the backend's discretion. This especially may
+     * happen when further model training ceases to provide any improvements.
+     * If the budget is set to a value known to be insufficient to train a
+     * model for the given dataset, the training won't be attempted and
+     * will error.
+     * 
+ * + * int64 train_budget_milli_node_hours = 6; + */ + public Builder clearTrainBudgetMilliNodeHours() { + + trainBudgetMilliNodeHours_ = 0L; + onChanged(); + return this; + } + + private long trainCostMilliNodeHours_; + /** + * + * + *
+     * Output only. The actual training cost of the model, expressed in milli
+     * node hours, i.e. 1,000 value in this field means 1 node hour. Guaranteed
+     * to not exceed the train budget.
+     * 
+ * + * int64 train_cost_milli_node_hours = 7; + */ + public long getTrainCostMilliNodeHours() { + return trainCostMilliNodeHours_; + } + /** + * + * + *
+     * Output only. The actual training cost of the model, expressed in milli
+     * node hours, i.e. 1,000 value in this field means 1 node hour. Guaranteed
+     * to not exceed the train budget.
+     * 
+ * + * int64 train_cost_milli_node_hours = 7; + */ + public Builder setTrainCostMilliNodeHours(long value) { + + trainCostMilliNodeHours_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The actual training cost of the model, expressed in milli
+     * node hours, i.e. 1,000 value in this field means 1 node hour. Guaranteed
+     * to not exceed the train budget.
+     * 
+ * + * int64 train_cost_milli_node_hours = 7; + */ + public Builder clearTrainCostMilliNodeHours() { + + trainCostMilliNodeHours_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TablesModelMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TablesModelMetadata) + private static final com.google.cloud.automl.v1beta1.TablesModelMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TablesModelMetadata(); + } + + public static com.google.cloud.automl.v1beta1.TablesModelMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TablesModelMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TablesModelMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TablesModelMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadataOrBuilder.java new file mode 100644 index 000000000000..18449baa8085 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TablesModelMetadataOrBuilder.java @@ -0,0 +1,345 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/tables.proto + +package com.google.cloud.automl.v1beta1; + +public interface TablesModelMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TablesModelMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Column spec of the dataset's primary table's column the model is
+   * predicting. Snapshotted when model creation started.
+   * Only 3 fields are used:
+   * name - May be set on CreateModel, if it's not then the ColumnSpec
+   *        corresponding to the current target_column_spec_id of the dataset
+   *        the model is trained from is used.
+   *        If neither is set, CreateModel will error.
+   * display_name - Output only.
+   * data_type - Output only.
+   * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; + */ + boolean hasTargetColumnSpec(); + /** + * + * + *
+   * Column spec of the dataset's primary table's column the model is
+   * predicting. Snapshotted when model creation started.
+   * Only 3 fields are used:
+   * name - May be set on CreateModel, if it's not then the ColumnSpec
+   *        corresponding to the current target_column_spec_id of the dataset
+   *        the model is trained from is used.
+   *        If neither is set, CreateModel will error.
+   * display_name - Output only.
+   * data_type - Output only.
+   * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; + */ + com.google.cloud.automl.v1beta1.ColumnSpec getTargetColumnSpec(); + /** + * + * + *
+   * Column spec of the dataset's primary table's column the model is
+   * predicting. Snapshotted when model creation started.
+   * Only 3 fields are used:
+   * name - May be set on CreateModel, if it's not then the ColumnSpec
+   *        corresponding to the current target_column_spec_id of the dataset
+   *        the model is trained from is used.
+   *        If neither is set, CreateModel will error.
+   * display_name - Output only.
+   * data_type - Output only.
+   * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec target_column_spec = 2; + */ + com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getTargetColumnSpecOrBuilder(); + + /** + * + * + *
+   * Column specs of the dataset's primary table's columns, on which
+   * the model is trained and which are used as the input for predictions.
+   * The
+   * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * as well as, according to dataset's state upon model creation,
+   * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+   * and
+   * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+   * must never be included here.
+   * Only 3 fields are used:
+   * name - May be set on CreateModel, if set only the columns specified are
+   *        used, otherwise all primary table's columns (except the ones listed
+   *        above) are used for the training and prediction input.
+   * display_name - Output only.
+   * data_type - Output only.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + java.util.List getInputFeatureColumnSpecsList(); + /** + * + * + *
+   * Column specs of the dataset's primary table's columns, on which
+   * the model is trained and which are used as the input for predictions.
+   * The
+   * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * as well as, according to dataset's state upon model creation,
+   * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+   * and
+   * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+   * must never be included here.
+   * Only 3 fields are used:
+   * name - May be set on CreateModel, if set only the columns specified are
+   *        used, otherwise all primary table's columns (except the ones listed
+   *        above) are used for the training and prediction input.
+   * display_name - Output only.
+   * data_type - Output only.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + com.google.cloud.automl.v1beta1.ColumnSpec getInputFeatureColumnSpecs(int index); + /** + * + * + *
+   * Column specs of the dataset's primary table's columns, on which
+   * the model is trained and which are used as the input for predictions.
+   * The
+   * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * as well as, according to dataset's state upon model creation,
+   * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+   * and
+   * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+   * must never be included here.
+   * Only 3 fields are used:
+   * name - May be set on CreateModel, if set only the columns specified are
+   *        used, otherwise all primary table's columns (except the ones listed
+   *        above) are used for the training and prediction input.
+   * display_name - Output only.
+   * data_type - Output only.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + int getInputFeatureColumnSpecsCount(); + /** + * + * + *
+   * Column specs of the dataset's primary table's columns, on which
+   * the model is trained and which are used as the input for predictions.
+   * The
+   * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * as well as, according to dataset's state upon model creation,
+   * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+   * and
+   * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+   * must never be included here.
+   * Only 3 fields are used:
+   * name - May be set on CreateModel, if set only the columns specified are
+   *        used, otherwise all primary table's columns (except the ones listed
+   *        above) are used for the training and prediction input.
+   * display_name - Output only.
+   * data_type - Output only.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + java.util.List + getInputFeatureColumnSpecsOrBuilderList(); + /** + * + * + *
+   * Column specs of the dataset's primary table's columns, on which
+   * the model is trained and which are used as the input for predictions.
+   * The
+   * [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]
+   * as well as, according to dataset's state upon model creation,
+   * [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id],
+   * and
+   * [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id]
+   * must never be included here.
+   * Only 3 fields are used:
+   * name - May be set on CreateModel, if set only the columns specified are
+   *        used, otherwise all primary table's columns (except the ones listed
+   *        above) are used for the training and prediction input.
+   * display_name - Output only.
+   * data_type - Output only.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.ColumnSpec input_feature_column_specs = 3; + */ + com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getInputFeatureColumnSpecsOrBuilder( + int index); + + /** + * + * + *
+   * Objective function the model is optimizing towards. The training process
+   * creates a model that maximizes/minimizes the value of the objective
+   * function over the validation set.
+   * The supported optimization objectives depend on the prediction_type.
+   * If the field is not set, a default objective function is used.
+   * CLASSIFICATION_BINARY:
+   *   "MAXIMIZE_AU_ROC" (default) - Maximize the area under the receiver
+   *                                 operating characteristic (ROC) curve.
+   *   "MINIMIZE_LOG_LOSS" - Minimize log loss.
+   *   "MAXIMIZE_AU_PRC" - Maximize the area under the precision-recall curve.
+   * CLASSIFICATION_MULTI_CLASS :
+   *   "MINIMIZE_LOG_LOSS" (default) - Minimize log loss.
+   * CLASSIFICATION_MULTI_LABEL:
+   *   "MINIMIZE_LOG_LOSS" (default) - Minimize log loss.
+   * REGRESSION:
+   *   "MINIMIZE_RMSE" (default) - Minimize root-mean-squared error (RMSE).
+   *   "MINIMIZE_MAE" - Minimize mean-absolute error (MAE).
+   *   "MINIMIZE_RMSLE" - Minimize root-mean-squared log error (RMSLE).
+   * FORECASTING:
+   *   "MINIMIZE_RMSE" (default) - Minimize root-mean-squared error (RMSE).
+   *   "MINIMIZE_MAE" - Minimize mean-absolute error (MAE).
+   * 
+ * + * string optimization_objective = 4; + */ + java.lang.String getOptimizationObjective(); + /** + * + * + *
+   * Objective function the model is optimizing towards. The training process
+   * creates a model that maximizes/minimizes the value of the objective
+   * function over the validation set.
+   * The supported optimization objectives depend on the prediction_type.
+   * If the field is not set, a default objective function is used.
+   * CLASSIFICATION_BINARY:
+   *   "MAXIMIZE_AU_ROC" (default) - Maximize the area under the receiver
+   *                                 operating characteristic (ROC) curve.
+   *   "MINIMIZE_LOG_LOSS" - Minimize log loss.
+   *   "MAXIMIZE_AU_PRC" - Maximize the area under the precision-recall curve.
+   * CLASSIFICATION_MULTI_CLASS :
+   *   "MINIMIZE_LOG_LOSS" (default) - Minimize log loss.
+   * CLASSIFICATION_MULTI_LABEL:
+   *   "MINIMIZE_LOG_LOSS" (default) - Minimize log loss.
+   * REGRESSION:
+   *   "MINIMIZE_RMSE" (default) - Minimize root-mean-squared error (RMSE).
+   *   "MINIMIZE_MAE" - Minimize mean-absolute error (MAE).
+   *   "MINIMIZE_RMSLE" - Minimize root-mean-squared log error (RMSLE).
+   * FORECASTING:
+   *   "MINIMIZE_RMSE" (default) - Minimize root-mean-squared error (RMSE).
+   *   "MINIMIZE_MAE" - Minimize mean-absolute error (MAE).
+   * 
+ * + * string optimization_objective = 4; + */ + com.google.protobuf.ByteString getOptimizationObjectiveBytes(); + + /** + * + * + *
+   * Output only. Auxiliary information for each of the
+   * input_feature_column_specs, with respect to this particular model.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + java.util.List + getTablesModelColumnInfoList(); + /** + * + * + *
+   * Output only. Auxiliary information for each of the
+   * input_feature_column_specs, with respect to this particular model.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + com.google.cloud.automl.v1beta1.TablesModelColumnInfo getTablesModelColumnInfo(int index); + /** + * + * + *
+   * Output only. Auxiliary information for each of the
+   * input_feature_column_specs, with respect to this particular model.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + int getTablesModelColumnInfoCount(); + /** + * + * + *
+   * Output only. Auxiliary information for each of the
+   * input_feature_column_specs, with respect to this particular model.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + java.util.List + getTablesModelColumnInfoOrBuilderList(); + /** + * + * + *
+   * Output only. Auxiliary information for each of the
+   * input_feature_column_specs, with respect to this particular model.
+   * 
+ * + * repeated .google.cloud.automl.v1beta1.TablesModelColumnInfo tables_model_column_info = 5; + * + */ + com.google.cloud.automl.v1beta1.TablesModelColumnInfoOrBuilder getTablesModelColumnInfoOrBuilder( + int index); + + /** + * + * + *
+   * The train budget of creating this model, expressed in milli node hours
+   * i.e. 1,000 value in this field means 1 node hour.
+   * The training cost of the model will not exceed this budget. The final cost
+   * will be attempted to be close to the budget, though may end up being (even)
+   * noticeably smaller - at the backend's discretion. This especially may
+   * happen when further model training ceases to provide any improvements.
+   * If the budget is set to a value known to be insufficient to train a
+   * model for the given dataset, the training won't be attempted and
+   * will error.
+   * 
+ * + * int64 train_budget_milli_node_hours = 6; + */ + long getTrainBudgetMilliNodeHours(); + + /** + * + * + *
+   * Output only. The actual training cost of the model, expressed in milli
+   * node hours, i.e. 1,000 value in this field means 1 node hour. Guaranteed
+   * to not exceed the train budget.
+   * 
+ * + * int64 train_cost_milli_node_hours = 7; + */ + long getTrainCostMilliNodeHours(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Temporal.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Temporal.java new file mode 100644 index 000000000000..a0aaf11f85dc --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/Temporal.java @@ -0,0 +1,67 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/temporal.proto + +package com.google.cloud.automl.v1beta1; + +public final class Temporal { + private Temporal() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TimeSegment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TimeSegment_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n*google/cloud/automl/v1beta1/temporal.p" + + "roto\022\033google.cloud.automl.v1beta1\032\034googl" + + "e/api/annotations.proto\032\036google/protobuf" + + "/duration.proto\"w\n\013TimeSegment\0224\n\021start_" + + "time_offset\030\001 \001(\0132\031.google.protobuf.Dura" + + "tion\0222\n\017end_time_offset\030\002 \001(\0132\031.google.p" + + "rotobuf.DurationB\204\001\n\037com.google.cloud.au" + + "toml.v1beta1P\001ZAgoogle.golang.org/genpro" + + "to/googleapis/cloud/automl/v1beta1;autom" + + "l\312\002\033Google\\Cloud\\AutoMl\\V1beta1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_automl_v1beta1_TimeSegment_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_TimeSegment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TimeSegment_descriptor, + new java.lang.String[] { + "StartTimeOffset", "EndTimeOffset", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtraction.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtraction.java new file mode 100644 index 000000000000..7e7f63a19c7a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtraction.java @@ -0,0 +1,101 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/text_extraction.proto + +package com.google.cloud.automl.v1beta1; + +public final class TextExtraction { + private TextExtraction() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TextExtractionAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TextExtractionAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TextExtractionEvaluationMetrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TextExtractionEvaluationMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/automl/v1beta1/text_extra" + + "ction.proto\022\033google.cloud.automl.v1beta1" + + "\032\034google/api/annotations.proto\032.google/c" + + "loud/automl/v1beta1/text_segment.proto\"i" + + "\n\030TextExtractionAnnotation\022\r\n\005score\030\001 \001(" + + "\002\022>\n\014text_segment\030\003 \001(\0132(.google.cloud.a" + + "utoml.v1beta1.TextSegment\"\227\002\n\037TextExtrac" + + "tionEvaluationMetrics\022\016\n\006au_prc\030\001 \001(\002\022w\n" + + "\032confidence_metrics_entries\030\002 \003(\0132S.goog" + + "le.cloud.automl.v1beta1.TextExtractionEv" + + "aluationMetrics.ConfidenceMetricsEntry\032k" + + "\n\026ConfidenceMetricsEntry\022\034\n\024confidence_t" + + "hreshold\030\001 \001(\002\022\016\n\006recall\030\003 \001(\002\022\021\n\tprecis" + + "ion\030\004 \001(\002\022\020\n\010f1_score\030\005 \001(\002B\204\001\n\037com.goog" + + "le.cloud.automl.v1beta1P\001ZAgoogle.golang" + + ".org/genproto/googleapis/cloud/automl/v1" + + "beta1;automl\312\002\033Google\\Cloud\\AutoMl\\V1bet" + + "a1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.automl.v1beta1.TextSegmentProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_automl_v1beta1_TextExtractionAnnotation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_TextExtractionAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TextExtractionAnnotation_descriptor, + new java.lang.String[] { + "Score", "TextSegment", + }); + internal_static_google_cloud_automl_v1beta1_TextExtractionEvaluationMetrics_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_TextExtractionEvaluationMetrics_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TextExtractionEvaluationMetrics_descriptor, + new java.lang.String[] { + "AuPrc", "ConfidenceMetricsEntries", + }); + internal_static_google_cloud_automl_v1beta1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_descriptor = + internal_static_google_cloud_automl_v1beta1_TextExtractionEvaluationMetrics_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_automl_v1beta1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_descriptor, + new java.lang.String[] { + "ConfidenceThreshold", "Recall", "Precision", "F1Score", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.automl.v1beta1.TextSegmentProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotation.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotation.java new file mode 100644 index 000000000000..7b96f2e4bba0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotation.java @@ -0,0 +1,788 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/text_extraction.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Annotation for identifying spans of text.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TextExtractionAnnotation} + */ +public final class TextExtractionAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TextExtractionAnnotation) + TextExtractionAnnotationOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextExtractionAnnotation.newBuilder() to construct. + private TextExtractionAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TextExtractionAnnotation() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TextExtractionAnnotation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + score_ = input.readFloat(); + break; + } + case 26: + { + com.google.cloud.automl.v1beta1.TextSegment.Builder subBuilder = null; + if (textSegment_ != null) { + subBuilder = textSegment_.toBuilder(); + } + textSegment_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TextSegment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(textSegment_); + textSegment_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextExtraction + .internal_static_google_cloud_automl_v1beta1_TextExtractionAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.TextExtraction + .internal_static_google_cloud_automl_v1beta1_TextExtractionAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TextExtractionAnnotation.class, + com.google.cloud.automl.v1beta1.TextExtractionAnnotation.Builder.class); + } + + public static final int SCORE_FIELD_NUMBER = 1; + private float score_; + /** + * + * + *
+   * Output only. A confidence estimate between 0.0 and 1.0. A higher value
+   * means greater confidence in correctness of the annotation.
+   * 
+ * + * float score = 1; + */ + public float getScore() { + return score_; + } + + public static final int TEXT_SEGMENT_FIELD_NUMBER = 3; + private com.google.cloud.automl.v1beta1.TextSegment textSegment_; + /** + * + * + *
+   * Required. The part of the original text to which this annotation pertains.
+   * 
+ * + * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; + */ + public boolean hasTextSegment() { + return textSegment_ != null; + } + /** + * + * + *
+   * Required. The part of the original text to which this annotation pertains.
+   * 
+ * + * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; + */ + public com.google.cloud.automl.v1beta1.TextSegment getTextSegment() { + return textSegment_ == null + ? com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance() + : textSegment_; + } + /** + * + * + *
+   * Required. The part of the original text to which this annotation pertains.
+   * 
+ * + * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; + */ + public com.google.cloud.automl.v1beta1.TextSegmentOrBuilder getTextSegmentOrBuilder() { + return getTextSegment(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (score_ != 0F) { + output.writeFloat(1, score_); + } + if (textSegment_ != null) { + output.writeMessage(3, getTextSegment()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (score_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); + } + if (textSegment_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTextSegment()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.TextExtractionAnnotation)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.TextExtractionAnnotation other = + (com.google.cloud.automl.v1beta1.TextExtractionAnnotation) obj; + + if (java.lang.Float.floatToIntBits(getScore()) + != java.lang.Float.floatToIntBits(other.getScore())) return false; + if (hasTextSegment() != other.hasTextSegment()) return false; + if (hasTextSegment()) { + if (!getTextSegment().equals(other.getTextSegment())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); + if (hasTextSegment()) { + hash = (37 * hash) + TEXT_SEGMENT_FIELD_NUMBER; + hash = (53 * hash) + getTextSegment().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.TextExtractionAnnotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionAnnotation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionAnnotation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionAnnotation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionAnnotation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionAnnotation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionAnnotation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionAnnotation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionAnnotation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionAnnotation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.TextExtractionAnnotation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Annotation for identifying spans of text.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TextExtractionAnnotation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TextExtractionAnnotation) + com.google.cloud.automl.v1beta1.TextExtractionAnnotationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextExtraction + .internal_static_google_cloud_automl_v1beta1_TextExtractionAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.TextExtraction + .internal_static_google_cloud_automl_v1beta1_TextExtractionAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TextExtractionAnnotation.class, + com.google.cloud.automl.v1beta1.TextExtractionAnnotation.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.TextExtractionAnnotation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + score_ = 0F; + + if (textSegmentBuilder_ == null) { + textSegment_ = null; + } else { + textSegment_ = null; + textSegmentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TextExtraction + .internal_static_google_cloud_automl_v1beta1_TextExtractionAnnotation_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextExtractionAnnotation getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.TextExtractionAnnotation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextExtractionAnnotation build() { + com.google.cloud.automl.v1beta1.TextExtractionAnnotation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextExtractionAnnotation buildPartial() { + com.google.cloud.automl.v1beta1.TextExtractionAnnotation result = + new com.google.cloud.automl.v1beta1.TextExtractionAnnotation(this); + result.score_ = score_; + if (textSegmentBuilder_ == null) { + result.textSegment_ = textSegment_; + } else { + result.textSegment_ = textSegmentBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.TextExtractionAnnotation) { + return mergeFrom((com.google.cloud.automl.v1beta1.TextExtractionAnnotation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextExtractionAnnotation other) { + if (other == com.google.cloud.automl.v1beta1.TextExtractionAnnotation.getDefaultInstance()) + return this; + if (other.getScore() != 0F) { + setScore(other.getScore()); + } + if (other.hasTextSegment()) { + mergeTextSegment(other.getTextSegment()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.TextExtractionAnnotation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.TextExtractionAnnotation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private float score_; + /** + * + * + *
+     * Output only. A confidence estimate between 0.0 and 1.0. A higher value
+     * means greater confidence in correctness of the annotation.
+     * 
+ * + * float score = 1; + */ + public float getScore() { + return score_; + } + /** + * + * + *
+     * Output only. A confidence estimate between 0.0 and 1.0. A higher value
+     * means greater confidence in correctness of the annotation.
+     * 
+ * + * float score = 1; + */ + public Builder setScore(float value) { + + score_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. A confidence estimate between 0.0 and 1.0. A higher value
+     * means greater confidence in correctness of the annotation.
+     * 
+ * + * float score = 1; + */ + public Builder clearScore() { + + score_ = 0F; + onChanged(); + return this; + } + + private com.google.cloud.automl.v1beta1.TextSegment textSegment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextSegment, + com.google.cloud.automl.v1beta1.TextSegment.Builder, + com.google.cloud.automl.v1beta1.TextSegmentOrBuilder> + textSegmentBuilder_; + /** + * + * + *
+     * Required. The part of the original text to which this annotation pertains.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; + */ + public boolean hasTextSegment() { + return textSegmentBuilder_ != null || textSegment_ != null; + } + /** + * + * + *
+     * Required. The part of the original text to which this annotation pertains.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; + */ + public com.google.cloud.automl.v1beta1.TextSegment getTextSegment() { + if (textSegmentBuilder_ == null) { + return textSegment_ == null + ? com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance() + : textSegment_; + } else { + return textSegmentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The part of the original text to which this annotation pertains.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; + */ + public Builder setTextSegment(com.google.cloud.automl.v1beta1.TextSegment value) { + if (textSegmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + textSegment_ = value; + onChanged(); + } else { + textSegmentBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The part of the original text to which this annotation pertains.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; + */ + public Builder setTextSegment( + com.google.cloud.automl.v1beta1.TextSegment.Builder builderForValue) { + if (textSegmentBuilder_ == null) { + textSegment_ = builderForValue.build(); + onChanged(); + } else { + textSegmentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The part of the original text to which this annotation pertains.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; + */ + public Builder mergeTextSegment(com.google.cloud.automl.v1beta1.TextSegment value) { + if (textSegmentBuilder_ == null) { + if (textSegment_ != null) { + textSegment_ = + com.google.cloud.automl.v1beta1.TextSegment.newBuilder(textSegment_) + .mergeFrom(value) + .buildPartial(); + } else { + textSegment_ = value; + } + onChanged(); + } else { + textSegmentBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The part of the original text to which this annotation pertains.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; + */ + public Builder clearTextSegment() { + if (textSegmentBuilder_ == null) { + textSegment_ = null; + onChanged(); + } else { + textSegment_ = null; + textSegmentBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The part of the original text to which this annotation pertains.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; + */ + public com.google.cloud.automl.v1beta1.TextSegment.Builder getTextSegmentBuilder() { + + onChanged(); + return getTextSegmentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The part of the original text to which this annotation pertains.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; + */ + public com.google.cloud.automl.v1beta1.TextSegmentOrBuilder getTextSegmentOrBuilder() { + if (textSegmentBuilder_ != null) { + return textSegmentBuilder_.getMessageOrBuilder(); + } else { + return textSegment_ == null + ? com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance() + : textSegment_; + } + } + /** + * + * + *
+     * Required. The part of the original text to which this annotation pertains.
+     * 
+ * + * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextSegment, + com.google.cloud.automl.v1beta1.TextSegment.Builder, + com.google.cloud.automl.v1beta1.TextSegmentOrBuilder> + getTextSegmentFieldBuilder() { + if (textSegmentBuilder_ == null) { + textSegmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextSegment, + com.google.cloud.automl.v1beta1.TextSegment.Builder, + com.google.cloud.automl.v1beta1.TextSegmentOrBuilder>( + getTextSegment(), getParentForChildren(), isClean()); + textSegment_ = null; + } + return textSegmentBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TextExtractionAnnotation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TextExtractionAnnotation) + private static final com.google.cloud.automl.v1beta1.TextExtractionAnnotation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextExtractionAnnotation(); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionAnnotation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextExtractionAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextExtractionAnnotation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextExtractionAnnotation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotationOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotationOrBuilder.java new file mode 100644 index 000000000000..0df79cde079a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionAnnotationOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/text_extraction.proto + +package com.google.cloud.automl.v1beta1; + +public interface TextExtractionAnnotationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TextExtractionAnnotation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. A confidence estimate between 0.0 and 1.0. A higher value
+   * means greater confidence in correctness of the annotation.
+   * 
+ * + * float score = 1; + */ + float getScore(); + + /** + * + * + *
+   * Required. The part of the original text to which this annotation pertains.
+   * 
+ * + * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; + */ + boolean hasTextSegment(); + /** + * + * + *
+   * Required. The part of the original text to which this annotation pertains.
+   * 
+ * + * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; + */ + com.google.cloud.automl.v1beta1.TextSegment getTextSegment(); + /** + * + * + *
+   * Required. The part of the original text to which this annotation pertains.
+   * 
+ * + * .google.cloud.automl.v1beta1.TextSegment text_segment = 3; + */ + com.google.cloud.automl.v1beta1.TextSegmentOrBuilder getTextSegmentOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadata.java new file mode 100644 index 000000000000..64e30d3329ea --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadata.java @@ -0,0 +1,440 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/text.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Dataset metadata that is specific to text extraction
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TextExtractionDatasetMetadata} + */ +public final class TextExtractionDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) + TextExtractionDatasetMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextExtractionDatasetMetadata.newBuilder() to construct. + private TextExtractionDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TextExtractionDatasetMetadata() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TextExtractionDatasetMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextExtractionDatasetMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextExtractionDatasetMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.class, + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata other = + (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Dataset metadata that is specific to text extraction
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TextExtractionDatasetMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextExtractionDatasetMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextExtractionDatasetMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.class, + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextExtractionDatasetMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata build() { + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata buildPartial() { + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata result = + new com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) { + return mergeFrom((com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata other) { + if (other + == com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) + private static final com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata(); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextExtractionDatasetMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextExtractionDatasetMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextExtractionDatasetMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadataOrBuilder.java new file mode 100644 index 000000000000..6788d811cd60 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionDatasetMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/text.proto + +package com.google.cloud.automl.v1beta1; + +public interface TextExtractionDatasetMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TextExtractionDatasetMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetrics.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetrics.java new file mode 100644 index 000000000000..3f6da27efc28 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetrics.java @@ -0,0 +1,2033 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/text_extraction.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Model evaluation metrics for text extraction problems.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics} + */ +public final class TextExtractionEvaluationMetrics extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) + TextExtractionEvaluationMetricsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextExtractionEvaluationMetrics.newBuilder() to construct. + private TextExtractionEvaluationMetrics( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TextExtractionEvaluationMetrics() { + confidenceMetricsEntries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TextExtractionEvaluationMetrics( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + auPrc_ = input.readFloat(); + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + confidenceMetricsEntries_ = + new java.util.ArrayList< + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry>(); + mutable_bitField0_ |= 0x00000002; + } + confidenceMetricsEntries_.add( + input.readMessage( + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + confidenceMetricsEntries_ = + java.util.Collections.unmodifiableList(confidenceMetricsEntries_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextExtraction + .internal_static_google_cloud_automl_v1beta1_TextExtractionEvaluationMetrics_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.TextExtraction + .internal_static_google_cloud_automl_v1beta1_TextExtractionEvaluationMetrics_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.class, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder.class); + } + + public interface ConfidenceMetricsEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The confidence threshold value used to compute the metrics.
+     * Only annotations with score of at least this threshold are considered to
+     * be ones the model would return.
+     * 
+ * + * float confidence_threshold = 1; + */ + float getConfidenceThreshold(); + + /** + * + * + *
+     * Output only. Recall under the given confidence threshold.
+     * 
+ * + * float recall = 3; + */ + float getRecall(); + + /** + * + * + *
+     * Output only. Precision under the given confidence threshold.
+     * 
+ * + * float precision = 4; + */ + float getPrecision(); + + /** + * + * + *
+     * Output only. The harmonic mean of recall and precision.
+     * 
+ * + * float f1_score = 5; + */ + float getF1Score(); + } + /** + * + * + *
+   * Metrics for a single confidence threshold.
+   * 
+ * + * Protobuf type {@code + * google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} + */ + public static final class ConfidenceMetricsEntry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) + ConfidenceMetricsEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConfidenceMetricsEntry.newBuilder() to construct. + private ConfidenceMetricsEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConfidenceMetricsEntry() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ConfidenceMetricsEntry( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + confidenceThreshold_ = input.readFloat(); + break; + } + case 29: + { + recall_ = input.readFloat(); + break; + } + case 37: + { + precision_ = input.readFloat(); + break; + } + case 45: + { + f1Score_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextExtraction + .internal_static_google_cloud_automl_v1beta1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.TextExtraction + .internal_static_google_cloud_automl_v1beta1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .class, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .Builder.class); + } + + public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 1; + private float confidenceThreshold_; + /** + * + * + *
+     * Output only. The confidence threshold value used to compute the metrics.
+     * Only annotations with score of at least this threshold are considered to
+     * be ones the model would return.
+     * 
+ * + * float confidence_threshold = 1; + */ + public float getConfidenceThreshold() { + return confidenceThreshold_; + } + + public static final int RECALL_FIELD_NUMBER = 3; + private float recall_; + /** + * + * + *
+     * Output only. Recall under the given confidence threshold.
+     * 
+ * + * float recall = 3; + */ + public float getRecall() { + return recall_; + } + + public static final int PRECISION_FIELD_NUMBER = 4; + private float precision_; + /** + * + * + *
+     * Output only. Precision under the given confidence threshold.
+     * 
+ * + * float precision = 4; + */ + public float getPrecision() { + return precision_; + } + + public static final int F1_SCORE_FIELD_NUMBER = 5; + private float f1Score_; + /** + * + * + *
+     * Output only. The harmonic mean of recall and precision.
+     * 
+ * + * float f1_score = 5; + */ + public float getF1Score() { + return f1Score_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (confidenceThreshold_ != 0F) { + output.writeFloat(1, confidenceThreshold_); + } + if (recall_ != 0F) { + output.writeFloat(3, recall_); + } + if (precision_ != 0F) { + output.writeFloat(4, precision_); + } + if (f1Score_ != 0F) { + output.writeFloat(5, f1Score_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (confidenceThreshold_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); + } + if (recall_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, recall_); + } + if (precision_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, precision_); + } + if (f1Score_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, f1Score_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry other = + (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) + obj; + + if (java.lang.Float.floatToIntBits(getConfidenceThreshold()) + != java.lang.Float.floatToIntBits(other.getConfidenceThreshold())) return false; + if (java.lang.Float.floatToIntBits(getRecall()) + != java.lang.Float.floatToIntBits(other.getRecall())) return false; + if (java.lang.Float.floatToIntBits(getPrecision()) + != java.lang.Float.floatToIntBits(other.getPrecision())) return false; + if (java.lang.Float.floatToIntBits(getF1Score()) + != java.lang.Float.floatToIntBits(other.getF1Score())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONFIDENCE_THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceThreshold()); + hash = (37 * hash) + RECALL_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecall()); + hash = (37 * hash) + PRECISION_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecision()); + hash = (37 * hash) + F1_SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1Score()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Metrics for a single confidence threshold.
+     * 
+ * + * Protobuf type {@code + * google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextExtraction + .internal_static_google_cloud_automl_v1beta1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.TextExtraction + .internal_static_google_cloud_automl_v1beta1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry.class, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry.Builder.class); + } + + // Construct using + // com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + confidenceThreshold_ = 0F; + + recall_ = 0F; + + precision_ = 0F; + + f1Score_ = 0F; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TextExtraction + .internal_static_google_cloud_automl_v1beta1_TextExtractionEvaluationMetrics_ConfidenceMetricsEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + build() { + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + buildPartial() { + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + result = + new com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry(this); + result.confidenceThreshold_ = confidenceThreshold_; + result.recall_ = recall_; + result.precision_ = precision_; + result.f1Score_ = f1Score_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry) { + return mergeFrom( + (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + other) { + if (other + == com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry.getDefaultInstance()) return this; + if (other.getConfidenceThreshold() != 0F) { + setConfidenceThreshold(other.getConfidenceThreshold()); + } + if (other.getRecall() != 0F) { + setRecall(other.getRecall()); + } + if (other.getPrecision() != 0F) { + setPrecision(other.getPrecision()); + } + if (other.getF1Score() != 0F) { + setF1Score(other.getF1Score()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private float confidenceThreshold_; + /** + * + * + *
+       * Output only. The confidence threshold value used to compute the metrics.
+       * Only annotations with score of at least this threshold are considered to
+       * be ones the model would return.
+       * 
+ * + * float confidence_threshold = 1; + */ + public float getConfidenceThreshold() { + return confidenceThreshold_; + } + /** + * + * + *
+       * Output only. The confidence threshold value used to compute the metrics.
+       * Only annotations with score of at least this threshold are considered to
+       * be ones the model would return.
+       * 
+ * + * float confidence_threshold = 1; + */ + public Builder setConfidenceThreshold(float value) { + + confidenceThreshold_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The confidence threshold value used to compute the metrics.
+       * Only annotations with score of at least this threshold are considered to
+       * be ones the model would return.
+       * 
+ * + * float confidence_threshold = 1; + */ + public Builder clearConfidenceThreshold() { + + confidenceThreshold_ = 0F; + onChanged(); + return this; + } + + private float recall_; + /** + * + * + *
+       * Output only. Recall under the given confidence threshold.
+       * 
+ * + * float recall = 3; + */ + public float getRecall() { + return recall_; + } + /** + * + * + *
+       * Output only. Recall under the given confidence threshold.
+       * 
+ * + * float recall = 3; + */ + public Builder setRecall(float value) { + + recall_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Recall under the given confidence threshold.
+       * 
+ * + * float recall = 3; + */ + public Builder clearRecall() { + + recall_ = 0F; + onChanged(); + return this; + } + + private float precision_; + /** + * + * + *
+       * Output only. Precision under the given confidence threshold.
+       * 
+ * + * float precision = 4; + */ + public float getPrecision() { + return precision_; + } + /** + * + * + *
+       * Output only. Precision under the given confidence threshold.
+       * 
+ * + * float precision = 4; + */ + public Builder setPrecision(float value) { + + precision_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Precision under the given confidence threshold.
+       * 
+ * + * float precision = 4; + */ + public Builder clearPrecision() { + + precision_ = 0F; + onChanged(); + return this; + } + + private float f1Score_; + /** + * + * + *
+       * Output only. The harmonic mean of recall and precision.
+       * 
+ * + * float f1_score = 5; + */ + public float getF1Score() { + return f1Score_; + } + /** + * + * + *
+       * Output only. The harmonic mean of recall and precision.
+       * 
+ * + * float f1_score = 5; + */ + public Builder setF1Score(float value) { + + f1Score_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The harmonic mean of recall and precision.
+       * 
+ * + * float f1_score = 5; + */ + public Builder clearF1Score() { + + f1Score_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry) + private static final com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry(); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfidenceMetricsEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfidenceMetricsEntry(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int AU_PRC_FIELD_NUMBER = 1; + private float auPrc_; + /** + * + * + *
+   * Output only. The Area under precision recall curve metric.
+   * 
+ * + * float au_prc = 1; + */ + public float getAuPrc() { + return auPrc_; + } + + public static final int CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER = 2; + private java.util.List< + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> + confidenceMetricsEntries_; + /** + * + * + *
+   * Output only. Metrics that have confidence thresholds.
+   * Precision-recall curve can be derived from it.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public java.util.List< + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> + getConfidenceMetricsEntriesList() { + return confidenceMetricsEntries_; + } + /** + * + * + *
+   * Output only. Metrics that have confidence thresholds.
+   * Precision-recall curve can be derived from it.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public java.util.List< + ? extends + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder> + getConfidenceMetricsEntriesOrBuilderList() { + return confidenceMetricsEntries_; + } + /** + * + * + *
+   * Output only. Metrics that have confidence thresholds.
+   * Precision-recall curve can be derived from it.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public int getConfidenceMetricsEntriesCount() { + return confidenceMetricsEntries_.size(); + } + /** + * + * + *
+   * Output only. Metrics that have confidence thresholds.
+   * Precision-recall curve can be derived from it.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + getConfidenceMetricsEntries(int index) { + return confidenceMetricsEntries_.get(index); + } + /** + * + * + *
+   * Output only. Metrics that have confidence thresholds.
+   * Precision-recall curve can be derived from it.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntriesOrBuilder(int index) { + return confidenceMetricsEntries_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (auPrc_ != 0F) { + output.writeFloat(1, auPrc_); + } + for (int i = 0; i < confidenceMetricsEntries_.size(); i++) { + output.writeMessage(2, confidenceMetricsEntries_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (auPrc_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, auPrc_); + } + for (int i = 0; i < confidenceMetricsEntries_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, confidenceMetricsEntries_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics other = + (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) obj; + + if (java.lang.Float.floatToIntBits(getAuPrc()) + != java.lang.Float.floatToIntBits(other.getAuPrc())) return false; + if (!getConfidenceMetricsEntriesList().equals(other.getConfidenceMetricsEntriesList())) + return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AU_PRC_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getAuPrc()); + if (getConfidenceMetricsEntriesCount() > 0) { + hash = (37 * hash) + CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getConfidenceMetricsEntriesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Model evaluation metrics for text extraction problems.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetricsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextExtraction + .internal_static_google_cloud_automl_v1beta1_TextExtractionEvaluationMetrics_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.TextExtraction + .internal_static_google_cloud_automl_v1beta1_TextExtractionEvaluationMetrics_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.class, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getConfidenceMetricsEntriesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + auPrc_ = 0F; + + if (confidenceMetricsEntriesBuilder_ == null) { + confidenceMetricsEntries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + confidenceMetricsEntriesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TextExtraction + .internal_static_google_cloud_automl_v1beta1_TextExtractionEvaluationMetrics_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics build() { + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics buildPartial() { + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics result = + new com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.auPrc_ = auPrc_; + if (confidenceMetricsEntriesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + confidenceMetricsEntries_ = + java.util.Collections.unmodifiableList(confidenceMetricsEntries_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.confidenceMetricsEntries_ = confidenceMetricsEntries_; + } else { + result.confidenceMetricsEntries_ = confidenceMetricsEntriesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) { + return mergeFrom((com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics other) { + if (other + == com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.getDefaultInstance()) + return this; + if (other.getAuPrc() != 0F) { + setAuPrc(other.getAuPrc()); + } + if (confidenceMetricsEntriesBuilder_ == null) { + if (!other.confidenceMetricsEntries_.isEmpty()) { + if (confidenceMetricsEntries_.isEmpty()) { + confidenceMetricsEntries_ = other.confidenceMetricsEntries_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureConfidenceMetricsEntriesIsMutable(); + confidenceMetricsEntries_.addAll(other.confidenceMetricsEntries_); + } + onChanged(); + } + } else { + if (!other.confidenceMetricsEntries_.isEmpty()) { + if (confidenceMetricsEntriesBuilder_.isEmpty()) { + confidenceMetricsEntriesBuilder_.dispose(); + confidenceMetricsEntriesBuilder_ = null; + confidenceMetricsEntries_ = other.confidenceMetricsEntries_; + bitField0_ = (bitField0_ & ~0x00000002); + confidenceMetricsEntriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConfidenceMetricsEntriesFieldBuilder() + : null; + } else { + confidenceMetricsEntriesBuilder_.addAllMessages(other.confidenceMetricsEntries_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private float auPrc_; + /** + * + * + *
+     * Output only. The Area under precision recall curve metric.
+     * 
+ * + * float au_prc = 1; + */ + public float getAuPrc() { + return auPrc_; + } + /** + * + * + *
+     * Output only. The Area under precision recall curve metric.
+     * 
+ * + * float au_prc = 1; + */ + public Builder setAuPrc(float value) { + + auPrc_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Area under precision recall curve metric.
+     * 
+ * + * float au_prc = 1; + */ + public Builder clearAuPrc() { + + auPrc_ = 0F; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> + confidenceMetricsEntries_ = java.util.Collections.emptyList(); + + private void ensureConfidenceMetricsEntriesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + confidenceMetricsEntries_ = + new java.util.ArrayList< + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry>(confidenceMetricsEntries_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .Builder, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder> + confidenceMetricsEntriesBuilder_; + + /** + * + * + *
+     * Output only. Metrics that have confidence thresholds.
+     * Precision-recall curve can be derived from it.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public java.util.List< + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> + getConfidenceMetricsEntriesList() { + if (confidenceMetricsEntriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(confidenceMetricsEntries_); + } else { + return confidenceMetricsEntriesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. Metrics that have confidence thresholds.
+     * Precision-recall curve can be derived from it.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public int getConfidenceMetricsEntriesCount() { + if (confidenceMetricsEntriesBuilder_ == null) { + return confidenceMetricsEntries_.size(); + } else { + return confidenceMetricsEntriesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. Metrics that have confidence thresholds.
+     * Precision-recall curve can be derived from it.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + getConfidenceMetricsEntries(int index) { + if (confidenceMetricsEntriesBuilder_ == null) { + return confidenceMetricsEntries_.get(index); + } else { + return confidenceMetricsEntriesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. Metrics that have confidence thresholds.
+     * Precision-recall curve can be derived from it.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public Builder setConfidenceMetricsEntries( + int index, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + value) { + if (confidenceMetricsEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfidenceMetricsEntriesIsMutable(); + confidenceMetricsEntries_.set(index, value); + onChanged(); + } else { + confidenceMetricsEntriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Metrics that have confidence thresholds.
+     * Precision-recall curve can be derived from it.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public Builder setConfidenceMetricsEntries( + int index, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .Builder + builderForValue) { + if (confidenceMetricsEntriesBuilder_ == null) { + ensureConfidenceMetricsEntriesIsMutable(); + confidenceMetricsEntries_.set(index, builderForValue.build()); + onChanged(); + } else { + confidenceMetricsEntriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Metrics that have confidence thresholds.
+     * Precision-recall curve can be derived from it.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public Builder addConfidenceMetricsEntries( + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + value) { + if (confidenceMetricsEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfidenceMetricsEntriesIsMutable(); + confidenceMetricsEntries_.add(value); + onChanged(); + } else { + confidenceMetricsEntriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. Metrics that have confidence thresholds.
+     * Precision-recall curve can be derived from it.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public Builder addConfidenceMetricsEntries( + int index, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + value) { + if (confidenceMetricsEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfidenceMetricsEntriesIsMutable(); + confidenceMetricsEntries_.add(index, value); + onChanged(); + } else { + confidenceMetricsEntriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Metrics that have confidence thresholds.
+     * Precision-recall curve can be derived from it.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public Builder addConfidenceMetricsEntries( + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .Builder + builderForValue) { + if (confidenceMetricsEntriesBuilder_ == null) { + ensureConfidenceMetricsEntriesIsMutable(); + confidenceMetricsEntries_.add(builderForValue.build()); + onChanged(); + } else { + confidenceMetricsEntriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Metrics that have confidence thresholds.
+     * Precision-recall curve can be derived from it.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public Builder addConfidenceMetricsEntries( + int index, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .Builder + builderForValue) { + if (confidenceMetricsEntriesBuilder_ == null) { + ensureConfidenceMetricsEntriesIsMutable(); + confidenceMetricsEntries_.add(index, builderForValue.build()); + onChanged(); + } else { + confidenceMetricsEntriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Metrics that have confidence thresholds.
+     * Precision-recall curve can be derived from it.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public Builder addAllConfidenceMetricsEntries( + java.lang.Iterable< + ? extends + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry> + values) { + if (confidenceMetricsEntriesBuilder_ == null) { + ensureConfidenceMetricsEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, confidenceMetricsEntries_); + onChanged(); + } else { + confidenceMetricsEntriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. Metrics that have confidence thresholds.
+     * Precision-recall curve can be derived from it.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public Builder clearConfidenceMetricsEntries() { + if (confidenceMetricsEntriesBuilder_ == null) { + confidenceMetricsEntries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + confidenceMetricsEntriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Metrics that have confidence thresholds.
+     * Precision-recall curve can be derived from it.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public Builder removeConfidenceMetricsEntries(int index) { + if (confidenceMetricsEntriesBuilder_ == null) { + ensureConfidenceMetricsEntriesIsMutable(); + confidenceMetricsEntries_.remove(index); + onChanged(); + } else { + confidenceMetricsEntriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. Metrics that have confidence thresholds.
+     * Precision-recall curve can be derived from it.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .Builder + getConfidenceMetricsEntriesBuilder(int index) { + return getConfidenceMetricsEntriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. Metrics that have confidence thresholds.
+     * Precision-recall curve can be derived from it.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntriesOrBuilder(int index) { + if (confidenceMetricsEntriesBuilder_ == null) { + return confidenceMetricsEntries_.get(index); + } else { + return confidenceMetricsEntriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. Metrics that have confidence thresholds.
+     * Precision-recall curve can be derived from it.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public java.util.List< + ? extends + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder> + getConfidenceMetricsEntriesOrBuilderList() { + if (confidenceMetricsEntriesBuilder_ != null) { + return confidenceMetricsEntriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(confidenceMetricsEntries_); + } + } + /** + * + * + *
+     * Output only. Metrics that have confidence thresholds.
+     * Precision-recall curve can be derived from it.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .Builder + addConfidenceMetricsEntriesBuilder() { + return getConfidenceMetricsEntriesFieldBuilder() + .addBuilder( + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Metrics that have confidence thresholds.
+     * Precision-recall curve can be derived from it.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .Builder + addConfidenceMetricsEntriesBuilder(int index) { + return getConfidenceMetricsEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Metrics that have confidence thresholds.
+     * Precision-recall curve can be derived from it.
+     * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + public java.util.List< + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .Builder> + getConfidenceMetricsEntriesBuilderList() { + return getConfidenceMetricsEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + .Builder, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder> + getConfidenceMetricsEntriesFieldBuilder() { + if (confidenceMetricsEntriesBuilder_ == null) { + confidenceMetricsEntriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntry.Builder, + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder>( + confidenceMetricsEntries_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + confidenceMetricsEntries_ = null; + } + return confidenceMetricsEntriesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) + private static final com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics(); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextExtractionEvaluationMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextExtractionEvaluationMetrics(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetricsOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetricsOrBuilder.java new file mode 100644 index 000000000000..ce9b9f1ce412 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionEvaluationMetricsOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/text_extraction.proto + +package com.google.cloud.automl.v1beta1; + +public interface TextExtractionEvaluationMetricsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The Area under precision recall curve metric.
+   * 
+ * + * float au_prc = 1; + */ + float getAuPrc(); + + /** + * + * + *
+   * Output only. Metrics that have confidence thresholds.
+   * Precision-recall curve can be derived from it.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + java.util.List< + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> + getConfidenceMetricsEntriesList(); + /** + * + * + *
+   * Output only. Metrics that have confidence thresholds.
+   * Precision-recall curve can be derived from it.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry + getConfidenceMetricsEntries(int index); + /** + * + * + *
+   * Output only. Metrics that have confidence thresholds.
+   * Precision-recall curve can be derived from it.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + int getConfidenceMetricsEntriesCount(); + /** + * + * + *
+   * Output only. Metrics that have confidence thresholds.
+   * Precision-recall curve can be derived from it.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + java.util.List< + ? extends + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics + .ConfidenceMetricsEntryOrBuilder> + getConfidenceMetricsEntriesOrBuilderList(); + /** + * + * + *
+   * Output only. Metrics that have confidence thresholds.
+   * Precision-recall curve can be derived from it.
+   * 
+ * + * + * repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2; + * + */ + com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntriesOrBuilder(int index); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadata.java new file mode 100644 index 000000000000..7e5c1775bc98 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadata.java @@ -0,0 +1,436 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/text.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Model metadata that is specific to text extraction.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TextExtractionModelMetadata} + */ +public final class TextExtractionModelMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TextExtractionModelMetadata) + TextExtractionModelMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextExtractionModelMetadata.newBuilder() to construct. + private TextExtractionModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TextExtractionModelMetadata() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TextExtractionModelMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextExtractionModelMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextExtractionModelMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.class, + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.TextExtractionModelMetadata)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata other = + (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.TextExtractionModelMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionModelMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionModelMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionModelMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionModelMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionModelMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionModelMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionModelMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionModelMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionModelMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionModelMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionModelMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Model metadata that is specific to text extraction.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TextExtractionModelMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TextExtractionModelMetadata) + com.google.cloud.automl.v1beta1.TextExtractionModelMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextExtractionModelMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextExtractionModelMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.class, + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextExtractionModelMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata build() { + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata buildPartial() { + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata result = + new com.google.cloud.automl.v1beta1.TextExtractionModelMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) { + return mergeFrom((com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextExtractionModelMetadata other) { + if (other == com.google.cloud.automl.v1beta1.TextExtractionModelMetadata.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.TextExtractionModelMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.TextExtractionModelMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TextExtractionModelMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TextExtractionModelMetadata) + private static final com.google.cloud.automl.v1beta1.TextExtractionModelMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextExtractionModelMetadata(); + } + + public static com.google.cloud.automl.v1beta1.TextExtractionModelMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextExtractionModelMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextExtractionModelMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextExtractionModelMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadataOrBuilder.java new file mode 100644 index 000000000000..861b77f9336a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextExtractionModelMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/text.proto + +package com.google.cloud.automl.v1beta1; + +public interface TextExtractionModelMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TextExtractionModelMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java index 6965147df3a8..7eb783a10067 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextProto.java @@ -20,6 +20,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TextExtractionDatasetMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TextExtractionDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TextExtractionModelMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TextExtractionModelMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TextSentimentDatasetMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TextSentimentDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TextSentimentModelMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TextSentimentModelMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -36,11 +52,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ssificationDatasetMetadata\022L\n\023classifica" + "tion_type\030\001 \001(\0162/.google.cloud.automl.v1" + "beta1.ClassificationType\"!\n\037TextClassifi" - + "cationModelMetadataB\217\001\n\037com.google.cloud" - + ".automl.v1beta1B\tTextProtoP\001ZAgoogle.gol" - + "ang.org/genproto/googleapis/cloud/automl" - + "/v1beta1;automl\312\002\033Google\\Cloud\\AutoMl\\V1" - + "beta1b\006proto3" + + "cationModelMetadata\"\037\n\035TextExtractionDat" + + "asetMetadata\"\035\n\033TextExtractionModelMetad" + + "ata\"5\n\034TextSentimentDatasetMetadata\022\025\n\rs" + + "entiment_max\030\001 \001(\005\"\034\n\032TextSentimentModel" + + "MetadataB\217\001\n\037com.google.cloud.automl.v1b" + + "eta1B\tTextProtoP\001ZAgoogle.golang.org/gen" + + "proto/googleapis/cloud/automl/v1beta1;au" + + "toml\312\002\033Google\\Cloud\\AutoMl\\V1beta1b\006prot" + + "o3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -71,6 +91,32 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_automl_v1beta1_TextClassificationModelMetadata_descriptor, new java.lang.String[] {}); + internal_static_google_cloud_automl_v1beta1_TextExtractionDatasetMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_automl_v1beta1_TextExtractionDatasetMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TextExtractionDatasetMetadata_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_automl_v1beta1_TextExtractionModelMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_automl_v1beta1_TextExtractionModelMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TextExtractionModelMetadata_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_automl_v1beta1_TextSentimentDatasetMetadata_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_automl_v1beta1_TextSentimentDatasetMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TextSentimentDatasetMetadata_descriptor, + new java.lang.String[] { + "SentimentMax", + }); + internal_static_google_cloud_automl_v1beta1_TextSentimentModelMetadata_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_automl_v1beta1_TextSentimentModelMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TextSentimentModelMetadata_descriptor, + new java.lang.String[] {}); com.google.api.AnnotationsProto.getDescriptor(); com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(); } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegment.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegment.java new file mode 100644 index 000000000000..bea26df713cc --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegment.java @@ -0,0 +1,768 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/text_segment.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * A contiguous part of a text (string), assuming it has an UTF-8 NFC encoding.
+ * .
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TextSegment} + */ +public final class TextSegment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TextSegment) + TextSegmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextSegment.newBuilder() to construct. + private TextSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TextSegment() { + content_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TextSegment( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + startOffset_ = input.readInt64(); + break; + } + case 16: + { + endOffset_ = input.readInt64(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + content_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextSegmentProto + .internal_static_google_cloud_automl_v1beta1_TextSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.TextSegmentProto + .internal_static_google_cloud_automl_v1beta1_TextSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TextSegment.class, + com.google.cloud.automl.v1beta1.TextSegment.Builder.class); + } + + public static final int CONTENT_FIELD_NUMBER = 3; + private volatile java.lang.Object content_; + /** + * + * + *
+   * Output only. The content of the TextSegment.
+   * 
+ * + * string content = 3; + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The content of the TextSegment.
+   * 
+ * + * string content = 3; + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_OFFSET_FIELD_NUMBER = 1; + private long startOffset_; + /** + * + * + *
+   * Required. Zero-based character index of the first character of the text
+   * segment (counting characters from the beginning of the text).
+   * 
+ * + * int64 start_offset = 1; + */ + public long getStartOffset() { + return startOffset_; + } + + public static final int END_OFFSET_FIELD_NUMBER = 2; + private long endOffset_; + /** + * + * + *
+   * Required. Zero-based character index of the first character past the end of
+   * the text segment (counting character from the beginning of the text).
+   * The character at the end_offset is NOT included in the text segment.
+   * 
+ * + * int64 end_offset = 2; + */ + public long getEndOffset() { + return endOffset_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startOffset_ != 0L) { + output.writeInt64(1, startOffset_); + } + if (endOffset_ != 0L) { + output.writeInt64(2, endOffset_); + } + if (!getContentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, content_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startOffset_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, startOffset_); + } + if (endOffset_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, endOffset_); + } + if (!getContentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, content_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.TextSegment)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.TextSegment other = + (com.google.cloud.automl.v1beta1.TextSegment) obj; + + if (!getContent().equals(other.getContent())) return false; + if (getStartOffset() != other.getStartOffset()) return false; + if (getEndOffset() != other.getEndOffset()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (37 * hash) + START_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStartOffset()); + hash = (37 * hash) + END_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEndOffset()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.TextSegment parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextSegment parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSegment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextSegment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSegment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextSegment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSegment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextSegment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSegment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextSegment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSegment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextSegment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.TextSegment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A contiguous part of a text (string), assuming it has an UTF-8 NFC encoding.
+   * .
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TextSegment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TextSegment) + com.google.cloud.automl.v1beta1.TextSegmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextSegmentProto + .internal_static_google_cloud_automl_v1beta1_TextSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.TextSegmentProto + .internal_static_google_cloud_automl_v1beta1_TextSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TextSegment.class, + com.google.cloud.automl.v1beta1.TextSegment.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.TextSegment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + content_ = ""; + + startOffset_ = 0L; + + endOffset_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TextSegmentProto + .internal_static_google_cloud_automl_v1beta1_TextSegment_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextSegment getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextSegment build() { + com.google.cloud.automl.v1beta1.TextSegment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextSegment buildPartial() { + com.google.cloud.automl.v1beta1.TextSegment result = + new com.google.cloud.automl.v1beta1.TextSegment(this); + result.content_ = content_; + result.startOffset_ = startOffset_; + result.endOffset_ = endOffset_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.TextSegment) { + return mergeFrom((com.google.cloud.automl.v1beta1.TextSegment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextSegment other) { + if (other == com.google.cloud.automl.v1beta1.TextSegment.getDefaultInstance()) return this; + if (!other.getContent().isEmpty()) { + content_ = other.content_; + onChanged(); + } + if (other.getStartOffset() != 0L) { + setStartOffset(other.getStartOffset()); + } + if (other.getEndOffset() != 0L) { + setEndOffset(other.getEndOffset()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.TextSegment parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.TextSegment) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object content_ = ""; + /** + * + * + *
+     * Output only. The content of the TextSegment.
+     * 
+ * + * string content = 3; + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The content of the TextSegment.
+     * 
+ * + * string content = 3; + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The content of the TextSegment.
+     * 
+ * + * string content = 3; + */ + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + content_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The content of the TextSegment.
+     * 
+ * + * string content = 3; + */ + public Builder clearContent() { + + content_ = getDefaultInstance().getContent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The content of the TextSegment.
+     * 
+ * + * string content = 3; + */ + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + content_ = value; + onChanged(); + return this; + } + + private long startOffset_; + /** + * + * + *
+     * Required. Zero-based character index of the first character of the text
+     * segment (counting characters from the beginning of the text).
+     * 
+ * + * int64 start_offset = 1; + */ + public long getStartOffset() { + return startOffset_; + } + /** + * + * + *
+     * Required. Zero-based character index of the first character of the text
+     * segment (counting characters from the beginning of the text).
+     * 
+ * + * int64 start_offset = 1; + */ + public Builder setStartOffset(long value) { + + startOffset_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Zero-based character index of the first character of the text
+     * segment (counting characters from the beginning of the text).
+     * 
+ * + * int64 start_offset = 1; + */ + public Builder clearStartOffset() { + + startOffset_ = 0L; + onChanged(); + return this; + } + + private long endOffset_; + /** + * + * + *
+     * Required. Zero-based character index of the first character past the end of
+     * the text segment (counting character from the beginning of the text).
+     * The character at the end_offset is NOT included in the text segment.
+     * 
+ * + * int64 end_offset = 2; + */ + public long getEndOffset() { + return endOffset_; + } + /** + * + * + *
+     * Required. Zero-based character index of the first character past the end of
+     * the text segment (counting character from the beginning of the text).
+     * The character at the end_offset is NOT included in the text segment.
+     * 
+ * + * int64 end_offset = 2; + */ + public Builder setEndOffset(long value) { + + endOffset_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Zero-based character index of the first character past the end of
+     * the text segment (counting character from the beginning of the text).
+     * The character at the end_offset is NOT included in the text segment.
+     * 
+ * + * int64 end_offset = 2; + */ + public Builder clearEndOffset() { + + endOffset_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TextSegment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TextSegment) + private static final com.google.cloud.automl.v1beta1.TextSegment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextSegment(); + } + + public static com.google.cloud.automl.v1beta1.TextSegment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextSegment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextSegment(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextSegment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentOrBuilder.java new file mode 100644 index 000000000000..2f5b02d1d749 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/text_segment.proto + +package com.google.cloud.automl.v1beta1; + +public interface TextSegmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TextSegment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The content of the TextSegment.
+   * 
+ * + * string content = 3; + */ + java.lang.String getContent(); + /** + * + * + *
+   * Output only. The content of the TextSegment.
+   * 
+ * + * string content = 3; + */ + com.google.protobuf.ByteString getContentBytes(); + + /** + * + * + *
+   * Required. Zero-based character index of the first character of the text
+   * segment (counting characters from the beginning of the text).
+   * 
+ * + * int64 start_offset = 1; + */ + long getStartOffset(); + + /** + * + * + *
+   * Required. Zero-based character index of the first character past the end of
+   * the text segment (counting character from the beginning of the text).
+   * The character at the end_offset is NOT included in the text segment.
+   * 
+ * + * int64 end_offset = 2; + */ + long getEndOffset(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentProto.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentProto.java new file mode 100644 index 000000000000..b0e1186a4bc2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSegmentProto.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/text_segment.proto + +package com.google.cloud.automl.v1beta1; + +public final class TextSegmentProto { + private TextSegmentProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TextSegment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TextSegment_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n.google/cloud/automl/v1beta1/text_segme" + + "nt.proto\022\033google.cloud.automl.v1beta1\032\034g" + + "oogle/api/annotations.proto\"H\n\013TextSegme" + + "nt\022\017\n\007content\030\003 \001(\t\022\024\n\014start_offset\030\001 \001(" + + "\003\022\022\n\nend_offset\030\002 \001(\003B\226\001\n\037com.google.clo" + + "ud.automl.v1beta1B\020TextSegmentProtoP\001ZAg" + + "oogle.golang.org/genproto/googleapis/clo" + + "ud/automl/v1beta1;automl\312\002\033Google\\Cloud\\" + + "AutoMl\\V1beta1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_automl_v1beta1_TextSegment_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_TextSegment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TextSegment_descriptor, + new java.lang.String[] { + "Content", "StartOffset", "EndOffset", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadata.java new file mode 100644 index 000000000000..674db0d3bc14 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadata.java @@ -0,0 +1,543 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/text.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Dataset metadata for text sentiment.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TextSentimentDatasetMetadata} + */ +public final class TextSentimentDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) + TextSentimentDatasetMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextSentimentDatasetMetadata.newBuilder() to construct. + private TextSentimentDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TextSentimentDatasetMetadata() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TextSentimentDatasetMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + sentimentMax_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextSentimentDatasetMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextSentimentDatasetMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.class, + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.Builder.class); + } + + public static final int SENTIMENT_MAX_FIELD_NUMBER = 1; + private int sentimentMax_; + /** + * + * + *
+   * Required.
+   * A sentiment is expressed as an integer ordinal, where higher value
+   * means a more positive sentiment. The range of sentiments that will be used
+   * is between 0 and sentiment_max (inclusive on both ends), and all the values
+   * in the range must be represented in the dataset before a model can be
+   * created.
+   * sentiment_max value must be between 1 and 10 (inclusive).
+   * 
+ * + * int32 sentiment_max = 1; + */ + public int getSentimentMax() { + return sentimentMax_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (sentimentMax_ != 0) { + output.writeInt32(1, sentimentMax_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sentimentMax_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, sentimentMax_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata other = + (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) obj; + + if (getSentimentMax() != other.getSentimentMax()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SENTIMENT_MAX_FIELD_NUMBER; + hash = (53 * hash) + getSentimentMax(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Dataset metadata for text sentiment.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TextSentimentDatasetMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextSentimentDatasetMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextSentimentDatasetMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.class, + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + sentimentMax_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextSentimentDatasetMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata build() { + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata buildPartial() { + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata result = + new com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata(this); + result.sentimentMax_ = sentimentMax_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) { + return mergeFrom((com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata other) { + if (other + == com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata.getDefaultInstance()) + return this; + if (other.getSentimentMax() != 0) { + setSentimentMax(other.getSentimentMax()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int sentimentMax_; + /** + * + * + *
+     * Required.
+     * A sentiment is expressed as an integer ordinal, where higher value
+     * means a more positive sentiment. The range of sentiments that will be used
+     * is between 0 and sentiment_max (inclusive on both ends), and all the values
+     * in the range must be represented in the dataset before a model can be
+     * created.
+     * sentiment_max value must be between 1 and 10 (inclusive).
+     * 
+ * + * int32 sentiment_max = 1; + */ + public int getSentimentMax() { + return sentimentMax_; + } + /** + * + * + *
+     * Required.
+     * A sentiment is expressed as an integer ordinal, where higher value
+     * means a more positive sentiment. The range of sentiments that will be used
+     * is between 0 and sentiment_max (inclusive on both ends), and all the values
+     * in the range must be represented in the dataset before a model can be
+     * created.
+     * sentiment_max value must be between 1 and 10 (inclusive).
+     * 
+ * + * int32 sentiment_max = 1; + */ + public Builder setSentimentMax(int value) { + + sentimentMax_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * A sentiment is expressed as an integer ordinal, where higher value
+     * means a more positive sentiment. The range of sentiments that will be used
+     * is between 0 and sentiment_max (inclusive on both ends), and all the values
+     * in the range must be represented in the dataset before a model can be
+     * created.
+     * sentiment_max value must be between 1 and 10 (inclusive).
+     * 
+ * + * int32 sentiment_max = 1; + */ + public Builder clearSentimentMax() { + + sentimentMax_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) + private static final com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata(); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextSentimentDatasetMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextSentimentDatasetMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextSentimentDatasetMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadataOrBuilder.java new file mode 100644 index 000000000000..05263081f16f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentDatasetMetadataOrBuilder.java @@ -0,0 +1,27 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/text.proto + +package com.google.cloud.automl.v1beta1; + +public interface TextSentimentDatasetMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TextSentimentDatasetMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required.
+   * A sentiment is expressed as an integer ordinal, where higher value
+   * means a more positive sentiment. The range of sentiments that will be used
+   * is between 0 and sentiment_max (inclusive on both ends), and all the values
+   * in the range must be represented in the dataset before a model can be
+   * created.
+   * sentiment_max value must be between 1 and 10 (inclusive).
+   * 
+ * + * int32 sentiment_max = 1; + */ + int getSentimentMax(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadata.java new file mode 100644 index 000000000000..b99c05cf4502 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadata.java @@ -0,0 +1,436 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/text.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Model metadata that is specific to text classification.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TextSentimentModelMetadata} + */ +public final class TextSentimentModelMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TextSentimentModelMetadata) + TextSentimentModelMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextSentimentModelMetadata.newBuilder() to construct. + private TextSentimentModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TextSentimentModelMetadata() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TextSentimentModelMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextSentimentModelMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextSentimentModelMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.class, + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.TextSentimentModelMetadata)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata other = + (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.TextSentimentModelMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentModelMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentModelMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentModelMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentModelMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentModelMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentModelMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentModelMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentModelMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentModelMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentModelMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentModelMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Model metadata that is specific to text classification.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TextSentimentModelMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TextSentimentModelMetadata) + com.google.cloud.automl.v1beta1.TextSentimentModelMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextSentimentModelMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextSentimentModelMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.class, + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TextProto + .internal_static_google_cloud_automl_v1beta1_TextSentimentModelMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata build() { + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata buildPartial() { + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata result = + new com.google.cloud.automl.v1beta1.TextSentimentModelMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) { + return mergeFrom((com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.TextSentimentModelMetadata other) { + if (other == com.google.cloud.automl.v1beta1.TextSentimentModelMetadata.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.TextSentimentModelMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.TextSentimentModelMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TextSentimentModelMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TextSentimentModelMetadata) + private static final com.google.cloud.automl.v1beta1.TextSentimentModelMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TextSentimentModelMetadata(); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentModelMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextSentimentModelMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextSentimentModelMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextSentimentModelMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadataOrBuilder.java new file mode 100644 index 000000000000..4d10b4c33708 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentModelMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/text.proto + +package com.google.cloud.automl.v1beta1; + +public interface TextSentimentModelMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TextSentimentModelMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentProto.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentProto.java new file mode 100644 index 000000000000..97751226581a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSentimentProto.java @@ -0,0 +1,2600 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/text_sentiment.proto + +package com.google.cloud.automl.v1beta1; + +public final class TextSentimentProto { + private TextSentimentProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public interface TextSentimentAnnotationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TextSentimentAnnotation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The sentiment with the semantic, as given to the
+     * [AutoMl.ImportData][google.cloud.automl.v1beta1.AutoMl.ImportData] when populating the dataset from which the model used
+     * for the prediction had been trained.
+     * The sentiment values are between 0 and
+     * Dataset.text_sentiment_dataset_metadata.sentiment_max (inclusive),
+     * with higher value meaning more positive sentiment. They are completely
+     * relative, i.e. 0 means least positive sentiment and sentiment_max means
+     * the most positive from the sentiments present in the train data. Therefore
+     *  e.g. if train data had only negative sentiment, then sentiment_max, would
+     * be still negative (although least negative).
+     * The sentiment shouldn't be confused with "score" or "magnitude"
+     * from the previous Natural Language Sentiment Analysis API.
+     * 
+ * + * int32 sentiment = 1; + */ + int getSentiment(); + } + /** + * + * + *
+   * Contains annotation details specific to text sentiment.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TextSentimentAnnotation} + */ + public static final class TextSentimentAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TextSentimentAnnotation) + TextSentimentAnnotationOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextSentimentAnnotation.newBuilder() to construct. + private TextSentimentAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TextSentimentAnnotation() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TextSentimentAnnotation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + sentiment_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextSentimentProto + .internal_static_google_cloud_automl_v1beta1_TextSentimentAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.TextSentimentProto + .internal_static_google_cloud_automl_v1beta1_TextSentimentAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.class, + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.Builder + .class); + } + + public static final int SENTIMENT_FIELD_NUMBER = 1; + private int sentiment_; + /** + * + * + *
+     * Output only. The sentiment with the semantic, as given to the
+     * [AutoMl.ImportData][google.cloud.automl.v1beta1.AutoMl.ImportData] when populating the dataset from which the model used
+     * for the prediction had been trained.
+     * The sentiment values are between 0 and
+     * Dataset.text_sentiment_dataset_metadata.sentiment_max (inclusive),
+     * with higher value meaning more positive sentiment. They are completely
+     * relative, i.e. 0 means least positive sentiment and sentiment_max means
+     * the most positive from the sentiments present in the train data. Therefore
+     *  e.g. if train data had only negative sentiment, then sentiment_max, would
+     * be still negative (although least negative).
+     * The sentiment shouldn't be confused with "score" or "magnitude"
+     * from the previous Natural Language Sentiment Analysis API.
+     * 
+ * + * int32 sentiment = 1; + */ + public int getSentiment() { + return sentiment_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (sentiment_ != 0) { + output.writeInt32(1, sentiment_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sentiment_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, sentiment_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation other = + (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) obj; + + if (getSentiment() != other.getSentiment()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SENTIMENT_FIELD_NUMBER; + hash = (53 * hash) + getSentiment(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Contains annotation details specific to text sentiment.
+     * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TextSentimentAnnotation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TextSentimentAnnotation) + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextSentimentProto + .internal_static_google_cloud_automl_v1beta1_TextSentimentAnnotation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.TextSentimentProto + .internal_static_google_cloud_automl_v1beta1_TextSentimentAnnotation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.class, + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.Builder + .class); + } + + // Construct using + // com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + sentiment_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TextSentimentProto + .internal_static_google_cloud_automl_v1beta1_TextSentimentAnnotation_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation build() { + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + buildPartial() { + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation result = + new com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation(this); + result.sentiment_ = sentiment_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) { + return mergeFrom( + (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation other) { + if (other + == com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + .getDefaultInstance()) return this; + if (other.getSentiment() != 0) { + setSentiment(other.getSentiment()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int sentiment_; + /** + * + * + *
+       * Output only. The sentiment with the semantic, as given to the
+       * [AutoMl.ImportData][google.cloud.automl.v1beta1.AutoMl.ImportData] when populating the dataset from which the model used
+       * for the prediction had been trained.
+       * The sentiment values are between 0 and
+       * Dataset.text_sentiment_dataset_metadata.sentiment_max (inclusive),
+       * with higher value meaning more positive sentiment. They are completely
+       * relative, i.e. 0 means least positive sentiment and sentiment_max means
+       * the most positive from the sentiments present in the train data. Therefore
+       *  e.g. if train data had only negative sentiment, then sentiment_max, would
+       * be still negative (although least negative).
+       * The sentiment shouldn't be confused with "score" or "magnitude"
+       * from the previous Natural Language Sentiment Analysis API.
+       * 
+ * + * int32 sentiment = 1; + */ + public int getSentiment() { + return sentiment_; + } + /** + * + * + *
+       * Output only. The sentiment with the semantic, as given to the
+       * [AutoMl.ImportData][google.cloud.automl.v1beta1.AutoMl.ImportData] when populating the dataset from which the model used
+       * for the prediction had been trained.
+       * The sentiment values are between 0 and
+       * Dataset.text_sentiment_dataset_metadata.sentiment_max (inclusive),
+       * with higher value meaning more positive sentiment. They are completely
+       * relative, i.e. 0 means least positive sentiment and sentiment_max means
+       * the most positive from the sentiments present in the train data. Therefore
+       *  e.g. if train data had only negative sentiment, then sentiment_max, would
+       * be still negative (although least negative).
+       * The sentiment shouldn't be confused with "score" or "magnitude"
+       * from the previous Natural Language Sentiment Analysis API.
+       * 
+ * + * int32 sentiment = 1; + */ + public Builder setSentiment(int value) { + + sentiment_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The sentiment with the semantic, as given to the
+       * [AutoMl.ImportData][google.cloud.automl.v1beta1.AutoMl.ImportData] when populating the dataset from which the model used
+       * for the prediction had been trained.
+       * The sentiment values are between 0 and
+       * Dataset.text_sentiment_dataset_metadata.sentiment_max (inclusive),
+       * with higher value meaning more positive sentiment. They are completely
+       * relative, i.e. 0 means least positive sentiment and sentiment_max means
+       * the most positive from the sentiments present in the train data. Therefore
+       *  e.g. if train data had only negative sentiment, then sentiment_max, would
+       * be still negative (although least negative).
+       * The sentiment shouldn't be confused with "score" or "magnitude"
+       * from the previous Natural Language Sentiment Analysis API.
+       * 
+ * + * int32 sentiment = 1; + */ + public Builder clearSentiment() { + + sentiment_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TextSentimentAnnotation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TextSentimentAnnotation) + private static final com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation(); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextSentimentAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextSentimentAnnotation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentAnnotation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TextSentimentEvaluationMetricsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. Precision.
+     * 
+ * + * float precision = 1; + */ + float getPrecision(); + + /** + * + * + *
+     * Output only. Recall.
+     * 
+ * + * float recall = 2; + */ + float getRecall(); + + /** + * + * + *
+     * Output only. The harmonic mean of recall and precision.
+     * 
+ * + * float f1_score = 3; + */ + float getF1Score(); + + /** + * + * + *
+     * Output only. Mean absolute error. Only set for the overall model
+     * evaluation, not for evaluation of a single annotation spec.
+     * 
+ * + * float mean_absolute_error = 4; + */ + float getMeanAbsoluteError(); + + /** + * + * + *
+     * Output only. Mean squared error. Only set for the overall model
+     * evaluation, not for evaluation of a single annotation spec.
+     * 
+ * + * float mean_squared_error = 5; + */ + float getMeanSquaredError(); + + /** + * + * + *
+     * Output only. Linear weighted kappa. Only set for the overall model
+     * evaluation, not for evaluation of a single annotation spec.
+     * 
+ * + * float linear_kappa = 6; + */ + float getLinearKappa(); + + /** + * + * + *
+     * Output only. Quadratic weighted kappa. Only set for the overall model
+     * evaluation, not for evaluation of a single annotation spec.
+     * 
+ * + * float quadratic_kappa = 7; + */ + float getQuadraticKappa(); + + /** + * + * + *
+     * Output only. Confusion matrix of the evaluation.
+     * Only set for the overall model evaluation, not for evaluation of a single
+     * annotation spec.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + */ + boolean hasConfusionMatrix(); + /** + * + * + *
+     * Output only. Confusion matrix of the evaluation.
+     * Only set for the overall model evaluation, not for evaluation of a single
+     * annotation spec.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + */ + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix + getConfusionMatrix(); + /** + * + * + *
+     * Output only. Confusion matrix of the evaluation.
+     * Only set for the overall model evaluation, not for evaluation of a single
+     * annotation spec.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + */ + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrixOrBuilder + getConfusionMatrixOrBuilder(); + + /** + * + * + *
+     * Output only. The annotation spec ids used for this evaluation.
+     * Deprecated, remove after Boq Migration and use then
+     * TextSentimentModelMetadata.annotation_spec_count for count, and list
+     * all model evaluations to see the exact annotation_spec_ids that were
+     * used.
+     * 
+ * + * repeated string annotation_spec_id = 9; + */ + java.util.List getAnnotationSpecIdList(); + /** + * + * + *
+     * Output only. The annotation spec ids used for this evaluation.
+     * Deprecated, remove after Boq Migration and use then
+     * TextSentimentModelMetadata.annotation_spec_count for count, and list
+     * all model evaluations to see the exact annotation_spec_ids that were
+     * used.
+     * 
+ * + * repeated string annotation_spec_id = 9; + */ + int getAnnotationSpecIdCount(); + /** + * + * + *
+     * Output only. The annotation spec ids used for this evaluation.
+     * Deprecated, remove after Boq Migration and use then
+     * TextSentimentModelMetadata.annotation_spec_count for count, and list
+     * all model evaluations to see the exact annotation_spec_ids that were
+     * used.
+     * 
+ * + * repeated string annotation_spec_id = 9; + */ + java.lang.String getAnnotationSpecId(int index); + /** + * + * + *
+     * Output only. The annotation spec ids used for this evaluation.
+     * Deprecated, remove after Boq Migration and use then
+     * TextSentimentModelMetadata.annotation_spec_count for count, and list
+     * all model evaluations to see the exact annotation_spec_ids that were
+     * used.
+     * 
+ * + * repeated string annotation_spec_id = 9; + */ + com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index); + } + /** + * + * + *
+   * Model evaluation metrics for text sentiment problems.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics} + */ + public static final class TextSentimentEvaluationMetrics + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics) + TextSentimentEvaluationMetricsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextSentimentEvaluationMetrics.newBuilder() to construct. + private TextSentimentEvaluationMetrics( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TextSentimentEvaluationMetrics() { + annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TextSentimentEvaluationMetrics( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + precision_ = input.readFloat(); + break; + } + case 21: + { + recall_ = input.readFloat(); + break; + } + case 29: + { + f1Score_ = input.readFloat(); + break; + } + case 37: + { + meanAbsoluteError_ = input.readFloat(); + break; + } + case 45: + { + meanSquaredError_ = input.readFloat(); + break; + } + case 53: + { + linearKappa_ = input.readFloat(); + break; + } + case 61: + { + quadraticKappa_ = input.readFloat(); + break; + } + case 66: + { + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Builder + subBuilder = null; + if (confusionMatrix_ != null) { + subBuilder = confusionMatrix_.toBuilder(); + } + confusionMatrix_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(confusionMatrix_); + confusionMatrix_ = subBuilder.buildPartial(); + } + + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000100) != 0)) { + annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000100; + } + annotationSpecId_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000100) != 0)) { + annotationSpecId_ = annotationSpecId_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextSentimentProto + .internal_static_google_cloud_automl_v1beta1_TextSentimentEvaluationMetrics_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.TextSentimentProto + .internal_static_google_cloud_automl_v1beta1_TextSentimentEvaluationMetrics_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + .class, + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + .Builder.class); + } + + private int bitField0_; + public static final int PRECISION_FIELD_NUMBER = 1; + private float precision_; + /** + * + * + *
+     * Output only. Precision.
+     * 
+ * + * float precision = 1; + */ + public float getPrecision() { + return precision_; + } + + public static final int RECALL_FIELD_NUMBER = 2; + private float recall_; + /** + * + * + *
+     * Output only. Recall.
+     * 
+ * + * float recall = 2; + */ + public float getRecall() { + return recall_; + } + + public static final int F1_SCORE_FIELD_NUMBER = 3; + private float f1Score_; + /** + * + * + *
+     * Output only. The harmonic mean of recall and precision.
+     * 
+ * + * float f1_score = 3; + */ + public float getF1Score() { + return f1Score_; + } + + public static final int MEAN_ABSOLUTE_ERROR_FIELD_NUMBER = 4; + private float meanAbsoluteError_; + /** + * + * + *
+     * Output only. Mean absolute error. Only set for the overall model
+     * evaluation, not for evaluation of a single annotation spec.
+     * 
+ * + * float mean_absolute_error = 4; + */ + public float getMeanAbsoluteError() { + return meanAbsoluteError_; + } + + public static final int MEAN_SQUARED_ERROR_FIELD_NUMBER = 5; + private float meanSquaredError_; + /** + * + * + *
+     * Output only. Mean squared error. Only set for the overall model
+     * evaluation, not for evaluation of a single annotation spec.
+     * 
+ * + * float mean_squared_error = 5; + */ + public float getMeanSquaredError() { + return meanSquaredError_; + } + + public static final int LINEAR_KAPPA_FIELD_NUMBER = 6; + private float linearKappa_; + /** + * + * + *
+     * Output only. Linear weighted kappa. Only set for the overall model
+     * evaluation, not for evaluation of a single annotation spec.
+     * 
+ * + * float linear_kappa = 6; + */ + public float getLinearKappa() { + return linearKappa_; + } + + public static final int QUADRATIC_KAPPA_FIELD_NUMBER = 7; + private float quadraticKappa_; + /** + * + * + *
+     * Output only. Quadratic weighted kappa. Only set for the overall model
+     * evaluation, not for evaluation of a single annotation spec.
+     * 
+ * + * float quadratic_kappa = 7; + */ + public float getQuadraticKappa() { + return quadraticKappa_; + } + + public static final int CONFUSION_MATRIX_FIELD_NUMBER = 8; + private com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix + confusionMatrix_; + /** + * + * + *
+     * Output only. Confusion matrix of the evaluation.
+     * Only set for the overall model evaluation, not for evaluation of a single
+     * annotation spec.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + */ + public boolean hasConfusionMatrix() { + return confusionMatrix_ != null; + } + /** + * + * + *
+     * Output only. Confusion matrix of the evaluation.
+     * Only set for the overall model evaluation, not for evaluation of a single
+     * annotation spec.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + */ + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix + getConfusionMatrix() { + return confusionMatrix_ == null + ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.getDefaultInstance() + : confusionMatrix_; + } + /** + * + * + *
+     * Output only. Confusion matrix of the evaluation.
+     * Only set for the overall model evaluation, not for evaluation of a single
+     * annotation spec.
+     * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + */ + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrixOrBuilder + getConfusionMatrixOrBuilder() { + return getConfusionMatrix(); + } + + public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER = 9; + private com.google.protobuf.LazyStringList annotationSpecId_; + /** + * + * + *
+     * Output only. The annotation spec ids used for this evaluation.
+     * Deprecated, remove after Boq Migration and use then
+     * TextSentimentModelMetadata.annotation_spec_count for count, and list
+     * all model evaluations to see the exact annotation_spec_ids that were
+     * used.
+     * 
+ * + * repeated string annotation_spec_id = 9; + */ + public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() { + return annotationSpecId_; + } + /** + * + * + *
+     * Output only. The annotation spec ids used for this evaluation.
+     * Deprecated, remove after Boq Migration and use then
+     * TextSentimentModelMetadata.annotation_spec_count for count, and list
+     * all model evaluations to see the exact annotation_spec_ids that were
+     * used.
+     * 
+ * + * repeated string annotation_spec_id = 9; + */ + public int getAnnotationSpecIdCount() { + return annotationSpecId_.size(); + } + /** + * + * + *
+     * Output only. The annotation spec ids used for this evaluation.
+     * Deprecated, remove after Boq Migration and use then
+     * TextSentimentModelMetadata.annotation_spec_count for count, and list
+     * all model evaluations to see the exact annotation_spec_ids that were
+     * used.
+     * 
+ * + * repeated string annotation_spec_id = 9; + */ + public java.lang.String getAnnotationSpecId(int index) { + return annotationSpecId_.get(index); + } + /** + * + * + *
+     * Output only. The annotation spec ids used for this evaluation.
+     * Deprecated, remove after Boq Migration and use then
+     * TextSentimentModelMetadata.annotation_spec_count for count, and list
+     * all model evaluations to see the exact annotation_spec_ids that were
+     * used.
+     * 
+ * + * repeated string annotation_spec_id = 9; + */ + public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) { + return annotationSpecId_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (precision_ != 0F) { + output.writeFloat(1, precision_); + } + if (recall_ != 0F) { + output.writeFloat(2, recall_); + } + if (f1Score_ != 0F) { + output.writeFloat(3, f1Score_); + } + if (meanAbsoluteError_ != 0F) { + output.writeFloat(4, meanAbsoluteError_); + } + if (meanSquaredError_ != 0F) { + output.writeFloat(5, meanSquaredError_); + } + if (linearKappa_ != 0F) { + output.writeFloat(6, linearKappa_); + } + if (quadraticKappa_ != 0F) { + output.writeFloat(7, quadraticKappa_); + } + if (confusionMatrix_ != null) { + output.writeMessage(8, getConfusionMatrix()); + } + for (int i = 0; i < annotationSpecId_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, annotationSpecId_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (precision_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, precision_); + } + if (recall_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, recall_); + } + if (f1Score_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, f1Score_); + } + if (meanAbsoluteError_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, meanAbsoluteError_); + } + if (meanSquaredError_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, meanSquaredError_); + } + if (linearKappa_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, linearKappa_); + } + if (quadraticKappa_ != 0F) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, quadraticKappa_); + } + if (confusionMatrix_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getConfusionMatrix()); + } + { + int dataSize = 0; + for (int i = 0; i < annotationSpecId_.size(); i++) { + dataSize += computeStringSizeNoTag(annotationSpecId_.getRaw(i)); + } + size += dataSize; + size += 1 * getAnnotationSpecIdList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics other = + (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) obj; + + if (java.lang.Float.floatToIntBits(getPrecision()) + != java.lang.Float.floatToIntBits(other.getPrecision())) return false; + if (java.lang.Float.floatToIntBits(getRecall()) + != java.lang.Float.floatToIntBits(other.getRecall())) return false; + if (java.lang.Float.floatToIntBits(getF1Score()) + != java.lang.Float.floatToIntBits(other.getF1Score())) return false; + if (java.lang.Float.floatToIntBits(getMeanAbsoluteError()) + != java.lang.Float.floatToIntBits(other.getMeanAbsoluteError())) return false; + if (java.lang.Float.floatToIntBits(getMeanSquaredError()) + != java.lang.Float.floatToIntBits(other.getMeanSquaredError())) return false; + if (java.lang.Float.floatToIntBits(getLinearKappa()) + != java.lang.Float.floatToIntBits(other.getLinearKappa())) return false; + if (java.lang.Float.floatToIntBits(getQuadraticKappa()) + != java.lang.Float.floatToIntBits(other.getQuadraticKappa())) return false; + if (hasConfusionMatrix() != other.hasConfusionMatrix()) return false; + if (hasConfusionMatrix()) { + if (!getConfusionMatrix().equals(other.getConfusionMatrix())) return false; + } + if (!getAnnotationSpecIdList().equals(other.getAnnotationSpecIdList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PRECISION_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecision()); + hash = (37 * hash) + RECALL_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecall()); + hash = (37 * hash) + F1_SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1Score()); + hash = (37 * hash) + MEAN_ABSOLUTE_ERROR_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getMeanAbsoluteError()); + hash = (37 * hash) + MEAN_SQUARED_ERROR_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getMeanSquaredError()); + hash = (37 * hash) + LINEAR_KAPPA_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getLinearKappa()); + hash = (37 * hash) + QUADRATIC_KAPPA_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getQuadraticKappa()); + if (hasConfusionMatrix()) { + hash = (37 * hash) + CONFUSION_MATRIX_FIELD_NUMBER; + hash = (53 * hash) + getConfusionMatrix().hashCode(); + } + if (getAnnotationSpecIdCount() > 0) { + hash = (37 * hash) + ANNOTATION_SPEC_ID_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationSpecIdList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Model evaluation metrics for text sentiment problems.
+     * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics) + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetricsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.TextSentimentProto + .internal_static_google_cloud_automl_v1beta1_TextSentimentEvaluationMetrics_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.TextSentimentProto + .internal_static_google_cloud_automl_v1beta1_TextSentimentEvaluationMetrics_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + .class, + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + .Builder.class); + } + + // Construct using + // com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + precision_ = 0F; + + recall_ = 0F; + + f1Score_ = 0F; + + meanAbsoluteError_ = 0F; + + meanSquaredError_ = 0F; + + linearKappa_ = 0F; + + quadraticKappa_ = 0F; + + if (confusionMatrixBuilder_ == null) { + confusionMatrix_ = null; + } else { + confusionMatrix_ = null; + confusionMatrixBuilder_ = null; + } + annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000100); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.TextSentimentProto + .internal_static_google_cloud_automl_v1beta1_TextSentimentEvaluationMetrics_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + build() { + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + buildPartial() { + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics result = + new com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics( + this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.precision_ = precision_; + result.recall_ = recall_; + result.f1Score_ = f1Score_; + result.meanAbsoluteError_ = meanAbsoluteError_; + result.meanSquaredError_ = meanSquaredError_; + result.linearKappa_ = linearKappa_; + result.quadraticKappa_ = quadraticKappa_; + if (confusionMatrixBuilder_ == null) { + result.confusionMatrix_ = confusionMatrix_; + } else { + result.confusionMatrix_ = confusionMatrixBuilder_.build(); + } + if (((bitField0_ & 0x00000100) != 0)) { + annotationSpecId_ = annotationSpecId_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.annotationSpecId_ = annotationSpecId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) { + return mergeFrom( + (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics other) { + if (other + == com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + .getDefaultInstance()) return this; + if (other.getPrecision() != 0F) { + setPrecision(other.getPrecision()); + } + if (other.getRecall() != 0F) { + setRecall(other.getRecall()); + } + if (other.getF1Score() != 0F) { + setF1Score(other.getF1Score()); + } + if (other.getMeanAbsoluteError() != 0F) { + setMeanAbsoluteError(other.getMeanAbsoluteError()); + } + if (other.getMeanSquaredError() != 0F) { + setMeanSquaredError(other.getMeanSquaredError()); + } + if (other.getLinearKappa() != 0F) { + setLinearKappa(other.getLinearKappa()); + } + if (other.getQuadraticKappa() != 0F) { + setQuadraticKappa(other.getQuadraticKappa()); + } + if (other.hasConfusionMatrix()) { + mergeConfusionMatrix(other.getConfusionMatrix()); + } + if (!other.annotationSpecId_.isEmpty()) { + if (annotationSpecId_.isEmpty()) { + annotationSpecId_ = other.annotationSpecId_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureAnnotationSpecIdIsMutable(); + annotationSpecId_.addAll(other.annotationSpecId_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private float precision_; + /** + * + * + *
+       * Output only. Precision.
+       * 
+ * + * float precision = 1; + */ + public float getPrecision() { + return precision_; + } + /** + * + * + *
+       * Output only. Precision.
+       * 
+ * + * float precision = 1; + */ + public Builder setPrecision(float value) { + + precision_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Precision.
+       * 
+ * + * float precision = 1; + */ + public Builder clearPrecision() { + + precision_ = 0F; + onChanged(); + return this; + } + + private float recall_; + /** + * + * + *
+       * Output only. Recall.
+       * 
+ * + * float recall = 2; + */ + public float getRecall() { + return recall_; + } + /** + * + * + *
+       * Output only. Recall.
+       * 
+ * + * float recall = 2; + */ + public Builder setRecall(float value) { + + recall_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Recall.
+       * 
+ * + * float recall = 2; + */ + public Builder clearRecall() { + + recall_ = 0F; + onChanged(); + return this; + } + + private float f1Score_; + /** + * + * + *
+       * Output only. The harmonic mean of recall and precision.
+       * 
+ * + * float f1_score = 3; + */ + public float getF1Score() { + return f1Score_; + } + /** + * + * + *
+       * Output only. The harmonic mean of recall and precision.
+       * 
+ * + * float f1_score = 3; + */ + public Builder setF1Score(float value) { + + f1Score_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The harmonic mean of recall and precision.
+       * 
+ * + * float f1_score = 3; + */ + public Builder clearF1Score() { + + f1Score_ = 0F; + onChanged(); + return this; + } + + private float meanAbsoluteError_; + /** + * + * + *
+       * Output only. Mean absolute error. Only set for the overall model
+       * evaluation, not for evaluation of a single annotation spec.
+       * 
+ * + * float mean_absolute_error = 4; + */ + public float getMeanAbsoluteError() { + return meanAbsoluteError_; + } + /** + * + * + *
+       * Output only. Mean absolute error. Only set for the overall model
+       * evaluation, not for evaluation of a single annotation spec.
+       * 
+ * + * float mean_absolute_error = 4; + */ + public Builder setMeanAbsoluteError(float value) { + + meanAbsoluteError_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Mean absolute error. Only set for the overall model
+       * evaluation, not for evaluation of a single annotation spec.
+       * 
+ * + * float mean_absolute_error = 4; + */ + public Builder clearMeanAbsoluteError() { + + meanAbsoluteError_ = 0F; + onChanged(); + return this; + } + + private float meanSquaredError_; + /** + * + * + *
+       * Output only. Mean squared error. Only set for the overall model
+       * evaluation, not for evaluation of a single annotation spec.
+       * 
+ * + * float mean_squared_error = 5; + */ + public float getMeanSquaredError() { + return meanSquaredError_; + } + /** + * + * + *
+       * Output only. Mean squared error. Only set for the overall model
+       * evaluation, not for evaluation of a single annotation spec.
+       * 
+ * + * float mean_squared_error = 5; + */ + public Builder setMeanSquaredError(float value) { + + meanSquaredError_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Mean squared error. Only set for the overall model
+       * evaluation, not for evaluation of a single annotation spec.
+       * 
+ * + * float mean_squared_error = 5; + */ + public Builder clearMeanSquaredError() { + + meanSquaredError_ = 0F; + onChanged(); + return this; + } + + private float linearKappa_; + /** + * + * + *
+       * Output only. Linear weighted kappa. Only set for the overall model
+       * evaluation, not for evaluation of a single annotation spec.
+       * 
+ * + * float linear_kappa = 6; + */ + public float getLinearKappa() { + return linearKappa_; + } + /** + * + * + *
+       * Output only. Linear weighted kappa. Only set for the overall model
+       * evaluation, not for evaluation of a single annotation spec.
+       * 
+ * + * float linear_kappa = 6; + */ + public Builder setLinearKappa(float value) { + + linearKappa_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Linear weighted kappa. Only set for the overall model
+       * evaluation, not for evaluation of a single annotation spec.
+       * 
+ * + * float linear_kappa = 6; + */ + public Builder clearLinearKappa() { + + linearKappa_ = 0F; + onChanged(); + return this; + } + + private float quadraticKappa_; + /** + * + * + *
+       * Output only. Quadratic weighted kappa. Only set for the overall model
+       * evaluation, not for evaluation of a single annotation spec.
+       * 
+ * + * float quadratic_kappa = 7; + */ + public float getQuadraticKappa() { + return quadraticKappa_; + } + /** + * + * + *
+       * Output only. Quadratic weighted kappa. Only set for the overall model
+       * evaluation, not for evaluation of a single annotation spec.
+       * 
+ * + * float quadratic_kappa = 7; + */ + public Builder setQuadraticKappa(float value) { + + quadraticKappa_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Quadratic weighted kappa. Only set for the overall model
+       * evaluation, not for evaluation of a single annotation spec.
+       * 
+ * + * float quadratic_kappa = 7; + */ + public Builder clearQuadraticKappa() { + + quadraticKappa_ = 0F; + onChanged(); + return this; + } + + private com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix + confusionMatrix_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Builder, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrixOrBuilder> + confusionMatrixBuilder_; + /** + * + * + *
+       * Output only. Confusion matrix of the evaluation.
+       * Only set for the overall model evaluation, not for evaluation of a single
+       * annotation spec.
+       * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + */ + public boolean hasConfusionMatrix() { + return confusionMatrixBuilder_ != null || confusionMatrix_ != null; + } + /** + * + * + *
+       * Output only. Confusion matrix of the evaluation.
+       * Only set for the overall model evaluation, not for evaluation of a single
+       * annotation spec.
+       * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + */ + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix + getConfusionMatrix() { + if (confusionMatrixBuilder_ == null) { + return confusionMatrix_ == null + ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.getDefaultInstance() + : confusionMatrix_; + } else { + return confusionMatrixBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Output only. Confusion matrix of the evaluation.
+       * Only set for the overall model evaluation, not for evaluation of a single
+       * annotation spec.
+       * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + */ + public Builder setConfusionMatrix( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix + value) { + if (confusionMatrixBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + confusionMatrix_ = value; + onChanged(); + } else { + confusionMatrixBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Output only. Confusion matrix of the evaluation.
+       * Only set for the overall model evaluation, not for evaluation of a single
+       * annotation spec.
+       * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + */ + public Builder setConfusionMatrix( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Builder + builderForValue) { + if (confusionMatrixBuilder_ == null) { + confusionMatrix_ = builderForValue.build(); + onChanged(); + } else { + confusionMatrixBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Output only. Confusion matrix of the evaluation.
+       * Only set for the overall model evaluation, not for evaluation of a single
+       * annotation spec.
+       * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + */ + public Builder mergeConfusionMatrix( + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix + value) { + if (confusionMatrixBuilder_ == null) { + if (confusionMatrix_ != null) { + confusionMatrix_ = + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.newBuilder(confusionMatrix_) + .mergeFrom(value) + .buildPartial(); + } else { + confusionMatrix_ = value; + } + onChanged(); + } else { + confusionMatrixBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Output only. Confusion matrix of the evaluation.
+       * Only set for the overall model evaluation, not for evaluation of a single
+       * annotation spec.
+       * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + */ + public Builder clearConfusionMatrix() { + if (confusionMatrixBuilder_ == null) { + confusionMatrix_ = null; + onChanged(); + } else { + confusionMatrix_ = null; + confusionMatrixBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Output only. Confusion matrix of the evaluation.
+       * Only set for the overall model evaluation, not for evaluation of a single
+       * annotation spec.
+       * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + */ + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Builder + getConfusionMatrixBuilder() { + + onChanged(); + return getConfusionMatrixFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Output only. Confusion matrix of the evaluation.
+       * Only set for the overall model evaluation, not for evaluation of a single
+       * annotation spec.
+       * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + */ + public com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrixOrBuilder + getConfusionMatrixOrBuilder() { + if (confusionMatrixBuilder_ != null) { + return confusionMatrixBuilder_.getMessageOrBuilder(); + } else { + return confusionMatrix_ == null + ? com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.getDefaultInstance() + : confusionMatrix_; + } + } + /** + * + * + *
+       * Output only. Confusion matrix of the evaluation.
+       * Only set for the overall model evaluation, not for evaluation of a single
+       * annotation spec.
+       * 
+ * + * + * .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrix.Builder, + com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics + .ConfusionMatrixOrBuilder> + getConfusionMatrixFieldBuilder() { + if (confusionMatrixBuilder_ == null) { + confusionMatrixBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix, + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrix.Builder, + com.google.cloud.automl.v1beta1.ClassificationProto + .ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder>( + getConfusionMatrix(), getParentForChildren(), isClean()); + confusionMatrix_ = null; + } + return confusionMatrixBuilder_; + } + + private com.google.protobuf.LazyStringList annotationSpecId_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAnnotationSpecIdIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + annotationSpecId_ = new com.google.protobuf.LazyStringArrayList(annotationSpecId_); + bitField0_ |= 0x00000100; + } + } + /** + * + * + *
+       * Output only. The annotation spec ids used for this evaluation.
+       * Deprecated, remove after Boq Migration and use then
+       * TextSentimentModelMetadata.annotation_spec_count for count, and list
+       * all model evaluations to see the exact annotation_spec_ids that were
+       * used.
+       * 
+ * + * repeated string annotation_spec_id = 9; + */ + public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList() { + return annotationSpecId_.getUnmodifiableView(); + } + /** + * + * + *
+       * Output only. The annotation spec ids used for this evaluation.
+       * Deprecated, remove after Boq Migration and use then
+       * TextSentimentModelMetadata.annotation_spec_count for count, and list
+       * all model evaluations to see the exact annotation_spec_ids that were
+       * used.
+       * 
+ * + * repeated string annotation_spec_id = 9; + */ + public int getAnnotationSpecIdCount() { + return annotationSpecId_.size(); + } + /** + * + * + *
+       * Output only. The annotation spec ids used for this evaluation.
+       * Deprecated, remove after Boq Migration and use then
+       * TextSentimentModelMetadata.annotation_spec_count for count, and list
+       * all model evaluations to see the exact annotation_spec_ids that were
+       * used.
+       * 
+ * + * repeated string annotation_spec_id = 9; + */ + public java.lang.String getAnnotationSpecId(int index) { + return annotationSpecId_.get(index); + } + /** + * + * + *
+       * Output only. The annotation spec ids used for this evaluation.
+       * Deprecated, remove after Boq Migration and use then
+       * TextSentimentModelMetadata.annotation_spec_count for count, and list
+       * all model evaluations to see the exact annotation_spec_ids that were
+       * used.
+       * 
+ * + * repeated string annotation_spec_id = 9; + */ + public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index) { + return annotationSpecId_.getByteString(index); + } + /** + * + * + *
+       * Output only. The annotation spec ids used for this evaluation.
+       * Deprecated, remove after Boq Migration and use then
+       * TextSentimentModelMetadata.annotation_spec_count for count, and list
+       * all model evaluations to see the exact annotation_spec_ids that were
+       * used.
+       * 
+ * + * repeated string annotation_spec_id = 9; + */ + public Builder setAnnotationSpecId(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationSpecIdIsMutable(); + annotationSpecId_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The annotation spec ids used for this evaluation.
+       * Deprecated, remove after Boq Migration and use then
+       * TextSentimentModelMetadata.annotation_spec_count for count, and list
+       * all model evaluations to see the exact annotation_spec_ids that were
+       * used.
+       * 
+ * + * repeated string annotation_spec_id = 9; + */ + public Builder addAnnotationSpecId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationSpecIdIsMutable(); + annotationSpecId_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The annotation spec ids used for this evaluation.
+       * Deprecated, remove after Boq Migration and use then
+       * TextSentimentModelMetadata.annotation_spec_count for count, and list
+       * all model evaluations to see the exact annotation_spec_ids that were
+       * used.
+       * 
+ * + * repeated string annotation_spec_id = 9; + */ + public Builder addAllAnnotationSpecId(java.lang.Iterable values) { + ensureAnnotationSpecIdIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationSpecId_); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The annotation spec ids used for this evaluation.
+       * Deprecated, remove after Boq Migration and use then
+       * TextSentimentModelMetadata.annotation_spec_count for count, and list
+       * all model evaluations to see the exact annotation_spec_ids that were
+       * used.
+       * 
+ * + * repeated string annotation_spec_id = 9; + */ + public Builder clearAnnotationSpecId() { + annotationSpecId_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. The annotation spec ids used for this evaluation.
+       * Deprecated, remove after Boq Migration and use then
+       * TextSentimentModelMetadata.annotation_spec_count for count, and list
+       * all model evaluations to see the exact annotation_spec_ids that were
+       * used.
+       * 
+ * + * repeated string annotation_spec_id = 9; + */ + public Builder addAnnotationSpecIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAnnotationSpecIdIsMutable(); + annotationSpecId_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TextSentimentEvaluationMetrics) + private static final com.google.cloud.automl.v1beta1.TextSentimentProto + .TextSentimentEvaluationMetrics + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics(); + } + + public static com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextSentimentEvaluationMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextSentimentEvaluationMetrics(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TextSentimentProto.TextSentimentEvaluationMetrics + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TextSentimentAnnotation_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TextSentimentAnnotation_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_TextSentimentEvaluationMetrics_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_TextSentimentEvaluationMetrics_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/automl/v1beta1/text_senti" + + "ment.proto\022\033google.cloud.automl.v1beta1\032" + + "\034google/api/annotations.proto\0320google/cl" + + "oud/automl/v1beta1/classification.proto\"" + + ",\n\027TextSentimentAnnotation\022\021\n\tsentiment\030" + + "\001 \001(\005\"\301\002\n\036TextSentimentEvaluationMetrics" + + "\022\021\n\tprecision\030\001 \001(\002\022\016\n\006recall\030\002 \001(\002\022\020\n\010f" + + "1_score\030\003 \001(\002\022\033\n\023mean_absolute_error\030\004 \001" + + "(\002\022\032\n\022mean_squared_error\030\005 \001(\002\022\024\n\014linear" + + "_kappa\030\006 \001(\002\022\027\n\017quadratic_kappa\030\007 \001(\002\022f\n" + + "\020confusion_matrix\030\010 \001(\0132L.google.cloud.a" + + "utoml.v1beta1.ClassificationEvaluationMe" + + "trics.ConfusionMatrix\022\032\n\022annotation_spec" + + "_id\030\t \003(\tB\226\001\n\037com.google.cloud.automl.v1" + + "beta1B\022TextSentimentProtoZAgoogle.golang" + + ".org/genproto/googleapis/cloud/automl/v1" + + "beta1;automl\312\002\033Google\\Cloud\\AutoMl\\V1bet" + + "a1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_automl_v1beta1_TextSentimentAnnotation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_TextSentimentAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TextSentimentAnnotation_descriptor, + new java.lang.String[] { + "Sentiment", + }); + internal_static_google_cloud_automl_v1beta1_TextSentimentEvaluationMetrics_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_TextSentimentEvaluationMetrics_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_TextSentimentEvaluationMetrics_descriptor, + new java.lang.String[] { + "Precision", + "Recall", + "F1Score", + "MeanAbsoluteError", + "MeanSquaredError", + "LinearKappa", + "QuadraticKappa", + "ConfusionMatrix", + "AnnotationSpecId", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippet.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippet.java index 647dd8c314db..498849cc8cdc 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippet.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippet.java @@ -158,10 +158,9 @@ public com.google.protobuf.ByteString getContentBytes() { * * *
-   * The format of the source text. For example, "text/html" or
-   * "text/plain". If left blank the format is automatically determined from
-   * the type of the uploaded content. The default is "text/html". Up to 25000
-   * characters long.
+   * The format of the source text. Currently the only two allowed values are
+   * "text/html" and "text/plain". If left blank the format is automatically
+   * determined from the type of the uploaded content.
    * 
* * string mime_type = 2; @@ -181,10 +180,9 @@ public java.lang.String getMimeType() { * * *
-   * The format of the source text. For example, "text/html" or
-   * "text/plain". If left blank the format is automatically determined from
-   * the type of the uploaded content. The default is "text/html". Up to 25000
-   * characters long.
+   * The format of the source text. Currently the only two allowed values are
+   * "text/html" and "text/plain". If left blank the format is automatically
+   * determined from the type of the uploaded content.
    * 
* * string mime_type = 2; @@ -696,10 +694,9 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { * * *
-     * The format of the source text. For example, "text/html" or
-     * "text/plain". If left blank the format is automatically determined from
-     * the type of the uploaded content. The default is "text/html". Up to 25000
-     * characters long.
+     * The format of the source text. Currently the only two allowed values are
+     * "text/html" and "text/plain". If left blank the format is automatically
+     * determined from the type of the uploaded content.
      * 
* * string mime_type = 2; @@ -719,10 +716,9 @@ public java.lang.String getMimeType() { * * *
-     * The format of the source text. For example, "text/html" or
-     * "text/plain". If left blank the format is automatically determined from
-     * the type of the uploaded content. The default is "text/html". Up to 25000
-     * characters long.
+     * The format of the source text. Currently the only two allowed values are
+     * "text/html" and "text/plain". If left blank the format is automatically
+     * determined from the type of the uploaded content.
      * 
* * string mime_type = 2; @@ -742,10 +738,9 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { * * *
-     * The format of the source text. For example, "text/html" or
-     * "text/plain". If left blank the format is automatically determined from
-     * the type of the uploaded content. The default is "text/html". Up to 25000
-     * characters long.
+     * The format of the source text. Currently the only two allowed values are
+     * "text/html" and "text/plain". If left blank the format is automatically
+     * determined from the type of the uploaded content.
      * 
* * string mime_type = 2; @@ -763,10 +758,9 @@ public Builder setMimeType(java.lang.String value) { * * *
-     * The format of the source text. For example, "text/html" or
-     * "text/plain". If left blank the format is automatically determined from
-     * the type of the uploaded content. The default is "text/html". Up to 25000
-     * characters long.
+     * The format of the source text. Currently the only two allowed values are
+     * "text/html" and "text/plain". If left blank the format is automatically
+     * determined from the type of the uploaded content.
      * 
* * string mime_type = 2; @@ -781,10 +775,9 @@ public Builder clearMimeType() { * * *
-     * The format of the source text. For example, "text/html" or
-     * "text/plain". If left blank the format is automatically determined from
-     * the type of the uploaded content. The default is "text/html". Up to 25000
-     * characters long.
+     * The format of the source text. Currently the only two allowed values are
+     * "text/html" and "text/plain". If left blank the format is automatically
+     * determined from the type of the uploaded content.
      * 
* * string mime_type = 2; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippetOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippetOrBuilder.java index 7969e62840a8..c2d4dd0095f0 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippetOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TextSnippetOrBuilder.java @@ -35,10 +35,9 @@ public interface TextSnippetOrBuilder * * *
-   * The format of the source text. For example, "text/html" or
-   * "text/plain". If left blank the format is automatically determined from
-   * the type of the uploaded content. The default is "text/html". Up to 25000
-   * characters long.
+   * The format of the source text. Currently the only two allowed values are
+   * "text/html" and "text/plain". If left blank the format is automatically
+   * determined from the type of the uploaded content.
    * 
* * string mime_type = 2; @@ -48,10 +47,9 @@ public interface TextSnippetOrBuilder * * *
-   * The format of the source text. For example, "text/html" or
-   * "text/plain". If left blank the format is automatically determined from
-   * the type of the uploaded content. The default is "text/html". Up to 25000
-   * characters long.
+   * The format of the source text. Currently the only two allowed values are
+   * "text/html" and "text/plain". If left blank the format is automatically
+   * determined from the type of the uploaded content.
    * 
* * string mime_type = 2; diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegment.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegment.java new file mode 100644 index 000000000000..f21b44736b1f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegment.java @@ -0,0 +1,988 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/temporal.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * A time period inside of an example that has a time dimension (e.g. video).
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TimeSegment} + */ +public final class TimeSegment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TimeSegment) + TimeSegmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use TimeSegment.newBuilder() to construct. + private TimeSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TimeSegment() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TimeSegment( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (startTimeOffset_ != null) { + subBuilder = startTimeOffset_.toBuilder(); + } + startTimeOffset_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTimeOffset_); + startTimeOffset_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (endTimeOffset_ != null) { + subBuilder = endTimeOffset_.toBuilder(); + } + endTimeOffset_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTimeOffset_); + endTimeOffset_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Temporal + .internal_static_google_cloud_automl_v1beta1_TimeSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Temporal + .internal_static_google_cloud_automl_v1beta1_TimeSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TimeSegment.class, + com.google.cloud.automl.v1beta1.TimeSegment.Builder.class); + } + + public static final int START_TIME_OFFSET_FIELD_NUMBER = 1; + private com.google.protobuf.Duration startTimeOffset_; + /** + * + * + *
+   * Start of the time segment (inclusive), represented as the duration since
+   * the example start.
+   * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public boolean hasStartTimeOffset() { + return startTimeOffset_ != null; + } + /** + * + * + *
+   * Start of the time segment (inclusive), represented as the duration since
+   * the example start.
+   * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public com.google.protobuf.Duration getStartTimeOffset() { + return startTimeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : startTimeOffset_; + } + /** + * + * + *
+   * Start of the time segment (inclusive), represented as the duration since
+   * the example start.
+   * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() { + return getStartTimeOffset(); + } + + public static final int END_TIME_OFFSET_FIELD_NUMBER = 2; + private com.google.protobuf.Duration endTimeOffset_; + /** + * + * + *
+   * End of the time segment (exclusive), represented as the duration since the
+   * example start.
+   * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public boolean hasEndTimeOffset() { + return endTimeOffset_ != null; + } + /** + * + * + *
+   * End of the time segment (exclusive), represented as the duration since the
+   * example start.
+   * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public com.google.protobuf.Duration getEndTimeOffset() { + return endTimeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : endTimeOffset_; + } + /** + * + * + *
+   * End of the time segment (exclusive), represented as the duration since the
+   * example start.
+   * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public com.google.protobuf.DurationOrBuilder getEndTimeOffsetOrBuilder() { + return getEndTimeOffset(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startTimeOffset_ != null) { + output.writeMessage(1, getStartTimeOffset()); + } + if (endTimeOffset_ != null) { + output.writeMessage(2, getEndTimeOffset()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startTimeOffset_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTimeOffset()); + } + if (endTimeOffset_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTimeOffset()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.TimeSegment)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.TimeSegment other = + (com.google.cloud.automl.v1beta1.TimeSegment) obj; + + if (hasStartTimeOffset() != other.hasStartTimeOffset()) return false; + if (hasStartTimeOffset()) { + if (!getStartTimeOffset().equals(other.getStartTimeOffset())) return false; + } + if (hasEndTimeOffset() != other.hasEndTimeOffset()) return false; + if (hasEndTimeOffset()) { + if (!getEndTimeOffset().equals(other.getEndTimeOffset())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTimeOffset()) { + hash = (37 * hash) + START_TIME_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getStartTimeOffset().hashCode(); + } + if (hasEndTimeOffset()) { + hash = (37 * hash) + END_TIME_OFFSET_FIELD_NUMBER; + hash = (53 * hash) + getEndTimeOffset().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.TimeSegment parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TimeSegment parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TimeSegment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TimeSegment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TimeSegment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TimeSegment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TimeSegment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TimeSegment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TimeSegment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TimeSegment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TimeSegment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TimeSegment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.TimeSegment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A time period inside of an example that has a time dimension (e.g. video).
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TimeSegment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TimeSegment) + com.google.cloud.automl.v1beta1.TimeSegmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Temporal + .internal_static_google_cloud_automl_v1beta1_TimeSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Temporal + .internal_static_google_cloud_automl_v1beta1_TimeSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TimeSegment.class, + com.google.cloud.automl.v1beta1.TimeSegment.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.TimeSegment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startTimeOffsetBuilder_ == null) { + startTimeOffset_ = null; + } else { + startTimeOffset_ = null; + startTimeOffsetBuilder_ = null; + } + if (endTimeOffsetBuilder_ == null) { + endTimeOffset_ = null; + } else { + endTimeOffset_ = null; + endTimeOffsetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Temporal + .internal_static_google_cloud_automl_v1beta1_TimeSegment_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TimeSegment getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.TimeSegment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TimeSegment build() { + com.google.cloud.automl.v1beta1.TimeSegment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TimeSegment buildPartial() { + com.google.cloud.automl.v1beta1.TimeSegment result = + new com.google.cloud.automl.v1beta1.TimeSegment(this); + if (startTimeOffsetBuilder_ == null) { + result.startTimeOffset_ = startTimeOffset_; + } else { + result.startTimeOffset_ = startTimeOffsetBuilder_.build(); + } + if (endTimeOffsetBuilder_ == null) { + result.endTimeOffset_ = endTimeOffset_; + } else { + result.endTimeOffset_ = endTimeOffsetBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.TimeSegment) { + return mergeFrom((com.google.cloud.automl.v1beta1.TimeSegment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.TimeSegment other) { + if (other == com.google.cloud.automl.v1beta1.TimeSegment.getDefaultInstance()) return this; + if (other.hasStartTimeOffset()) { + mergeStartTimeOffset(other.getStartTimeOffset()); + } + if (other.hasEndTimeOffset()) { + mergeEndTimeOffset(other.getEndTimeOffset()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.TimeSegment parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.TimeSegment) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Duration startTimeOffset_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + startTimeOffsetBuilder_; + /** + * + * + *
+     * Start of the time segment (inclusive), represented as the duration since
+     * the example start.
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public boolean hasStartTimeOffset() { + return startTimeOffsetBuilder_ != null || startTimeOffset_ != null; + } + /** + * + * + *
+     * Start of the time segment (inclusive), represented as the duration since
+     * the example start.
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public com.google.protobuf.Duration getStartTimeOffset() { + if (startTimeOffsetBuilder_ == null) { + return startTimeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : startTimeOffset_; + } else { + return startTimeOffsetBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Start of the time segment (inclusive), represented as the duration since
+     * the example start.
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public Builder setStartTimeOffset(com.google.protobuf.Duration value) { + if (startTimeOffsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTimeOffset_ = value; + onChanged(); + } else { + startTimeOffsetBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Start of the time segment (inclusive), represented as the duration since
+     * the example start.
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public Builder setStartTimeOffset(com.google.protobuf.Duration.Builder builderForValue) { + if (startTimeOffsetBuilder_ == null) { + startTimeOffset_ = builderForValue.build(); + onChanged(); + } else { + startTimeOffsetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Start of the time segment (inclusive), represented as the duration since
+     * the example start.
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public Builder mergeStartTimeOffset(com.google.protobuf.Duration value) { + if (startTimeOffsetBuilder_ == null) { + if (startTimeOffset_ != null) { + startTimeOffset_ = + com.google.protobuf.Duration.newBuilder(startTimeOffset_) + .mergeFrom(value) + .buildPartial(); + } else { + startTimeOffset_ = value; + } + onChanged(); + } else { + startTimeOffsetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Start of the time segment (inclusive), represented as the duration since
+     * the example start.
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public Builder clearStartTimeOffset() { + if (startTimeOffsetBuilder_ == null) { + startTimeOffset_ = null; + onChanged(); + } else { + startTimeOffset_ = null; + startTimeOffsetBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Start of the time segment (inclusive), represented as the duration since
+     * the example start.
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public com.google.protobuf.Duration.Builder getStartTimeOffsetBuilder() { + + onChanged(); + return getStartTimeOffsetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Start of the time segment (inclusive), represented as the duration since
+     * the example start.
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + public com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder() { + if (startTimeOffsetBuilder_ != null) { + return startTimeOffsetBuilder_.getMessageOrBuilder(); + } else { + return startTimeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : startTimeOffset_; + } + } + /** + * + * + *
+     * Start of the time segment (inclusive), represented as the duration since
+     * the example start.
+     * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getStartTimeOffsetFieldBuilder() { + if (startTimeOffsetBuilder_ == null) { + startTimeOffsetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getStartTimeOffset(), getParentForChildren(), isClean()); + startTimeOffset_ = null; + } + return startTimeOffsetBuilder_; + } + + private com.google.protobuf.Duration endTimeOffset_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + endTimeOffsetBuilder_; + /** + * + * + *
+     * End of the time segment (exclusive), represented as the duration since the
+     * example start.
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public boolean hasEndTimeOffset() { + return endTimeOffsetBuilder_ != null || endTimeOffset_ != null; + } + /** + * + * + *
+     * End of the time segment (exclusive), represented as the duration since the
+     * example start.
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public com.google.protobuf.Duration getEndTimeOffset() { + if (endTimeOffsetBuilder_ == null) { + return endTimeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : endTimeOffset_; + } else { + return endTimeOffsetBuilder_.getMessage(); + } + } + /** + * + * + *
+     * End of the time segment (exclusive), represented as the duration since the
+     * example start.
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public Builder setEndTimeOffset(com.google.protobuf.Duration value) { + if (endTimeOffsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTimeOffset_ = value; + onChanged(); + } else { + endTimeOffsetBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * End of the time segment (exclusive), represented as the duration since the
+     * example start.
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public Builder setEndTimeOffset(com.google.protobuf.Duration.Builder builderForValue) { + if (endTimeOffsetBuilder_ == null) { + endTimeOffset_ = builderForValue.build(); + onChanged(); + } else { + endTimeOffsetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * End of the time segment (exclusive), represented as the duration since the
+     * example start.
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public Builder mergeEndTimeOffset(com.google.protobuf.Duration value) { + if (endTimeOffsetBuilder_ == null) { + if (endTimeOffset_ != null) { + endTimeOffset_ = + com.google.protobuf.Duration.newBuilder(endTimeOffset_) + .mergeFrom(value) + .buildPartial(); + } else { + endTimeOffset_ = value; + } + onChanged(); + } else { + endTimeOffsetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * End of the time segment (exclusive), represented as the duration since the
+     * example start.
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public Builder clearEndTimeOffset() { + if (endTimeOffsetBuilder_ == null) { + endTimeOffset_ = null; + onChanged(); + } else { + endTimeOffset_ = null; + endTimeOffsetBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * End of the time segment (exclusive), represented as the duration since the
+     * example start.
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public com.google.protobuf.Duration.Builder getEndTimeOffsetBuilder() { + + onChanged(); + return getEndTimeOffsetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * End of the time segment (exclusive), represented as the duration since the
+     * example start.
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + public com.google.protobuf.DurationOrBuilder getEndTimeOffsetOrBuilder() { + if (endTimeOffsetBuilder_ != null) { + return endTimeOffsetBuilder_.getMessageOrBuilder(); + } else { + return endTimeOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : endTimeOffset_; + } + } + /** + * + * + *
+     * End of the time segment (exclusive), represented as the duration since the
+     * example start.
+     * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getEndTimeOffsetFieldBuilder() { + if (endTimeOffsetBuilder_ == null) { + endTimeOffsetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getEndTimeOffset(), getParentForChildren(), isClean()); + endTimeOffset_ = null; + } + return endTimeOffsetBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TimeSegment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TimeSegment) + private static final com.google.cloud.automl.v1beta1.TimeSegment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TimeSegment(); + } + + public static com.google.cloud.automl.v1beta1.TimeSegment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSegment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TimeSegment(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TimeSegment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegmentOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegmentOrBuilder.java new file mode 100644 index 000000000000..0f48a11d5c74 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimeSegmentOrBuilder.java @@ -0,0 +1,78 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/temporal.proto + +package com.google.cloud.automl.v1beta1; + +public interface TimeSegmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TimeSegment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Start of the time segment (inclusive), represented as the duration since
+   * the example start.
+   * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + boolean hasStartTimeOffset(); + /** + * + * + *
+   * Start of the time segment (inclusive), represented as the duration since
+   * the example start.
+   * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + com.google.protobuf.Duration getStartTimeOffset(); + /** + * + * + *
+   * Start of the time segment (inclusive), represented as the duration since
+   * the example start.
+   * 
+ * + * .google.protobuf.Duration start_time_offset = 1; + */ + com.google.protobuf.DurationOrBuilder getStartTimeOffsetOrBuilder(); + + /** + * + * + *
+   * End of the time segment (exclusive), represented as the duration since the
+   * example start.
+   * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + boolean hasEndTimeOffset(); + /** + * + * + *
+   * End of the time segment (exclusive), represented as the duration since the
+   * example start.
+   * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + com.google.protobuf.Duration getEndTimeOffset(); + /** + * + * + *
+   * End of the time segment (exclusive), represented as the duration since the
+   * example start.
+   * 
+ * + * .google.protobuf.Duration end_time_offset = 2; + */ + com.google.protobuf.DurationOrBuilder getEndTimeOffsetOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStats.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStats.java new file mode 100644 index 000000000000..8a5f045e3811 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStats.java @@ -0,0 +1,1678 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_stats.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * The data statistics of a series of TIMESTAMP values.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TimestampStats} + */ +public final class TimestampStats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TimestampStats) + TimestampStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TimestampStats.newBuilder() to construct. + private TimestampStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TimestampStats() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private TimestampStats( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + granularStats_ = + com.google.protobuf.MapField.newMapField( + GranularStatsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.automl.v1beta1.TimestampStats.GranularStats> + granularStats__ = + input.readMessage( + GranularStatsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + granularStats_ + .getMutableMap() + .put(granularStats__.getKey(), granularStats__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_TimestampStats_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetGranularStats(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_TimestampStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TimestampStats.class, + com.google.cloud.automl.v1beta1.TimestampStats.Builder.class); + } + + public interface GranularStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TimestampStats.GranularStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A map from granularity key to example count for that key.
+     * E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
+     * 
+ * + * map<int32, int64> buckets = 1; + */ + int getBucketsCount(); + /** + * + * + *
+     * A map from granularity key to example count for that key.
+     * E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
+     * 
+ * + * map<int32, int64> buckets = 1; + */ + boolean containsBuckets(int key); + /** Use {@link #getBucketsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getBuckets(); + /** + * + * + *
+     * A map from granularity key to example count for that key.
+     * E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
+     * 
+ * + * map<int32, int64> buckets = 1; + */ + java.util.Map getBucketsMap(); + /** + * + * + *
+     * A map from granularity key to example count for that key.
+     * E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
+     * 
+ * + * map<int32, int64> buckets = 1; + */ + long getBucketsOrDefault(int key, long defaultValue); + /** + * + * + *
+     * A map from granularity key to example count for that key.
+     * E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
+     * 
+ * + * map<int32, int64> buckets = 1; + */ + long getBucketsOrThrow(int key); + } + /** + * + * + *
+   * Stats split by a defined in context granularity.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TimestampStats.GranularStats} + */ + public static final class GranularStats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.TimestampStats.GranularStats) + GranularStatsOrBuilder { + private static final long serialVersionUID = 0L; + // Use GranularStats.newBuilder() to construct. + private GranularStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GranularStats() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GranularStats( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + buckets_ = + com.google.protobuf.MapField.newMapField( + BucketsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry buckets__ = + input.readMessage( + BucketsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + buckets_.getMutableMap().put(buckets__.getKey(), buckets__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStats_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetBuckets(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TimestampStats.GranularStats.class, + com.google.cloud.automl.v1beta1.TimestampStats.GranularStats.Builder.class); + } + + public static final int BUCKETS_FIELD_NUMBER = 1; + + private static final class BucketsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStats_BucketsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.INT32, + 0, + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); + } + + private com.google.protobuf.MapField buckets_; + + private com.google.protobuf.MapField internalGetBuckets() { + if (buckets_ == null) { + return com.google.protobuf.MapField.emptyMapField(BucketsDefaultEntryHolder.defaultEntry); + } + return buckets_; + } + + public int getBucketsCount() { + return internalGetBuckets().getMap().size(); + } + /** + * + * + *
+     * A map from granularity key to example count for that key.
+     * E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
+     * 
+ * + * map<int32, int64> buckets = 1; + */ + public boolean containsBuckets(int key) { + + return internalGetBuckets().getMap().containsKey(key); + } + /** Use {@link #getBucketsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getBuckets() { + return getBucketsMap(); + } + /** + * + * + *
+     * A map from granularity key to example count for that key.
+     * E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
+     * 
+ * + * map<int32, int64> buckets = 1; + */ + public java.util.Map getBucketsMap() { + return internalGetBuckets().getMap(); + } + /** + * + * + *
+     * A map from granularity key to example count for that key.
+     * E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
+     * 
+ * + * map<int32, int64> buckets = 1; + */ + public long getBucketsOrDefault(int key, long defaultValue) { + + java.util.Map map = internalGetBuckets().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * A map from granularity key to example count for that key.
+     * E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
+     * 
+ * + * map<int32, int64> buckets = 1; + */ + public long getBucketsOrThrow(int key) { + + java.util.Map map = internalGetBuckets().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeIntegerMapTo( + output, internalGetBuckets(), BucketsDefaultEntryHolder.defaultEntry, 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetBuckets().getMap().entrySet()) { + com.google.protobuf.MapEntry buckets__ = + BucketsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, buckets__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.TimestampStats.GranularStats)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.TimestampStats.GranularStats other = + (com.google.cloud.automl.v1beta1.TimestampStats.GranularStats) obj; + + if (!internalGetBuckets().equals(other.internalGetBuckets())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetBuckets().getMap().isEmpty()) { + hash = (37 * hash) + BUCKETS_FIELD_NUMBER; + hash = (53 * hash) + internalGetBuckets().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.TimestampStats.GranularStats parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats.GranularStats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats.GranularStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats.GranularStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats.GranularStats parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats.GranularStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats.GranularStats parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats.GranularStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats.GranularStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats.GranularStats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats.GranularStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats.GranularStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.TimestampStats.GranularStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Stats split by a defined in context granularity.
+     * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TimestampStats.GranularStats} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TimestampStats.GranularStats) + com.google.cloud.automl.v1beta1.TimestampStats.GranularStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStats_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetBuckets(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 1: + return internalGetMutableBuckets(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TimestampStats.GranularStats.class, + com.google.cloud.automl.v1beta1.TimestampStats.GranularStats.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.TimestampStats.GranularStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableBuckets().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStats_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.TimestampStats.GranularStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats build() { + com.google.cloud.automl.v1beta1.TimestampStats.GranularStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats buildPartial() { + com.google.cloud.automl.v1beta1.TimestampStats.GranularStats result = + new com.google.cloud.automl.v1beta1.TimestampStats.GranularStats(this); + int from_bitField0_ = bitField0_; + result.buckets_ = internalGetBuckets(); + result.buckets_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.TimestampStats.GranularStats) { + return mergeFrom((com.google.cloud.automl.v1beta1.TimestampStats.GranularStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.TimestampStats.GranularStats other) { + if (other + == com.google.cloud.automl.v1beta1.TimestampStats.GranularStats.getDefaultInstance()) + return this; + internalGetMutableBuckets().mergeFrom(other.internalGetBuckets()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.TimestampStats.GranularStats parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.TimestampStats.GranularStats) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.MapField buckets_; + + private com.google.protobuf.MapField internalGetBuckets() { + if (buckets_ == null) { + return com.google.protobuf.MapField.emptyMapField(BucketsDefaultEntryHolder.defaultEntry); + } + return buckets_; + } + + private com.google.protobuf.MapField + internalGetMutableBuckets() { + onChanged(); + ; + if (buckets_ == null) { + buckets_ = + com.google.protobuf.MapField.newMapField(BucketsDefaultEntryHolder.defaultEntry); + } + if (!buckets_.isMutable()) { + buckets_ = buckets_.copy(); + } + return buckets_; + } + + public int getBucketsCount() { + return internalGetBuckets().getMap().size(); + } + /** + * + * + *
+       * A map from granularity key to example count for that key.
+       * E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
+       * 
+ * + * map<int32, int64> buckets = 1; + */ + public boolean containsBuckets(int key) { + + return internalGetBuckets().getMap().containsKey(key); + } + /** Use {@link #getBucketsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map getBuckets() { + return getBucketsMap(); + } + /** + * + * + *
+       * A map from granularity key to example count for that key.
+       * E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
+       * 
+ * + * map<int32, int64> buckets = 1; + */ + public java.util.Map getBucketsMap() { + return internalGetBuckets().getMap(); + } + /** + * + * + *
+       * A map from granularity key to example count for that key.
+       * E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
+       * 
+ * + * map<int32, int64> buckets = 1; + */ + public long getBucketsOrDefault(int key, long defaultValue) { + + java.util.Map map = internalGetBuckets().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+       * A map from granularity key to example count for that key.
+       * E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
+       * 
+ * + * map<int32, int64> buckets = 1; + */ + public long getBucketsOrThrow(int key) { + + java.util.Map map = internalGetBuckets().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearBuckets() { + internalGetMutableBuckets().getMutableMap().clear(); + return this; + } + /** + * + * + *
+       * A map from granularity key to example count for that key.
+       * E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
+       * 
+ * + * map<int32, int64> buckets = 1; + */ + public Builder removeBuckets(int key) { + + internalGetMutableBuckets().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableBuckets() { + return internalGetMutableBuckets().getMutableMap(); + } + /** + * + * + *
+       * A map from granularity key to example count for that key.
+       * E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
+       * 
+ * + * map<int32, int64> buckets = 1; + */ + public Builder putBuckets(int key, long value) { + + internalGetMutableBuckets().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+       * A map from granularity key to example count for that key.
+       * E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May).
+       * 
+ * + * map<int32, int64> buckets = 1; + */ + public Builder putAllBuckets(java.util.Map values) { + internalGetMutableBuckets().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TimestampStats.GranularStats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TimestampStats.GranularStats) + private static final com.google.cloud.automl.v1beta1.TimestampStats.GranularStats + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TimestampStats.GranularStats(); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats.GranularStats + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GranularStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GranularStats(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int GRANULAR_STATS_FIELD_NUMBER = 1; + + private static final class GranularStatsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_TimestampStats_GranularStatsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.automl.v1beta1.TimestampStats.GranularStats + .getDefaultInstance()); + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats> + granularStats_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats> + internalGetGranularStats() { + if (granularStats_ == null) { + return com.google.protobuf.MapField.emptyMapField( + GranularStatsDefaultEntryHolder.defaultEntry); + } + return granularStats_; + } + + public int getGranularStatsCount() { + return internalGetGranularStats().getMap().size(); + } + /** + * + * + *
+   * The string key is the pre-defined granularity. Currently supported:
+   * hour_of_day, day_of_week, month_of_year.
+   * Granularities finer that the granularity of timestamp data are not
+   * populated (e.g. if timestamps are at day granularity, then hour_of_day
+   * is not populated).
+   * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + */ + public boolean containsGranularStats(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetGranularStats().getMap().containsKey(key); + } + /** Use {@link #getGranularStatsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats> + getGranularStats() { + return getGranularStatsMap(); + } + /** + * + * + *
+   * The string key is the pre-defined granularity. Currently supported:
+   * hour_of_day, day_of_week, month_of_year.
+   * Granularities finer that the granularity of timestamp data are not
+   * populated (e.g. if timestamps are at day granularity, then hour_of_day
+   * is not populated).
+   * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + */ + public java.util.Map< + java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats> + getGranularStatsMap() { + return internalGetGranularStats().getMap(); + } + /** + * + * + *
+   * The string key is the pre-defined granularity. Currently supported:
+   * hour_of_day, day_of_week, month_of_year.
+   * Granularities finer that the granularity of timestamp data are not
+   * populated (e.g. if timestamps are at day granularity, then hour_of_day
+   * is not populated).
+   * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + */ + public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats getGranularStatsOrDefault( + java.lang.String key, + com.google.cloud.automl.v1beta1.TimestampStats.GranularStats defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map + map = internalGetGranularStats().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * The string key is the pre-defined granularity. Currently supported:
+   * hour_of_day, day_of_week, month_of_year.
+   * Granularities finer that the granularity of timestamp data are not
+   * populated (e.g. if timestamps are at day granularity, then hour_of_day
+   * is not populated).
+   * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + */ + public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats getGranularStatsOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map + map = internalGetGranularStats().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetGranularStats(), GranularStatsDefaultEntryHolder.defaultEntry, 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats> + entry : internalGetGranularStats().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats> + granularStats__ = + GranularStatsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, granularStats__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.TimestampStats)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.TimestampStats other = + (com.google.cloud.automl.v1beta1.TimestampStats) obj; + + if (!internalGetGranularStats().equals(other.internalGetGranularStats())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetGranularStats().getMap().isEmpty()) { + hash = (37 * hash) + GRANULAR_STATS_FIELD_NUMBER; + hash = (53 * hash) + internalGetGranularStats().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.TimestampStats parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.TimestampStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The data statistics of a series of TIMESTAMP values.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.TimestampStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.TimestampStats) + com.google.cloud.automl.v1beta1.TimestampStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_TimestampStats_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetGranularStats(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 1: + return internalGetMutableGranularStats(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_TimestampStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.TimestampStats.class, + com.google.cloud.automl.v1beta1.TimestampStats.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.TimestampStats.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableGranularStats().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.DataStatsOuterClass + .internal_static_google_cloud_automl_v1beta1_TimestampStats_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TimestampStats getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.TimestampStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TimestampStats build() { + com.google.cloud.automl.v1beta1.TimestampStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TimestampStats buildPartial() { + com.google.cloud.automl.v1beta1.TimestampStats result = + new com.google.cloud.automl.v1beta1.TimestampStats(this); + int from_bitField0_ = bitField0_; + result.granularStats_ = internalGetGranularStats(); + result.granularStats_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.TimestampStats) { + return mergeFrom((com.google.cloud.automl.v1beta1.TimestampStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.TimestampStats other) { + if (other == com.google.cloud.automl.v1beta1.TimestampStats.getDefaultInstance()) return this; + internalGetMutableGranularStats().mergeFrom(other.internalGetGranularStats()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.TimestampStats parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.automl.v1beta1.TimestampStats) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats> + granularStats_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats> + internalGetGranularStats() { + if (granularStats_ == null) { + return com.google.protobuf.MapField.emptyMapField( + GranularStatsDefaultEntryHolder.defaultEntry); + } + return granularStats_; + } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats> + internalGetMutableGranularStats() { + onChanged(); + ; + if (granularStats_ == null) { + granularStats_ = + com.google.protobuf.MapField.newMapField(GranularStatsDefaultEntryHolder.defaultEntry); + } + if (!granularStats_.isMutable()) { + granularStats_ = granularStats_.copy(); + } + return granularStats_; + } + + public int getGranularStatsCount() { + return internalGetGranularStats().getMap().size(); + } + /** + * + * + *
+     * The string key is the pre-defined granularity. Currently supported:
+     * hour_of_day, day_of_week, month_of_year.
+     * Granularities finer that the granularity of timestamp data are not
+     * populated (e.g. if timestamps are at day granularity, then hour_of_day
+     * is not populated).
+     * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + */ + public boolean containsGranularStats(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetGranularStats().getMap().containsKey(key); + } + /** Use {@link #getGranularStatsMap()} instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats> + getGranularStats() { + return getGranularStatsMap(); + } + /** + * + * + *
+     * The string key is the pre-defined granularity. Currently supported:
+     * hour_of_day, day_of_week, month_of_year.
+     * Granularities finer that the granularity of timestamp data are not
+     * populated (e.g. if timestamps are at day granularity, then hour_of_day
+     * is not populated).
+     * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + */ + public java.util.Map< + java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats> + getGranularStatsMap() { + return internalGetGranularStats().getMap(); + } + /** + * + * + *
+     * The string key is the pre-defined granularity. Currently supported:
+     * hour_of_day, day_of_week, month_of_year.
+     * Granularities finer that the granularity of timestamp data are not
+     * populated (e.g. if timestamps are at day granularity, then hour_of_day
+     * is not populated).
+     * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + */ + public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats getGranularStatsOrDefault( + java.lang.String key, + com.google.cloud.automl.v1beta1.TimestampStats.GranularStats defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map + map = internalGetGranularStats().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The string key is the pre-defined granularity. Currently supported:
+     * hour_of_day, day_of_week, month_of_year.
+     * Granularities finer that the granularity of timestamp data are not
+     * populated (e.g. if timestamps are at day granularity, then hour_of_day
+     * is not populated).
+     * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + */ + public com.google.cloud.automl.v1beta1.TimestampStats.GranularStats getGranularStatsOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map + map = internalGetGranularStats().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearGranularStats() { + internalGetMutableGranularStats().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * The string key is the pre-defined granularity. Currently supported:
+     * hour_of_day, day_of_week, month_of_year.
+     * Granularities finer that the granularity of timestamp data are not
+     * populated (e.g. if timestamps are at day granularity, then hour_of_day
+     * is not populated).
+     * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + */ + public Builder removeGranularStats(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableGranularStats().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats> + getMutableGranularStats() { + return internalGetMutableGranularStats().getMutableMap(); + } + /** + * + * + *
+     * The string key is the pre-defined granularity. Currently supported:
+     * hour_of_day, day_of_week, month_of_year.
+     * Granularities finer that the granularity of timestamp data are not
+     * populated (e.g. if timestamps are at day granularity, then hour_of_day
+     * is not populated).
+     * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + */ + public Builder putGranularStats( + java.lang.String key, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableGranularStats().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * The string key is the pre-defined granularity. Currently supported:
+     * hour_of_day, day_of_week, month_of_year.
+     * Granularities finer that the granularity of timestamp data are not
+     * populated (e.g. if timestamps are at day granularity, then hour_of_day
+     * is not populated).
+     * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + */ + public Builder putAllGranularStats( + java.util.Map< + java.lang.String, com.google.cloud.automl.v1beta1.TimestampStats.GranularStats> + values) { + internalGetMutableGranularStats().getMutableMap().putAll(values); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.TimestampStats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.TimestampStats) + private static final com.google.cloud.automl.v1beta1.TimestampStats DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.TimestampStats(); + } + + public static com.google.cloud.automl.v1beta1.TimestampStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimestampStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TimestampStats(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.TimestampStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStatsOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStatsOrBuilder.java new file mode 100644 index 000000000000..fcd5cd3d1359 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TimestampStatsOrBuilder.java @@ -0,0 +1,99 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_stats.proto + +package com.google.cloud.automl.v1beta1; + +public interface TimestampStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.TimestampStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The string key is the pre-defined granularity. Currently supported:
+   * hour_of_day, day_of_week, month_of_year.
+   * Granularities finer that the granularity of timestamp data are not
+   * populated (e.g. if timestamps are at day granularity, then hour_of_day
+   * is not populated).
+   * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + */ + int getGranularStatsCount(); + /** + * + * + *
+   * The string key is the pre-defined granularity. Currently supported:
+   * hour_of_day, day_of_week, month_of_year.
+   * Granularities finer that the granularity of timestamp data are not
+   * populated (e.g. if timestamps are at day granularity, then hour_of_day
+   * is not populated).
+   * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + */ + boolean containsGranularStats(java.lang.String key); + /** Use {@link #getGranularStatsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getGranularStats(); + /** + * + * + *
+   * The string key is the pre-defined granularity. Currently supported:
+   * hour_of_day, day_of_week, month_of_year.
+   * Granularities finer that the granularity of timestamp data are not
+   * populated (e.g. if timestamps are at day granularity, then hour_of_day
+   * is not populated).
+   * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + */ + java.util.Map + getGranularStatsMap(); + /** + * + * + *
+   * The string key is the pre-defined granularity. Currently supported:
+   * hour_of_day, day_of_week, month_of_year.
+   * Granularities finer that the granularity of timestamp data are not
+   * populated (e.g. if timestamps are at day granularity, then hour_of_day
+   * is not populated).
+   * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + */ + com.google.cloud.automl.v1beta1.TimestampStats.GranularStats getGranularStatsOrDefault( + java.lang.String key, + com.google.cloud.automl.v1beta1.TimestampStats.GranularStats defaultValue); + /** + * + * + *
+   * The string key is the pre-defined granularity. Currently supported:
+   * hour_of_day, day_of_week, month_of_year.
+   * Granularities finer that the granularity of timestamp data are not
+   * populated (e.g. if timestamps are at day granularity, then hour_of_day
+   * is not populated).
+   * 
+ * + * + * map<string, .google.cloud.automl.v1beta1.TimestampStats.GranularStats> granular_stats = 1; + * + */ + com.google.cloud.automl.v1beta1.TimestampStats.GranularStats getGranularStatsOrThrow( + java.lang.String key); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TypeCode.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TypeCode.java new file mode 100644 index 000000000000..7a4cf87e5dd0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/TypeCode.java @@ -0,0 +1,266 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/data_types.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * `TypeCode` is used as a part of
+ * [DataType][google.cloud.automl.v1beta1.DataType].
+ * Each legal value of a DataType can be encoded to or decoded from a JSON
+ * value, using the encodings listed below, and definitions of which can be
+ * found at
+ * https:
+ * //developers.google.com/protocol-buffers
+ * // /docs/reference/google.protobuf#value.
+ * 
+ * + * Protobuf enum {@code google.cloud.automl.v1beta1.TypeCode} + */ +public enum TypeCode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Not specified. Should not be used.
+   * 
+ * + * TYPE_CODE_UNSPECIFIED = 0; + */ + TYPE_CODE_UNSPECIFIED(0), + /** + * + * + *
+   * Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or
+   * `"-Infinity"`.
+   * 
+ * + * FLOAT64 = 3; + */ + FLOAT64(3), + /** + * + * + *
+   * Must be between 0AD and 9999AD. Encoded as `string` according to
+   * [time_format][google.cloud.automl.v1beta1.DataType.time_format], or, if
+   * that format is not set, then in RFC 3339 `date-time` format, where
+   * `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z).
+   * 
+ * + * TIMESTAMP = 4; + */ + TIMESTAMP(4), + /** + * + * + *
+   * Encoded as `string`.
+   * 
+ * + * STRING = 6; + */ + STRING(6), + /** + * + * + *
+   * Encoded as `list`, where the list elements are represented according to
+   * [list_element_type][google.cloud.automl.v1beta1.DataType.list_element_type].
+   * 
+ * + * ARRAY = 8; + */ + ARRAY(8), + /** + * + * + *
+   * Encoded as `struct`, where field values are represented according to
+   * [struct_type][google.cloud.automl.v1beta1.DataType.struct_type].
+   * 
+ * + * STRUCT = 9; + */ + STRUCT(9), + /** + * + * + *
+   * Values of this type are not further understood by AutoML,
+   * e.g. AutoML is unable to tell the order of values (as it could with
+   * FLOAT64), or is unable to say if one value contains another (as it
+   * could with STRING).
+   * Encoded as `string` (bytes should be base64-encoded, as described in RFC
+   * 4648, section 4).
+   * 
+ * + * CATEGORY = 10; + */ + CATEGORY(10), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Not specified. Should not be used.
+   * 
+ * + * TYPE_CODE_UNSPECIFIED = 0; + */ + public static final int TYPE_CODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or
+   * `"-Infinity"`.
+   * 
+ * + * FLOAT64 = 3; + */ + public static final int FLOAT64_VALUE = 3; + /** + * + * + *
+   * Must be between 0AD and 9999AD. Encoded as `string` according to
+   * [time_format][google.cloud.automl.v1beta1.DataType.time_format], or, if
+   * that format is not set, then in RFC 3339 `date-time` format, where
+   * `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z).
+   * 
+ * + * TIMESTAMP = 4; + */ + public static final int TIMESTAMP_VALUE = 4; + /** + * + * + *
+   * Encoded as `string`.
+   * 
+ * + * STRING = 6; + */ + public static final int STRING_VALUE = 6; + /** + * + * + *
+   * Encoded as `list`, where the list elements are represented according to
+   * [list_element_type][google.cloud.automl.v1beta1.DataType.list_element_type].
+   * 
+ * + * ARRAY = 8; + */ + public static final int ARRAY_VALUE = 8; + /** + * + * + *
+   * Encoded as `struct`, where field values are represented according to
+   * [struct_type][google.cloud.automl.v1beta1.DataType.struct_type].
+   * 
+ * + * STRUCT = 9; + */ + public static final int STRUCT_VALUE = 9; + /** + * + * + *
+   * Values of this type are not further understood by AutoML,
+   * e.g. AutoML is unable to tell the order of values (as it could with
+   * FLOAT64), or is unable to say if one value contains another (as it
+   * could with STRING).
+   * Encoded as `string` (bytes should be base64-encoded, as described in RFC
+   * 4648, section 4).
+   * 
+ * + * CATEGORY = 10; + */ + public static final int CATEGORY_VALUE = 10; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static TypeCode valueOf(int value) { + return forNumber(value); + } + + public static TypeCode forNumber(int value) { + switch (value) { + case 0: + return TYPE_CODE_UNSPECIFIED; + case 3: + return FLOAT64; + case 4: + return TIMESTAMP; + case 6: + return STRING; + case 8: + return ARRAY; + case 9: + return STRUCT; + case 10: + return CATEGORY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TypeCode findValueByNumber(int number) { + return TypeCode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.DataTypes.getDescriptor().getEnumTypes().get(0); + } + + private static final TypeCode[] VALUES = values(); + + public static TypeCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TypeCode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.automl.v1beta1.TypeCode) +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadata.java new file mode 100644 index 000000000000..6a2e71a67c6e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadata.java @@ -0,0 +1,443 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/operations.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Details of UndeployModel operation.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.UndeployModelOperationMetadata} + */ +public final class UndeployModelOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.UndeployModelOperationMetadata) + UndeployModelOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UndeployModelOperationMetadata.newBuilder() to construct. + private UndeployModelOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UndeployModelOperationMetadata() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UndeployModelOperationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_UndeployModelOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_UndeployModelOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.class, + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata other = + (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Details of UndeployModel operation.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.UndeployModelOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.UndeployModelOperationMetadata) + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_UndeployModelOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_UndeployModelOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.class, + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.Operations + .internal_static_google_cloud_automl_v1beta1_UndeployModelOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata build() { + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata buildPartial() { + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata result = + new com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) { + return mergeFrom((com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata other) { + if (other + == com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.UndeployModelOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.UndeployModelOperationMetadata) + private static final com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata(); + } + + public static com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeployModelOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UndeployModelOperationMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.UndeployModelOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..a1f099c32c38 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelOperationMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/operations.proto + +package com.google.cloud.automl.v1beta1; + +public interface UndeployModelOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.UndeployModelOperationMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequest.java index ba666ecfaf87..56b66a4d8037 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequest.java +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UndeployModelRequest.java @@ -7,8 +7,7 @@ * * *
- * Request message for
- * [AutoMl.UndeployModel][google.cloud.automl.v1beta1.AutoMl.UndeployModel].
+ * Request message for [AutoMl.UndeployModel][google.cloud.automl.v1beta1.AutoMl.UndeployModel].
  * 
* * Protobuf type {@code google.cloud.automl.v1beta1.UndeployModelRequest} @@ -298,8 +297,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for
-   * [AutoMl.UndeployModel][google.cloud.automl.v1beta1.AutoMl.UndeployModel].
+   * Request message for [AutoMl.UndeployModel][google.cloud.automl.v1beta1.AutoMl.UndeployModel].
    * 
* * Protobuf type {@code google.cloud.automl.v1beta1.UndeployModelRequest} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequest.java new file mode 100644 index 000000000000..b7633b904079 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequest.java @@ -0,0 +1,1013 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Request message for [AutoMl.UpdateColumnSpec][google.cloud.automl.v1beta1.AutoMl.UpdateColumnSpec]
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.UpdateColumnSpecRequest} + */ +public final class UpdateColumnSpecRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.UpdateColumnSpecRequest) + UpdateColumnSpecRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateColumnSpecRequest.newBuilder() to construct. + private UpdateColumnSpecRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateColumnSpecRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateColumnSpecRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.automl.v1beta1.ColumnSpec.Builder subBuilder = null; + if (columnSpec_ != null) { + subBuilder = columnSpec_.toBuilder(); + } + columnSpec_ = + input.readMessage( + com.google.cloud.automl.v1beta1.ColumnSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(columnSpec_); + columnSpec_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_UpdateColumnSpecRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_UpdateColumnSpecRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest.class, + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest.Builder.class); + } + + public static final int COLUMN_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.automl.v1beta1.ColumnSpec columnSpec_; + /** + * + * + *
+   * The column spec which replaces the resource on the server.
+   * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1; + */ + public boolean hasColumnSpec() { + return columnSpec_ != null; + } + /** + * + * + *
+   * The column spec which replaces the resource on the server.
+   * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1; + */ + public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpec() { + return columnSpec_ == null + ? com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance() + : columnSpec_; + } + /** + * + * + *
+   * The column spec which replaces the resource on the server.
+   * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1; + */ + public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getColumnSpecOrBuilder() { + return getColumnSpec(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (columnSpec_ != null) { + output.writeMessage(1, getColumnSpec()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (columnSpec_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getColumnSpec()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest other = + (com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest) obj; + + if (hasColumnSpec() != other.hasColumnSpec()) return false; + if (hasColumnSpec()) { + if (!getColumnSpec().equals(other.getColumnSpec())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasColumnSpec()) { + hash = (37 * hash) + COLUMN_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getColumnSpec().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [AutoMl.UpdateColumnSpec][google.cloud.automl.v1beta1.AutoMl.UpdateColumnSpec]
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.UpdateColumnSpecRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.UpdateColumnSpecRequest) + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_UpdateColumnSpecRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_UpdateColumnSpecRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest.class, + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (columnSpecBuilder_ == null) { + columnSpec_ = null; + } else { + columnSpec_ = null; + columnSpecBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_UpdateColumnSpecRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest build() { + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest buildPartial() { + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest result = + new com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest(this); + if (columnSpecBuilder_ == null) { + result.columnSpec_ = columnSpec_; + } else { + result.columnSpec_ = columnSpecBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest) { + return mergeFrom((com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest other) { + if (other == com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest.getDefaultInstance()) + return this; + if (other.hasColumnSpec()) { + mergeColumnSpec(other.getColumnSpec()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.automl.v1beta1.ColumnSpec columnSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ColumnSpec, + com.google.cloud.automl.v1beta1.ColumnSpec.Builder, + com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder> + columnSpecBuilder_; + /** + * + * + *
+     * The column spec which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1; + */ + public boolean hasColumnSpec() { + return columnSpecBuilder_ != null || columnSpec_ != null; + } + /** + * + * + *
+     * The column spec which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1; + */ + public com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpec() { + if (columnSpecBuilder_ == null) { + return columnSpec_ == null + ? com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance() + : columnSpec_; + } else { + return columnSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The column spec which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1; + */ + public Builder setColumnSpec(com.google.cloud.automl.v1beta1.ColumnSpec value) { + if (columnSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + columnSpec_ = value; + onChanged(); + } else { + columnSpecBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The column spec which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1; + */ + public Builder setColumnSpec( + com.google.cloud.automl.v1beta1.ColumnSpec.Builder builderForValue) { + if (columnSpecBuilder_ == null) { + columnSpec_ = builderForValue.build(); + onChanged(); + } else { + columnSpecBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The column spec which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1; + */ + public Builder mergeColumnSpec(com.google.cloud.automl.v1beta1.ColumnSpec value) { + if (columnSpecBuilder_ == null) { + if (columnSpec_ != null) { + columnSpec_ = + com.google.cloud.automl.v1beta1.ColumnSpec.newBuilder(columnSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + columnSpec_ = value; + } + onChanged(); + } else { + columnSpecBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The column spec which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1; + */ + public Builder clearColumnSpec() { + if (columnSpecBuilder_ == null) { + columnSpec_ = null; + onChanged(); + } else { + columnSpec_ = null; + columnSpecBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The column spec which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1; + */ + public com.google.cloud.automl.v1beta1.ColumnSpec.Builder getColumnSpecBuilder() { + + onChanged(); + return getColumnSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The column spec which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1; + */ + public com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getColumnSpecOrBuilder() { + if (columnSpecBuilder_ != null) { + return columnSpecBuilder_.getMessageOrBuilder(); + } else { + return columnSpec_ == null + ? com.google.cloud.automl.v1beta1.ColumnSpec.getDefaultInstance() + : columnSpec_; + } + } + /** + * + * + *
+     * The column spec which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ColumnSpec, + com.google.cloud.automl.v1beta1.ColumnSpec.Builder, + com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder> + getColumnSpecFieldBuilder() { + if (columnSpecBuilder_ == null) { + columnSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.ColumnSpec, + com.google.cloud.automl.v1beta1.ColumnSpec.Builder, + com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder>( + getColumnSpec(), getParentForChildren(), isClean()); + columnSpec_ = null; + } + return columnSpecBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.UpdateColumnSpecRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.UpdateColumnSpecRequest) + private static final com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest(); + } + + public static com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateColumnSpecRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateColumnSpecRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequestOrBuilder.java new file mode 100644 index 000000000000..d529587f3dc2 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateColumnSpecRequestOrBuilder.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface UpdateColumnSpecRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.UpdateColumnSpecRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The column spec which replaces the resource on the server.
+   * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1; + */ + boolean hasColumnSpec(); + /** + * + * + *
+   * The column spec which replaces the resource on the server.
+   * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1; + */ + com.google.cloud.automl.v1beta1.ColumnSpec getColumnSpec(); + /** + * + * + *
+   * The column spec which replaces the resource on the server.
+   * 
+ * + * .google.cloud.automl.v1beta1.ColumnSpec column_spec = 1; + */ + com.google.cloud.automl.v1beta1.ColumnSpecOrBuilder getColumnSpecOrBuilder(); + + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequest.java new file mode 100644 index 000000000000..a37a497533f4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequest.java @@ -0,0 +1,1011 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Request message for [AutoMl.UpdateDataset][google.cloud.automl.v1beta1.AutoMl.UpdateDataset]
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.UpdateDatasetRequest} + */ +public final class UpdateDatasetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.UpdateDatasetRequest) + UpdateDatasetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateDatasetRequest.newBuilder() to construct. + private UpdateDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDatasetRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateDatasetRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.automl.v1beta1.Dataset.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); + } + dataset_ = + input.readMessage( + com.google.cloud.automl.v1beta1.Dataset.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataset_); + dataset_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_UpdateDatasetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_UpdateDatasetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.UpdateDatasetRequest.class, + com.google.cloud.automl.v1beta1.UpdateDatasetRequest.Builder.class); + } + + public static final int DATASET_FIELD_NUMBER = 1; + private com.google.cloud.automl.v1beta1.Dataset dataset_; + /** + * + * + *
+   * The dataset which replaces the resource on the server.
+   * 
+ * + * .google.cloud.automl.v1beta1.Dataset dataset = 1; + */ + public boolean hasDataset() { + return dataset_ != null; + } + /** + * + * + *
+   * The dataset which replaces the resource on the server.
+   * 
+ * + * .google.cloud.automl.v1beta1.Dataset dataset = 1; + */ + public com.google.cloud.automl.v1beta1.Dataset getDataset() { + return dataset_ == null + ? com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() + : dataset_; + } + /** + * + * + *
+   * The dataset which replaces the resource on the server.
+   * 
+ * + * .google.cloud.automl.v1beta1.Dataset dataset = 1; + */ + public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetOrBuilder() { + return getDataset(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (dataset_ != null) { + output.writeMessage(1, getDataset()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataset_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataset()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.UpdateDatasetRequest)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.UpdateDatasetRequest other = + (com.google.cloud.automl.v1beta1.UpdateDatasetRequest) obj; + + if (hasDataset() != other.hasDataset()) return false; + if (hasDataset()) { + if (!getDataset().equals(other.getDataset())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDataset()) { + hash = (37 * hash) + DATASET_FIELD_NUMBER; + hash = (53 * hash) + getDataset().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.UpdateDatasetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.UpdateDatasetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.UpdateDatasetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.UpdateDatasetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.UpdateDatasetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.UpdateDatasetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.UpdateDatasetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.UpdateDatasetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.UpdateDatasetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.UpdateDatasetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.UpdateDatasetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.UpdateDatasetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.automl.v1beta1.UpdateDatasetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [AutoMl.UpdateDataset][google.cloud.automl.v1beta1.AutoMl.UpdateDataset]
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.UpdateDatasetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.UpdateDatasetRequest) + com.google.cloud.automl.v1beta1.UpdateDatasetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_UpdateDatasetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_UpdateDatasetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.UpdateDatasetRequest.class, + com.google.cloud.automl.v1beta1.UpdateDatasetRequest.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.UpdateDatasetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (datasetBuilder_ == null) { + dataset_ = null; + } else { + dataset_ = null; + datasetBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_UpdateDatasetRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.UpdateDatasetRequest getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.UpdateDatasetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.UpdateDatasetRequest build() { + com.google.cloud.automl.v1beta1.UpdateDatasetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.UpdateDatasetRequest buildPartial() { + com.google.cloud.automl.v1beta1.UpdateDatasetRequest result = + new com.google.cloud.automl.v1beta1.UpdateDatasetRequest(this); + if (datasetBuilder_ == null) { + result.dataset_ = dataset_; + } else { + result.dataset_ = datasetBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.UpdateDatasetRequest) { + return mergeFrom((com.google.cloud.automl.v1beta1.UpdateDatasetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.UpdateDatasetRequest other) { + if (other == com.google.cloud.automl.v1beta1.UpdateDatasetRequest.getDefaultInstance()) + return this; + if (other.hasDataset()) { + mergeDataset(other.getDataset()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.UpdateDatasetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.UpdateDatasetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.automl.v1beta1.Dataset dataset_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.Dataset, + com.google.cloud.automl.v1beta1.Dataset.Builder, + com.google.cloud.automl.v1beta1.DatasetOrBuilder> + datasetBuilder_; + /** + * + * + *
+     * The dataset which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.Dataset dataset = 1; + */ + public boolean hasDataset() { + return datasetBuilder_ != null || dataset_ != null; + } + /** + * + * + *
+     * The dataset which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.Dataset dataset = 1; + */ + public com.google.cloud.automl.v1beta1.Dataset getDataset() { + if (datasetBuilder_ == null) { + return dataset_ == null + ? com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() + : dataset_; + } else { + return datasetBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The dataset which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.Dataset dataset = 1; + */ + public Builder setDataset(com.google.cloud.automl.v1beta1.Dataset value) { + if (datasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataset_ = value; + onChanged(); + } else { + datasetBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The dataset which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.Dataset dataset = 1; + */ + public Builder setDataset(com.google.cloud.automl.v1beta1.Dataset.Builder builderForValue) { + if (datasetBuilder_ == null) { + dataset_ = builderForValue.build(); + onChanged(); + } else { + datasetBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The dataset which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.Dataset dataset = 1; + */ + public Builder mergeDataset(com.google.cloud.automl.v1beta1.Dataset value) { + if (datasetBuilder_ == null) { + if (dataset_ != null) { + dataset_ = + com.google.cloud.automl.v1beta1.Dataset.newBuilder(dataset_) + .mergeFrom(value) + .buildPartial(); + } else { + dataset_ = value; + } + onChanged(); + } else { + datasetBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The dataset which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.Dataset dataset = 1; + */ + public Builder clearDataset() { + if (datasetBuilder_ == null) { + dataset_ = null; + onChanged(); + } else { + dataset_ = null; + datasetBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The dataset which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.Dataset dataset = 1; + */ + public com.google.cloud.automl.v1beta1.Dataset.Builder getDatasetBuilder() { + + onChanged(); + return getDatasetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The dataset which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.Dataset dataset = 1; + */ + public com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetOrBuilder() { + if (datasetBuilder_ != null) { + return datasetBuilder_.getMessageOrBuilder(); + } else { + return dataset_ == null + ? com.google.cloud.automl.v1beta1.Dataset.getDefaultInstance() + : dataset_; + } + } + /** + * + * + *
+     * The dataset which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.Dataset dataset = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.Dataset, + com.google.cloud.automl.v1beta1.Dataset.Builder, + com.google.cloud.automl.v1beta1.DatasetOrBuilder> + getDatasetFieldBuilder() { + if (datasetBuilder_ == null) { + datasetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.Dataset, + com.google.cloud.automl.v1beta1.Dataset.Builder, + com.google.cloud.automl.v1beta1.DatasetOrBuilder>( + getDataset(), getParentForChildren(), isClean()); + dataset_ = null; + } + return datasetBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.UpdateDatasetRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.UpdateDatasetRequest) + private static final com.google.cloud.automl.v1beta1.UpdateDatasetRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.UpdateDatasetRequest(); + } + + public static com.google.cloud.automl.v1beta1.UpdateDatasetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateDatasetRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.UpdateDatasetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequestOrBuilder.java new file mode 100644 index 000000000000..2dad2cc726f6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateDatasetRequestOrBuilder.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface UpdateDatasetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.UpdateDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The dataset which replaces the resource on the server.
+   * 
+ * + * .google.cloud.automl.v1beta1.Dataset dataset = 1; + */ + boolean hasDataset(); + /** + * + * + *
+   * The dataset which replaces the resource on the server.
+   * 
+ * + * .google.cloud.automl.v1beta1.Dataset dataset = 1; + */ + com.google.cloud.automl.v1beta1.Dataset getDataset(); + /** + * + * + *
+   * The dataset which replaces the resource on the server.
+   * 
+ * + * .google.cloud.automl.v1beta1.Dataset dataset = 1; + */ + com.google.cloud.automl.v1beta1.DatasetOrBuilder getDatasetOrBuilder(); + + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequest.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequest.java new file mode 100644 index 000000000000..ba57703777c6 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequest.java @@ -0,0 +1,1012 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Request message for [AutoMl.UpdateTableSpec][google.cloud.automl.v1beta1.AutoMl.UpdateTableSpec]
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.UpdateTableSpecRequest} + */ +public final class UpdateTableSpecRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.UpdateTableSpecRequest) + UpdateTableSpecRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateTableSpecRequest.newBuilder() to construct. + private UpdateTableSpecRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateTableSpecRequest() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateTableSpecRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.automl.v1beta1.TableSpec.Builder subBuilder = null; + if (tableSpec_ != null) { + subBuilder = tableSpec_.toBuilder(); + } + tableSpec_ = + input.readMessage( + com.google.cloud.automl.v1beta1.TableSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tableSpec_); + tableSpec_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_UpdateTableSpecRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_UpdateTableSpecRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest.class, + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest.Builder.class); + } + + public static final int TABLE_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.automl.v1beta1.TableSpec tableSpec_; + /** + * + * + *
+   * The table spec which replaces the resource on the server.
+   * 
+ * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1; + */ + public boolean hasTableSpec() { + return tableSpec_ != null; + } + /** + * + * + *
+   * The table spec which replaces the resource on the server.
+   * 
+ * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1; + */ + public com.google.cloud.automl.v1beta1.TableSpec getTableSpec() { + return tableSpec_ == null + ? com.google.cloud.automl.v1beta1.TableSpec.getDefaultInstance() + : tableSpec_; + } + /** + * + * + *
+   * The table spec which replaces the resource on the server.
+   * 
+ * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1; + */ + public com.google.cloud.automl.v1beta1.TableSpecOrBuilder getTableSpecOrBuilder() { + return getTableSpec(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (tableSpec_ != null) { + output.writeMessage(1, getTableSpec()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (tableSpec_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTableSpec()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.UpdateTableSpecRequest)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest other = + (com.google.cloud.automl.v1beta1.UpdateTableSpecRequest) obj; + + if (hasTableSpec() != other.hasTableSpec()) return false; + if (hasTableSpec()) { + if (!getTableSpec().equals(other.getTableSpec())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTableSpec()) { + hash = (37 * hash) + TABLE_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getTableSpec().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.UpdateTableSpecRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.UpdateTableSpecRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.UpdateTableSpecRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.UpdateTableSpecRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.UpdateTableSpecRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.UpdateTableSpecRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.UpdateTableSpecRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.UpdateTableSpecRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.UpdateTableSpecRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.UpdateTableSpecRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.UpdateTableSpecRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.UpdateTableSpecRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for [AutoMl.UpdateTableSpec][google.cloud.automl.v1beta1.AutoMl.UpdateTableSpec]
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.UpdateTableSpecRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.UpdateTableSpecRequest) + com.google.cloud.automl.v1beta1.UpdateTableSpecRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_UpdateTableSpecRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_UpdateTableSpecRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest.class, + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.UpdateTableSpecRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (tableSpecBuilder_ == null) { + tableSpec_ = null; + } else { + tableSpec_ = null; + tableSpecBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.AutoMlProto + .internal_static_google_cloud_automl_v1beta1_UpdateTableSpecRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.UpdateTableSpecRequest getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.UpdateTableSpecRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.UpdateTableSpecRequest build() { + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.UpdateTableSpecRequest buildPartial() { + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest result = + new com.google.cloud.automl.v1beta1.UpdateTableSpecRequest(this); + if (tableSpecBuilder_ == null) { + result.tableSpec_ = tableSpec_; + } else { + result.tableSpec_ = tableSpecBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.UpdateTableSpecRequest) { + return mergeFrom((com.google.cloud.automl.v1beta1.UpdateTableSpecRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.automl.v1beta1.UpdateTableSpecRequest other) { + if (other == com.google.cloud.automl.v1beta1.UpdateTableSpecRequest.getDefaultInstance()) + return this; + if (other.hasTableSpec()) { + mergeTableSpec(other.getTableSpec()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.UpdateTableSpecRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.UpdateTableSpecRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.automl.v1beta1.TableSpec tableSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TableSpec, + com.google.cloud.automl.v1beta1.TableSpec.Builder, + com.google.cloud.automl.v1beta1.TableSpecOrBuilder> + tableSpecBuilder_; + /** + * + * + *
+     * The table spec which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1; + */ + public boolean hasTableSpec() { + return tableSpecBuilder_ != null || tableSpec_ != null; + } + /** + * + * + *
+     * The table spec which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1; + */ + public com.google.cloud.automl.v1beta1.TableSpec getTableSpec() { + if (tableSpecBuilder_ == null) { + return tableSpec_ == null + ? com.google.cloud.automl.v1beta1.TableSpec.getDefaultInstance() + : tableSpec_; + } else { + return tableSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The table spec which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1; + */ + public Builder setTableSpec(com.google.cloud.automl.v1beta1.TableSpec value) { + if (tableSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tableSpec_ = value; + onChanged(); + } else { + tableSpecBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The table spec which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1; + */ + public Builder setTableSpec(com.google.cloud.automl.v1beta1.TableSpec.Builder builderForValue) { + if (tableSpecBuilder_ == null) { + tableSpec_ = builderForValue.build(); + onChanged(); + } else { + tableSpecBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The table spec which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1; + */ + public Builder mergeTableSpec(com.google.cloud.automl.v1beta1.TableSpec value) { + if (tableSpecBuilder_ == null) { + if (tableSpec_ != null) { + tableSpec_ = + com.google.cloud.automl.v1beta1.TableSpec.newBuilder(tableSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + tableSpec_ = value; + } + onChanged(); + } else { + tableSpecBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The table spec which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1; + */ + public Builder clearTableSpec() { + if (tableSpecBuilder_ == null) { + tableSpec_ = null; + onChanged(); + } else { + tableSpec_ = null; + tableSpecBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The table spec which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1; + */ + public com.google.cloud.automl.v1beta1.TableSpec.Builder getTableSpecBuilder() { + + onChanged(); + return getTableSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The table spec which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1; + */ + public com.google.cloud.automl.v1beta1.TableSpecOrBuilder getTableSpecOrBuilder() { + if (tableSpecBuilder_ != null) { + return tableSpecBuilder_.getMessageOrBuilder(); + } else { + return tableSpec_ == null + ? com.google.cloud.automl.v1beta1.TableSpec.getDefaultInstance() + : tableSpec_; + } + } + /** + * + * + *
+     * The table spec which replaces the resource on the server.
+     * 
+ * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TableSpec, + com.google.cloud.automl.v1beta1.TableSpec.Builder, + com.google.cloud.automl.v1beta1.TableSpecOrBuilder> + getTableSpecFieldBuilder() { + if (tableSpecBuilder_ == null) { + tableSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.automl.v1beta1.TableSpec, + com.google.cloud.automl.v1beta1.TableSpec.Builder, + com.google.cloud.automl.v1beta1.TableSpecOrBuilder>( + getTableSpec(), getParentForChildren(), isClean()); + tableSpec_ = null; + } + return tableSpecBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * The update mask applies to the resource. For the `FieldMask` definition,
+     * see
+     * https:
+     * //developers.google.com/protocol-buffers
+     * // /docs/reference/google.protobuf#fieldmask
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.UpdateTableSpecRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.UpdateTableSpecRequest) + private static final com.google.cloud.automl.v1beta1.UpdateTableSpecRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.UpdateTableSpecRequest(); + } + + public static com.google.cloud.automl.v1beta1.UpdateTableSpecRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateTableSpecRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateTableSpecRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.UpdateTableSpecRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequestOrBuilder.java new file mode 100644 index 000000000000..8f56fd59e8fa --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/UpdateTableSpecRequestOrBuilder.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/service.proto + +package com.google.cloud.automl.v1beta1; + +public interface UpdateTableSpecRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.UpdateTableSpecRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The table spec which replaces the resource on the server.
+   * 
+ * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1; + */ + boolean hasTableSpec(); + /** + * + * + *
+   * The table spec which replaces the resource on the server.
+   * 
+ * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1; + */ + com.google.cloud.automl.v1beta1.TableSpec getTableSpec(); + /** + * + * + *
+   * The table spec which replaces the resource on the server.
+   * 
+ * + * .google.cloud.automl.v1beta1.TableSpec table_spec = 1; + */ + com.google.cloud.automl.v1beta1.TableSpecOrBuilder getTableSpecOrBuilder(); + + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * The update mask applies to the resource. For the `FieldMask` definition,
+   * see
+   * https:
+   * //developers.google.com/protocol-buffers
+   * // /docs/reference/google.protobuf#fieldmask
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadata.java new file mode 100644 index 000000000000..d450d5e6c3cf --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadata.java @@ -0,0 +1,450 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/video.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Dataset metadata specific to video classification.
+ * All Video Classification datasets are treated as multi label.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata} + */ +public final class VideoClassificationDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) + VideoClassificationDatasetMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use VideoClassificationDatasetMetadata.newBuilder() to construct. + private VideoClassificationDatasetMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VideoClassificationDatasetMetadata() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private VideoClassificationDatasetMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.VideoProto + .internal_static_google_cloud_automl_v1beta1_VideoClassificationDatasetMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.VideoProto + .internal_static_google_cloud_automl_v1beta1_VideoClassificationDatasetMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.class, + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata other = + (com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Dataset metadata specific to video classification.
+   * All Video Classification datasets are treated as multi label.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.VideoProto + .internal_static_google_cloud_automl_v1beta1_VideoClassificationDatasetMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.VideoProto + .internal_static_google_cloud_automl_v1beta1_VideoClassificationDatasetMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.class, + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.VideoProto + .internal_static_google_cloud_automl_v1beta1_VideoClassificationDatasetMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata build() { + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata buildPartial() { + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata result = + new com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) { + return mergeFrom( + (com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata other) { + if (other + == com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) + private static final com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata(); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoClassificationDatasetMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoClassificationDatasetMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadataOrBuilder.java new file mode 100644 index 000000000000..73ec80d957c5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationDatasetMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/video.proto + +package com.google.cloud.automl.v1beta1; + +public interface VideoClassificationDatasetMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadata.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadata.java new file mode 100644 index 000000000000..89adaca5042f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadata.java @@ -0,0 +1,444 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/video.proto + +package com.google.cloud.automl.v1beta1; + +/** + * + * + *
+ * Model metadata specific to video classification.
+ * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.VideoClassificationModelMetadata} + */ +public final class VideoClassificationModelMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.automl.v1beta1.VideoClassificationModelMetadata) + VideoClassificationModelMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use VideoClassificationModelMetadata.newBuilder() to construct. + private VideoClassificationModelMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VideoClassificationModelMetadata() {} + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private VideoClassificationModelMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.VideoProto + .internal_static_google_cloud_automl_v1beta1_VideoClassificationModelMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.VideoProto + .internal_static_google_cloud_automl_v1beta1_VideoClassificationModelMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.class, + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata)) { + return super.equals(obj); + } + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata other = + (com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Model metadata specific to video classification.
+   * 
+ * + * Protobuf type {@code google.cloud.automl.v1beta1.VideoClassificationModelMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.automl.v1beta1.VideoClassificationModelMetadata) + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.automl.v1beta1.VideoProto + .internal_static_google_cloud_automl_v1beta1_VideoClassificationModelMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.automl.v1beta1.VideoProto + .internal_static_google_cloud_automl_v1beta1_VideoClassificationModelMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.class, + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.Builder.class); + } + + // Construct using com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.automl.v1beta1.VideoProto + .internal_static_google_cloud_automl_v1beta1_VideoClassificationModelMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata + getDefaultInstanceForType() { + return com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata build() { + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata buildPartial() { + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata result = + new com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) { + return mergeFrom((com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata other) { + if (other + == com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.automl.v1beta1.VideoClassificationModelMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.automl.v1beta1.VideoClassificationModelMetadata) + private static final com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata(); + } + + public static com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoClassificationModelMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoClassificationModelMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.automl.v1beta1.VideoClassificationModelMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadataOrBuilder.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadataOrBuilder.java new file mode 100644 index 000000000000..e116c93daff4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoClassificationModelMetadataOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/video.proto + +package com.google.cloud.automl.v1beta1; + +public interface VideoClassificationModelMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1beta1.VideoClassificationModelMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoProto.java b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoProto.java new file mode 100644 index 000000000000..beb1eb2f23a1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/java/com/google/cloud/automl/v1beta1/VideoProto.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/automl/v1beta1/video.proto + +package com.google.cloud.automl.v1beta1; + +public final class VideoProto { + private VideoProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_VideoClassificationDatasetMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_VideoClassificationDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_automl_v1beta1_VideoClassificationModelMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_automl_v1beta1_VideoClassificationModelMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\'google/cloud/automl/v1beta1/video.prot" + + "o\022\033google.cloud.automl.v1beta1\032\034google/a" + + "pi/annotations.proto\0320google/cloud/autom" + + "l/v1beta1/classification.proto\"$\n\"VideoC" + + "lassificationDatasetMetadata\"\"\n VideoCla" + + "ssificationModelMetadataB\220\001\n\037com.google." + + "cloud.automl.v1beta1B\nVideoProtoP\001ZAgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "automl/v1beta1;automl\312\002\033Google\\Cloud\\Aut" + + "oMl\\V1beta1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(), + }, + assigner); + internal_static_google_cloud_automl_v1beta1_VideoClassificationDatasetMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_automl_v1beta1_VideoClassificationDatasetMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_VideoClassificationDatasetMetadata_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_automl_v1beta1_VideoClassificationModelMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_automl_v1beta1_VideoClassificationModelMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_automl_v1beta1_VideoClassificationModelMetadata_descriptor, + new java.lang.String[] {}); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.automl.v1beta1.ClassificationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/annotation_payload.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/annotation_payload.proto index a812df04e357..6a06308e3471 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/annotation_payload.proto +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/annotation_payload.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; @@ -18,23 +19,45 @@ package google.cloud.automl.v1beta1; import "google/api/annotations.proto"; import "google/cloud/automl/v1beta1/classification.proto"; +import "google/cloud/automl/v1beta1/detection.proto"; +import "google/cloud/automl/v1beta1/tables.proto"; +import "google/cloud/automl/v1beta1/text_extraction.proto"; +import "google/cloud/automl/v1beta1/text_sentiment.proto"; import "google/cloud/automl/v1beta1/translation.proto"; +import "google/protobuf/any.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl"; option java_multiple_files = true; option java_package = "com.google.cloud.automl.v1beta1"; option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + // Contains annotation information that is relevant to AutoML. message AnnotationPayload { // Output only . Additional information about the annotation - // specific to the AutoML solution. + // specific to the AutoML domain. oneof detail { // Annotation details for translation. TranslationAnnotation translation = 2; // Annotation details for content or image classification. ClassificationAnnotation classification = 3; + + // Annotation details for image object detection. + ImageObjectDetectionAnnotation image_object_detection = 4; + + // Annotation details for video classification. + // Returned for Video Classification predictions. + VideoClassificationAnnotation video_classification = 9; + + // Annotation details for text extraction. + TextExtractionAnnotation text_extraction = 6; + + // Annotation details for text sentiment. + TextSentimentAnnotation text_sentiment = 7; + + // Annotation details for Tables. + TablesAnnotation tables = 10; } // Output only . The resource ID of the annotation spec that @@ -42,11 +65,10 @@ message AnnotationPayload { // ancestor dataset, or the dataset that was used to train the model in use. string annotation_spec_id = 1; - // Output only. The value of - // [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] - // when the model was trained. Because this field returns a value at model - // training time, for different models trained using the same dataset, the - // returned value could be different as model owner could update the - // display_name between any two model training. + // Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model + // was trained. Because this field returns a value at model training time, + // for different models trained using the same dataset, the returned value + // could be different as model owner could update the display_name between + // any two model training. string display_name = 5; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/classification.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/classification.proto index 9e9a63e77d62..6f95e89e1547 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/classification.proto +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/classification.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,18 +11,21 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; package google.cloud.automl.v1beta1; import "google/api/annotations.proto"; +import "google/cloud/automl/v1beta1/temporal.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl"; option java_outer_classname = "ClassificationProto"; option java_package = "com.google.cloud.automl.v1beta1"; option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + // Contains annotation details specific to classification. message ClassificationAnnotation { // Output only. A confidence estimate between 0.0 and 1.0. A higher value @@ -33,38 +36,102 @@ message ClassificationAnnotation { float score = 1; } +// Contains annotation details specific to video classification. +message VideoClassificationAnnotation { + // Output only. Expresses the type of video classification. Possible values: + // + // * `segment` - Classification done on a specified by user + // time segment of a video. AnnotationSpec is answered to be present + // in that time segment, if it is present in any part of it. The video + // ML model evaluations are done only for this type of classification. + // + // * `shot`- Shot-level classification. + // AutoML Video Intelligence determines the boundaries + // for each camera shot in the entire segment of the video that user + // specified in the request configuration. AutoML Video Intelligence + // then returns labels and their confidence scores for each detected + // shot, along with the start and end time of the shot. + // WARNING: Model evaluation is not done for this classification type, + // the quality of it depends on training data, but there are no + // metrics provided to describe that quality. + // + // * `1s_interval` - AutoML Video Intelligence returns labels and their + // confidence scores for each second of the entire segment of the video + // that user specified in the request configuration. + // WARNING: Model evaluation is not done for this classification type, + // the quality of it depends on training data, but there are no + // metrics provided to describe that quality. + string type = 1; + + // Output only . The classification details of this annotation. + ClassificationAnnotation classification_annotation = 2; + + // Output only . The time segment of the video to which the + // annotation applies. + TimeSegment time_segment = 3; +} + // Model evaluation metrics for classification problems. -// Visible only to v1beta1 +// Note: For Video Classification this metrics only describe quality of the +// Video Classification predictions of "segment_classification" type. message ClassificationEvaluationMetrics { // Metrics for a single confidence threshold. message ConfidenceMetricsEntry { - // Output only. The confidence threshold value used to compute the metrics. + // Output only. Metrics are computed with an assumption that the model + // never returns predictions with score lower than this value. float confidence_threshold = 1; - // Output only. Recall under the given confidence threshold. + // Output only. Metrics are computed with an assumption that the model + // always returns at most this many predictions (ordered by their score, + // descendingly), but they all still need to meet the confidence_threshold. + int32 position_threshold = 14; + + // Output only. Recall (True Positive Rate) for the given confidence + // threshold. float recall = 2; - // Output only. Precision under the given confidence threshold. + // Output only. Precision for the given confidence threshold. float precision = 3; + // Output only. False Positive Rate for the given confidence threshold. + float false_positive_rate = 8; + // Output only. The harmonic mean of recall and precision. float f1_score = 4; - // Output only. The recall when only considering the label that has the - // highest prediction score and not below the confidence threshold for each - // example. + // Output only. The Recall (True Positive Rate) when only considering the + // label that has the highest prediction score and not below the confidence + // threshold for each example. float recall_at1 = 5; // Output only. The precision when only considering the label that has the - // highest predictionscore and not below the confidence threshold for each + // highest prediction score and not below the confidence threshold for each // example. float precision_at1 = 6; - // Output only. The harmonic mean of - // [recall_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] - // and - // [precision_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1]. + // Output only. The False Positive Rate when only considering the label that + // has the highest prediction score and not below the confidence threshold + // for each example. + float false_positive_rate_at1 = 9; + + // Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1]. float f1_score_at1 = 7; + + // Output only. The number of model created labels that match a ground truth + // label. + int64 true_positive_count = 10; + + // Output only. The number of model created labels that do not match a + // ground truth label. + int64 false_positive_count = 11; + + // Output only. The number of ground truth labels that are not matched + // by a model created label. + int64 false_negative_count = 12; + + // Output only. The number of labels that were not created by the model, + // but if they would, they would not match a ground truth label. + int64 true_negative_count = 13; } // Confusion matrix of the model running the classification. @@ -72,8 +139,8 @@ message ClassificationEvaluationMetrics { // Output only. A row in the confusion matrix. message Row { // Output only. Value of the specific cell in the confusion matrix. - // The number of values each row is equal to the size of - // annotatin_spec_id. + // The number of values each row has (i.e. the length of the row) is equal + // to the length of the annotation_spec_id field. repeated int32 example_count = 1; } @@ -88,14 +155,28 @@ message ClassificationEvaluationMetrics { repeated Row row = 2; } - // Output only. The Area under precision recall curve metric. + // Output only. The Area Under Precision-Recall Curve metric. Micro-averaged + // for the overall evaluation. float au_prc = 1; - // Output only. The Area under precision recall curve metric based on priors. - float base_au_prc = 2; + // Output only. The Area Under Precision-Recall Curve metric based on priors. + // Micro-averaged for the overall evaluation. + // Deprecated. + float base_au_prc = 2 [deprecated = true]; + + // Output only. The Area Under Receiver Operating Characteristic curve metric. + // Micro-averaged for the overall evaluation. + float au_roc = 6; + + // Output only. The Log Loss metric. + float log_loss = 7; - // Output only. Metrics that have confidence thresholds. - // Precision-recall curve can be derived from it. + // Output only. Metrics for each confidence_threshold in + // 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and + // position_threshold = INT32_MAX_VALUE. + // Precision-recall curve is derived from them. + // The above metrics may also be supplied for additional values of + // position_threshold. repeated ConfidenceMetricsEntry confidence_metrics_entry = 3; // Output only. Confusion matrix of the evaluation. diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/column_spec.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/column_spec.proto new file mode 100644 index 000000000000..9e977cf5ea4b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/column_spec.proto @@ -0,0 +1,78 @@ +// Copyright 2018 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.automl.v1beta1; + +import "google/api/annotations.proto"; +import "google/cloud/automl/v1beta1/data_stats.proto"; +import "google/cloud/automl/v1beta1/data_types.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl"; +option java_multiple_files = true; +option java_package = "com.google.cloud.automl.v1beta1"; +option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + + +// A representation of a column in a relational table. When listing them, column specs are returned in the same order in which they were +// given on import . +// Used by: +// * Tables +message ColumnSpec { + // Identifies the table's column, and its correlation with the column this + // ColumnSpec describes. + message CorrelatedColumn { + // The column_spec_id of the correlated column, which belongs to the same + // table as the in-context column. + string column_spec_id = 1; + + // Correlation between this and the in-context column. + CorrelationStats correlation_stats = 2; + } + + // Output only. The resource name of the column specs. + // Form: + // + // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}/columnSpecs/{column_spec_id}` + string name = 1; + + // The data type of elements stored in the column. + DataType data_type = 2; + + // Output only. The name of the column to show in the interface. The name can + // be up to 100 characters long and can consist only of ASCII Latin letters + // A-Z and a-z, ASCII digits 0-9, underscores(_), and forward slashes(/), and + // must start with a letter or a digit. + string display_name = 3; + + // Output only. Stats of the series of values in the column. + // This field may be stale, see the ancestor's + // Dataset.tables_dataset_metadata.stats_update_time field + // for the timestamp at which these stats were last updated. + DataStats data_stats = 4; + + // Output only. Top 10 most correlated with this column columns of the table, + // ordered by + // [cramers_v][google.cloud.automl.v1beta1.CorrelationStats.cramers_v] metric. + // This field may be stale, see the ancestor's + // Dataset.tables_dataset_metadata.stats_update_time field + // for the timestamp at which these stats were last updated. + repeated CorrelatedColumn top_correlated_columns = 5; + + // Used to perform consistent read-modify-write updates. If not set, a blind + // "overwrite" update happens. + string etag = 6; +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_items.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_items.proto index da1ab0a8516c..f596cda27a2a 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_items.proto +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_items.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; @@ -18,13 +19,18 @@ package google.cloud.automl.v1beta1; import "google/api/annotations.proto"; import "google/cloud/automl/v1beta1/io.proto"; +import "google/protobuf/any.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl"; option java_multiple_files = true; option java_package = "com.google.cloud.automl.v1beta1"; option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + // A representation of an image. +// Only images up to 30MB in size are supported. message Image { // Input only. The data representing the image. // For Predict calls [image_bytes][] must be set, as other options are not @@ -50,24 +56,54 @@ message TextSnippet { // characters long. string content = 1; - // The format of the source text. For example, "text/html" or - // "text/plain". If left blank the format is automatically determined from - // the type of the uploaded content. The default is "text/html". Up to 25000 - // characters long. + // The format of the source text. Currently the only two allowed values are + // "text/html" and "text/plain". If left blank the format is automatically + // determined from the type of the uploaded content. string mime_type = 2; // Output only. HTTP URI where you can download the content. string content_uri = 4; } +// A structured text document e.g. a PDF. +message Document { + // An input config specifying the content of the document. + DocumentInputConfig input_config = 1; +} + +// A representation of a row in a relational table. +message Row { + // The resource IDs of the column specs describing the columns of the row. + // If set must contain, but possibly in a different order, all input feature + // + // [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs] + // of the Model this row is being passed to. + // Note: The below `values` field must match order of this field, if this + // field is set. + repeated string column_spec_ids = 2; + + // Required. The values of the row cells, given in the same order as the + // column_spec_ids, or, if not set, then in the same order as input feature + // + // [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs] + // of the Model this row is being passed to. + repeated google.protobuf.Value values = 3; +} + // Example data used for training or prediction. message ExamplePayload { // Required. Input only. The example data. oneof payload { - // An example image. + // Example image. Image image = 1; // Example text. TextSnippet text_snippet = 2; + + // Example document. + Document document = 4; + + // Example relational table row. + Row row = 3; } } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_stats.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_stats.proto new file mode 100644 index 000000000000..c6557bb37885 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_stats.proto @@ -0,0 +1,164 @@ +// Copyright 2018 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.automl.v1beta1; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl"; +option java_multiple_files = true; +option java_package = "com.google.cloud.automl.v1beta1"; +option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + + +// The data statistics of a series of values that share the same DataType. +message DataStats { + // The data statistics specific to a DataType. + oneof stats { + // The statistics for FLOAT64 DataType. + Float64Stats float64_stats = 3; + + // The statistics for STRING DataType. + StringStats string_stats = 4; + + // The statistics for TIMESTAMP DataType. + TimestampStats timestamp_stats = 5; + + // The statistics for ARRAY DataType. + ArrayStats array_stats = 6; + + // The statistics for STRUCT DataType. + StructStats struct_stats = 7; + + // The statistics for CATEGORY DataType. + CategoryStats category_stats = 8; + } + + // The number of distinct values. + int64 distinct_value_count = 1; + + // The number of values that are null. + int64 null_value_count = 2; +} + +// The data statistics of a series of FLOAT64 values. +message Float64Stats { + // A bucket of a histogram. + message HistogramBucket { + // The minimum value of the bucket, inclusive. + double min = 1; + + // The maximum value of the bucket, exclusive unless max = `"Infinity"`, in + // which case it's inclusive. + double max = 2; + + // The number of data values that are in the bucket, i.e. are between + // min and max values. + int64 count = 3; + } + + // The mean of the series. + double mean = 1; + + // The standard deviation of the series. + double standard_deviation = 2; + + // Ordered from 0 to k k-quantile values of the data series of n values. + // The value at index i is, approximately, the i*n/k-th smallest value in the + // series; for i = 0 and i = k these are, respectively, the min and max + // values. + repeated double quantiles = 3; + + // Histogram buckets of the data series. Sorted by the min value of the + // bucket, ascendingly, and the number of the buckets is dynamically + // generated. The buckets are non-overlapping and completely cover whole + // FLOAT64 range with min of first bucket being `"-Infinity"`, and max of + // the last one being `"Infinity"`. + repeated HistogramBucket histogram_buckets = 4; +} + +// The data statistics of a series of STRING values. +message StringStats { + // The statistics of a unigram. + message UnigramStats { + // The unigram. + string value = 1; + + // The number of occurrences of this unigram in the series. + int64 count = 2; + } + + // The statistics of the top 20 unigrams, ordered by + // [count][google.cloud.automl.v1beta1.StringStats.UnigramStats.count]. + repeated UnigramStats top_unigram_stats = 1; +} + +// The data statistics of a series of TIMESTAMP values. +message TimestampStats { + // Stats split by a defined in context granularity. + message GranularStats { + // A map from granularity key to example count for that key. + // E.g. for hour_of_day `13` means 1pm, or for month_of_year `5` means May). + map buckets = 1; + } + + // The string key is the pre-defined granularity. Currently supported: + // hour_of_day, day_of_week, month_of_year. + // Granularities finer that the granularity of timestamp data are not + // populated (e.g. if timestamps are at day granularity, then hour_of_day + // is not populated). + map granular_stats = 1; +} + +// The data statistics of a series of ARRAY values. +message ArrayStats { + // Stats of all the values of all arrays, as if they were a single long + // series of data. The type depends on the element type of the array. + DataStats member_stats = 2; +} + +// The data statistics of a series of STRUCT values. +message StructStats { + // Map from a field name of the struct to data stats aggregated over series + // of all data in that field across all the structs. + map field_stats = 1; +} + +// The data statistics of a series of CATEGORY values. +message CategoryStats { + // The statistics of a single CATEGORY value. + message SingleCategoryStats { + // The CATEGORY value. + string value = 1; + + // The number of occurrences of this value in the series. + int64 count = 2; + } + + // The statistics of the top 20 CATEGORY values, ordered by + // + // [count][google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats.count]. + repeated SingleCategoryStats top_category_stats = 1; +} + +// A correlation statistics between two series of DataType values. The series +// may have differing DataType-s, but within a single series the DataType must +// be the same. +message CorrelationStats { + // The correlation value using the Cramer's V measure. + double cramers_v = 1; +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_types.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_types.proto new file mode 100644 index 000000000000..19ab5a55304b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/data_types.proto @@ -0,0 +1,116 @@ +// Copyright 2018 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.automl.v1beta1; + +import "google/api/annotations.proto"; +import "google/cloud/automl/v1beta1/io.proto"; +import "google/cloud/automl/v1beta1/text_extraction.proto"; +import "google/protobuf/any.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl"; +option java_multiple_files = true; +option java_package = "com.google.cloud.automl.v1beta1"; +option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + + +// Indicated the type of data that can be stored in a structured data entity +// (e.g. a table). +message DataType { + // Details of DataType-s that need additional specification. + oneof details { + // If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY], + // then `list_element_type` is the type of the elements. + DataType list_element_type = 2; + + // If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type` + // provides type information for the struct's fields. + StructType struct_type = 3; + + // If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP] + // then `time_format` provides the format in which that time field is + // expressed. The time_format must either be one of: + // * `UNIX_SECONDS` + // * `UNIX_MILLISECONDS` + // * `UNIX_MICROSECONDS` + // * `UNIX_NANOSECONDS` + // (for respectively number of seconds, milliseconds, microseconds and + // nanoseconds since start of the Unix epoch); + // or be written in `strftime` syntax. If time_format is not set, then the + // default format as described on the type_code is used. + string time_format = 5; + } + + // Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type. + TypeCode type_code = 1; + + // If true, this DataType can also be `null`. + bool nullable = 4; +} + +// `StructType` defines the DataType-s of a [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT] type. +message StructType { + // Unordered map of struct field names to their data types. + // Fields cannot be added or removed via Update. Their names and + // data types are still mutable. + map fields = 1; +} + +// `TypeCode` is used as a part of +// [DataType][google.cloud.automl.v1beta1.DataType]. +// +// Each legal value of a DataType can be encoded to or decoded from a JSON +// value, using the encodings listed below, and definitions of which can be +// found at +// +// https: +// //developers.google.com/protocol-buffers +// // /docs/reference/google.protobuf#value. +enum TypeCode { + // Not specified. Should not be used. + TYPE_CODE_UNSPECIFIED = 0; + + // Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or + // `"-Infinity"`. + FLOAT64 = 3; + + // Must be between 0AD and 9999AD. Encoded as `string` according to + // [time_format][google.cloud.automl.v1beta1.DataType.time_format], or, if + // that format is not set, then in RFC 3339 `date-time` format, where + // `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z). + TIMESTAMP = 4; + + // Encoded as `string`. + STRING = 6; + + // Encoded as `list`, where the list elements are represented according to + // + // [list_element_type][google.cloud.automl.v1beta1.DataType.list_element_type]. + ARRAY = 8; + + // Encoded as `struct`, where field values are represented according to + // [struct_type][google.cloud.automl.v1beta1.DataType.struct_type]. + STRUCT = 9; + + // Values of this type are not further understood by AutoML, + // e.g. AutoML is unable to tell the order of values (as it could with + // FLOAT64), or is unable to say if one value contains another (as it + // could with STRING). + // Encoded as `string` (bytes should be base64-encoded, as described in RFC + // 4648, section 4). + CATEGORY = 10; +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/dataset.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/dataset.proto index 7f615beb4977..42fc45360cfb 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/dataset.proto +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/dataset.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; @@ -20,8 +21,10 @@ import "google/api/annotations.proto"; import "google/cloud/automl/v1beta1/annotation_payload.proto"; import "google/cloud/automl/v1beta1/data_items.proto"; import "google/cloud/automl/v1beta1/image.proto"; +import "google/cloud/automl/v1beta1/tables.proto"; import "google/cloud/automl/v1beta1/text.proto"; import "google/cloud/automl/v1beta1/translation.proto"; +import "google/cloud/automl/v1beta1/video.proto"; import "google/protobuf/timestamp.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl"; @@ -29,6 +32,7 @@ option java_multiple_files = true; option java_package = "com.google.cloud.automl.v1beta1"; option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + // A workspace for solving a single, particular machine learning (ML) problem. // A workspace contains examples that may be annotated. message Dataset { @@ -39,11 +43,25 @@ message Dataset { TranslationDatasetMetadata translation_dataset_metadata = 23; // Metadata for a dataset used for image classification. - ImageClassificationDatasetMetadata image_classification_dataset_metadata = - 24; + ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24; // Metadata for a dataset used for text classification. TextClassificationDatasetMetadata text_classification_dataset_metadata = 25; + + // Metadata for a dataset used for image object detection. + ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26; + + // Metadata for a dataset used for video classification. + VideoClassificationDatasetMetadata video_classification_dataset_metadata = 31; + + // Metadata for a dataset used for text extraction. + TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28; + + // Metadata for a dataset used for text sentiment. + TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30; + + // Metadata for a dataset used for Tables. + TablesDatasetMetadata tables_dataset_metadata = 33; } // Output only. The resource name of the dataset. @@ -51,14 +69,42 @@ message Dataset { string name = 1; // Required. The name of the dataset to show in the interface. The name can be - // up to 32 characters - // long and can consist only of ASCII Latin letters A-Z and a-z, underscores + // up to 32 characters long and can consist only of ASCII Latin letters A-Z + // and a-z, underscores // (_), and ASCII digits 0-9. string display_name = 2; + // User-provided description of the dataset. The description can be up to + // 25000 characters long. + string description = 3; + // Output only. The number of examples in the dataset. int32 example_count = 21; // Output only. Timestamp when this dataset was created. google.protobuf.Timestamp create_time = 14; + + // Used to perform consistent read-modify-write updates. If not set, a blind + // "overwrite" update happens. + string etag = 17; +} + +// A definition of an annotation. +message AnnotationSpec { + // Output only. Resource name of the annotation spec. + // Form: + // + // 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}' + string name = 1; + + // Required. + // The name of the annotation spec to show in the interface. The name can be + // up to 32 characters long and can consist only of ASCII Latin letters A-Z + // and a-z, underscores + // (_), and ASCII digits 0-9. + string display_name = 2; + + // Output only. The number of examples in the parent dataset + // labeled by the annotation spec. + int32 example_count = 9; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/detection.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/detection.proto new file mode 100644 index 000000000000..face89c216a9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/detection.proto @@ -0,0 +1,89 @@ +// Copyright 2018 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.automl.v1beta1; + +import "google/api/annotations.proto"; +import "google/cloud/automl/v1beta1/geometry.proto"; +import "google/protobuf/duration.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl"; +option java_multiple_files = true; +option java_package = "com.google.cloud.automl.v1beta1"; +option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + + +// Annotation details for image object detection. +message ImageObjectDetectionAnnotation { + // Output only. + // The rectangle representing the object location. + BoundingPoly bounding_box = 1; + + // Output only. + // The confidence that this annotation is positive for the parent example, + // value in [0, 1], higher means higher positivity confidence. + float score = 2; +} + +// Bounding box matching model metrics for a single intersection-over-union +// threshold and multiple label match confidence thresholds. +message BoundingBoxMetricsEntry { + // Metrics for a single confidence threshold. + message ConfidenceMetricsEntry { + // Output only. The confidence threshold value used to compute the metrics. + float confidence_threshold = 1; + + // Output only. Recall under the given confidence threshold. + float recall = 2; + + // Output only. Precision under the given confidence threshold. + float precision = 3; + + // Output only. The harmonic mean of recall and precision. + float f1_score = 4; + } + + // Output only. The intersection-over-union threshold value used to compute + // this metrics entry. + float iou_threshold = 1; + + // Output only. The mean average precision, most often close to au_prc. + float mean_average_precision = 2; + + // Output only. Metrics for each label-match confidence_threshold from + // 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is + // derived from them. + repeated ConfidenceMetricsEntry confidence_metrics_entries = 3; +} + +// Model evaluation metrics for image object detection problems. +// Evaluates prediction quality of labeled bounding boxes. +message ImageObjectDetectionEvaluationMetrics { + // Output only. The total number of bounding boxes (i.e. summed over all + // images) the ground truth used to create this evaluation had. + int32 evaluated_bounding_box_count = 1; + + // Output only. The bounding boxes match metrics for each + // Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 + // and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 + // pair. + repeated BoundingBoxMetricsEntry bounding_box_metrics_entries = 2; + + // Output only. The single metric for bounding boxes evaluation: + // the mean_average_precision averaged over all bounding_box_metrics_entries. + float bounding_box_mean_average_precision = 3; +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/geometry.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/geometry.proto new file mode 100644 index 000000000000..07f4e36f74eb --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/geometry.proto @@ -0,0 +1,47 @@ +// Copyright 2018 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.automl.v1beta1; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl"; +option java_multiple_files = true; +option java_package = "com.google.cloud.automl.v1beta1"; +option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + + +// A vertex represents a 2D point in the image. +// The normalized vertex coordinates are between 0 to 1 fractions relative to +// the original plane (image, video). E.g. if the plane (e.g. whole image) would +// have size 10 x 20 then a point with normalized coordinates (0.1, 0.3) would +// be at the position (1, 6) on that plane. +message NormalizedVertex { + // Required. Horizontal coordinate. + float x = 1; + + // Required. Vertical coordinate. + float y = 2; +} + +// A bounding polygon of a detected object on a plane. +// On output both vertices and normalized_vertices are provided. +// The polygon is formed by connecting vertices in the order they are listed. +message BoundingPoly { + // Output only . The bounding polygon normalized vertices. + repeated NormalizedVertex normalized_vertices = 2; +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/image.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/image.proto index 87b25e25209b..116904712a24 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/image.proto +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/image.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; @@ -26,31 +27,105 @@ option java_outer_classname = "ImageProto"; option java_package = "com.google.cloud.automl.v1beta1"; option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + // Dataset metadata that is specific to image classification. message ImageClassificationDatasetMetadata { - // Required. - // Type of the classification problem. + // Required. Type of the classification problem. ClassificationType classification_type = 1; } +// Dataset metadata specific to image object detection. +message ImageObjectDetectionDatasetMetadata { + +} + // Model metadata for image classification. message ImageClassificationModelMetadata { // Optional. The ID of the `base` model. If it is specified, the new model // will be created based on the `base` model. Otherwise, the new model will be - // created from scratch. The `base` model is expected to be in the same - // `project` and `location` as the new model to create. + // created from scratch. The `base` model must be in the same + // `project` and `location` as the new model to create, and have the same + // `model_type`. string base_model_id = 1; - // Required. The train budget of creating this model. The actual - // `train_cost` will be equal or less than this value. + // Required. The train budget of creating this model, expressed in hours. The + // actual `train_cost` will be equal or less than this value. int64 train_budget = 2; - // Output only. The actual train cost of creating this model. If this - // model is created from a `base` model, the train cost used to create the - // `base` model are not included. + // Output only. The actual train cost of creating this model, expressed in + // hours. If this model is created from a `base` model, the train cost used + // to create the `base` model are not included. int64 train_cost = 3; // Output only. The reason that this create model operation stopped, - // e.g. BUDGET_REACHED, CONVERGED. + // e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`. string stop_reason = 5; + + // Optional. Type of the model. The available values are: + // * `cloud` - Model to be used via prediction calls to AutoML API. + // This is the default value. + // * `mobile-low-latency-1` - A model that, in addition to providing + // prediction via AutoML API, can also be exported (see + // [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device + // with TensorFlow afterwards. Expected to have low latency, but + // may have lower prediction quality than other models. + // * `mobile-versatile-1` - A model that, in addition to providing + // prediction via AutoML API, can also be exported (see + // [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device + // with TensorFlow afterwards. + // * `mobile-high-accuracy-1` - A model that, in addition to providing + // prediction via AutoML API, can also be exported (see + // [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile or edge device + // with TensorFlow afterwards. Expected to have a higher + // latency, but should also have a higher prediction quality + // than other models. + // * `mobile-core-ml-low-latency-1` - A model that, in addition to providing + // prediction via AutoML API, can also be exported (see + // [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with Core + // ML afterwards. Expected to have low latency, but may have + // lower prediction quality than other models. + // * `mobile-core-ml-versatile-1` - A model that, in addition to providing + // prediction via AutoML API, can also be exported (see + // [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with Core + // ML afterwards. + // * `mobile-core-ml-high-accuracy-1` - A model that, in addition to + // providing prediction via AutoML API, can also be exported + // (see [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]) and used on a mobile device with + // Core ML afterwards. Expected to have a higher latency, but + // should also have a higher prediction quality than other + // models. + string model_type = 7; +} + +// Model metadata specific to image object detection. +message ImageObjectDetectionModelMetadata { + // Optional. Type of the model. The available values are: + // * `cloud-high-accuracy-1` - (default) A model to be used via prediction + // calls to AutoML API. Expected to have a higher latency, but + // should also have a higher prediction quality than other + // models. + // * `cloud-low-latency-1` - A model to be used via prediction + // calls to AutoML API. Expected to have low latency, but may + // have lower prediction quality than other models. + string model_type = 1; + + // Output only. The number of nodes this model is deployed on. A node is an + // abstraction of a machine resource, which can handle online prediction QPS + // as given in the qps_per_node field. + int64 node_count = 3; + + // Output only. An approximate number of online prediction QPS that can + // be supported by this model per each node on which it is deployed. + double node_qps = 4; +} + +// Model deployment metadata specific to Image Object Detection. +message ImageObjectDetectionModelDeploymentMetadata { + // Input only. The number of nodes to deploy the model on. A node is an + // abstraction of a machine resource, which can handle online prediction QPS + // as given in the model's + // + // [qps_per_node][google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.qps_per_node]. + // Must be between 1 and 100, inclusive on both ends. + int64 node_count = 1; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/io.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/io.proto index 6660131b99b3..f100a5707385 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/io.proto +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/io.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; @@ -23,33 +24,762 @@ option java_multiple_files = true; option java_package = "com.google.cloud.automl.v1beta1"; option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; -// Input configuration. + +// Input configuration for ImportData Action. +// +// The format of input depends on dataset_metadata the Dataset into which +// the import is happening has. As input source the +// [gcs_source][google.cloud.automl.v1beta1.InputConfig.gcs_source] +// is expected, unless specified otherwise. If a file with identical content +// (even if it had different GCS_FILE_PATH) is mentioned multiple times , then +// its label, bounding boxes etc. are appended. The same file should be always +// provided with the same ML_USE and GCS_FILE_PATH, if it is not then +// these values are nondeterministically selected from the given ones. +// +// The formats are represented in EBNF with commas being literal and with +// non-terminal symbols defined near the end of this comment. The formats are: +// +// * For Image Object Detection: +// CSV file(s) with each line in format: +// ML_USE,GCS_FILE_PATH,LABEL,BOUNDING_BOX +// GCS_FILE_PATH leads to image of up to 30MB in size. Supported +// extensions: .JPEG, .GIF, .PNG. +// Each image is assumed to be exhaustively labeled. The +// minimum allowed BOUNDING_BOX edge length is 0.01, and no more than +// 500 BOUNDING_BOX-es per image are allowed. +// Three sample rows: +// TRAIN,gs://folder/image1.png,car,0.1,0.1,,,0.3,0.3,, +// TRAIN,gs://folder/image1.png,bike,.7,.6,,,.8,.9,, +// TEST,gs://folder/im2.png,car,0.1,0.1,0.2,0.1,0.2,0.3,0.1,0.3 +// +// +// * For Video Classification: +// CSV file(s) with each line in format: +// ML_USE,GCS_FILE_PATH +// where ML_USE VALIDATE value should not be used. The GCS_FILE_PATH +// should lead to another .csv file which describes examples that have +// given ML_USE, using the following row format: +// GCS_FILE_PATH,LABEL,TIME_SEGMENT_START,TIME_SEGMENT_END +// Here GCS_FILE_PATH leads to a video of up to 50GB in size and up +// to 3h duration. Supported extensions: .MOV, .MPEG4, .MP4, .AVI. +// TIME_SEGMENT_START and TIME_SEGMENT_END must be within the +// length of the video, and end has to be after the start. Any segment +// of a video which has one or more labels on it, is considered a +// hard negative for all other labels. Any segment with no labels on +// it is considered to be unknown. +// Sample top level CSV file: +// TRAIN,gs://folder/train_videos.csv +// TEST,gs://folder/test_videos.csv +// UNASSIGNED,gs://folder/other_videos.csv +// Three sample rows of a CSV file for a particular ML_USE: +// gs://folder/video1.avi,car,120,180.000021 +// gs://folder/video1.avi,bike,150,180.000021 +// gs://folder/vid2.avi,car,0,60.5 +// * For Text Extraction: +// CSV file(s) with each line in format: +// ML_USE,GCS_FILE_PATH +// GCS_FILE_PATH leads to a .JSONL (i.e. JSON Lines) file which either +// imports text in-line or as documents. +// The in-line .JSONL file contains, per line, a proto that wraps a +// TextSnippet proto (in json representation) followed by one or +// more AnnotationPayload protos (called annotations), which have +// display_name and text_extraction detail populated. +// Given text is expected to be annotated exhaustively, e.g. if you +// look for animals and text contains "dolphin" that is not labeled, +// then "dolphin" will be assumed to not be an animal. +// Any given text snippet content must have 30,000 characters or +// less, and also be UTF-8 NFC encoded (ASCII already is). +// The document .JSONL file contains, per line, a proto that wraps a +// Document proto with input_config set. Only PDF documents are +// supported now, and each document may be up to 2MB large. +// Currently annotations on documents cannot be specified at import. +// Any given .JSONL file must be 100MB or smaller. +// Three sample CSV rows: +// TRAIN,gs://folder/file1.jsonl +// VALIDATE,gs://folder/file2.jsonl +// TEST,gs://folder/file3.jsonl +// Sample in-line JSON Lines file (presented here with artificial line +// breaks, but the only actual line break is denoted by \n).: +// { +// "text_snippet": { +// "content": "dog car cat" +// }, +// "annotations": [ +// { +// "display_name": "animal", +// "text_extraction": { +// "text_segment": {"start_offset": 0, "end_offset": 2} +// } +// }, +// { +// "display_name": "vehicle", +// "text_extraction": { +// "text_segment": {"start_offset": 4, "end_offset": 6} +// } +// }, +// { +// "display_name": "animal", +// "text_extraction": { +// "text_segment": {"start_offset": 8, "end_offset": 10} +// } +// } +// ] +// }\n +// { +// "text_snippet": { +// "content": "This dog is good." +// }, +// "annotations": [ +// { +// "display_name": "animal", +// "text_extraction": { +// "text_segment": {"start_offset": 5, "end_offset": 7} +// } +// } +// ] +// } +// Sample document JSON Lines file (presented here with artificial line +// breaks, but the only actual line break is denoted by \n).: +// { +// "document": { +// "input_config": { +// "gcs_source": { "input_uris": [ "gs://folder/document1.pdf" ] +// } +// } +// } +// }\n +// { +// "document": { +// "input_config": { +// "gcs_source": { "input_uris": [ "gs://folder/document2.pdf" ] +// } +// } +// } +// } +// * For Tables: +// Either +// [gcs_source][google.cloud.automl.v1beta1.InputConfig.gcs_source] or +// +// [bigquery_source][google.cloud.automl.v1beta1.InputConfig.bigquery_source] +// can be used. All inputs will be concatenated into a single +// +// [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_name] +// For gcs_source: +// CSV file(s), where first file must have a header containing unique +// column names, other files may have such header line too, and all +// other lines contain values for the header columns. Each line must +// have 1,000,000 or fewer characters. +// First three sample rows of a CSV file: +// "Id","First Name","Last Name","Dob","Addresses" +// +// "1","John","Doe","1968-01-22","[{"status":"current","address":"123_First_Avenue","city":"Seattle","state":"WA","zip":"11111","numberOfYears":"1"},{"status":"previous","address":"456_Main_Street","city":"Portland","state":"OR","zip":"22222","numberOfYears":"5"}]" +// +// "2","Jane","Doe","1980-10-16","[{"status":"current","address":"789_Any_Avenue","city":"Albany","state":"NY","zip":"33333","numberOfYears":"2"},{"status":"previous","address":"321_Main_Street","city":"Hoboken","state":"NJ","zip":"44444","numberOfYears":"3"}]} +// For bigquery_source: +// An URI of a BigQuery table. +// An imported table must have between 2 and 1,000 columns, inclusive, +// and between 1,000 and 10,000,000 rows, inclusive. +// +// * For Text Sentiment: +// CSV file(s) with each line in format: +// ML_USE,TEXT_SNIPPET,SENTIMENT +// TEXT_SNIPPET must have up to 500 characters. +// Three sample rows: +// TRAIN,"@freewrytin God is way too good for Claritin",2 +// TRAIN,"I need Claritin so bad",3 +// TEST,"Thank god for Claritin.",4 +// +// Definitions: +// ML_USE = "TRAIN" | "VALIDATE" | "TEST" | "UNASSIGNED" +// Describes how the given example (file) should be used for model +// training. "UNASSIGNED" can be used when user has no preference. +// GCS_FILE_PATH = A path to file on GCS, e.g. "gs://folder/image1.png". +// LABEL = A display name of an object on an image, video etc., e.g. "dog". +// Must be up to 32 characters long and can consist only of ASCII +// Latin letters A-Z and a-z, underscores(_), and ASCII digits 0-9. +// For each label an AnnotationSpec is created which display_name +// becomes the label; AnnotationSpecs are given back in predictions. +// INSTANCE_ID = A positive integer that identifies a specific instance of a +// labeled entity on an example. Used e.g. to track two cars on +// a video while being able to tell apart which one is which. +// BOUNDING_BOX = VERTEX,VERTEX,VERTEX,VERTEX | VERTEX,,,VERTEX,, +// A rectangle parallel to the frame of the example (image, +// video). If 4 vertices are given they are connected by edges +// in the order provided, if 2 are given they are recognized +// as diagonally opposite vertices of the rectangle. +// VERTEX = COORDINATE,COORDINATE +// First coordinate is horizontal (x), the second is vertical (y). +// COORDINATE = A float in 0 to 1 range, relative to total length of +// image or video in given dimension. For fractions the +// leading non-decimal 0 can be omitted (i.e. 0.3 = .3). +// Point 0,0 is in top left. +// TIME_SEGMENT_START = TIME_OFFSET +// Expresses a beginning, inclusive, of a time segment +// within an example that has a time dimension +// (e.g. video). +// TIME_SEGMENT_END = TIME_OFFSET +// Expresses an end, exclusive, of a time segment within +// an example that has a time dimension (e.g. video). +// TIME_OFFSET = A number of seconds as measured from the start of an +// example (e.g. video). Fractions are allowed, up to a +// microsecond precision. "inf" is allowed, and it means the end +// of the example. +// TEXT_SNIPPET = A content of a text snippet, UTF-8 encoded. +// SENTIMENT = An integer between 0 and +// Dataset.text_sentiment_dataset_metadata.sentiment_max +// (inclusive). Describes the ordinal of the sentiment - higher +// value means a more positive sentiment. All the values are +// completely relative, i.e. neither 0 needs to mean a negative or +// neutral sentiment nor sentiment_max needs to mean a positive one +// - it is just required that 0 is the least positive sentiment +// in the data, and sentiment_max is the most positive one. +// The SENTIMENT shouldn't be confused with "score" or "magnitude" +// from the previous Natural Language Sentiment Analysis API. +// All SENTIMENT values between 0 and sentiment_max must be +// represented in the imported data. On prediction the same 0 to +// sentiment_max range will be used. The difference between +// neighboring sentiment values needs not to be uniform, e.g. 1 and +// 2 may be similar whereas the difference between 2 and 3 may be +// huge. +// +// Errors: +// If any of the provided CSV files can't be parsed or if more than certain +// percent of CSV rows cannot be processed then the operation fails and +// nothing is imported. Regardless of overall success or failure the per-row +// failures, up to a certain count cap, will be listed in +// Operation.metadata.partial_failures. +// message InputConfig { // Required. The source of the input. oneof source { - // The GCS location for the input content. + // The Google Cloud Storage location for the input content. + GcsSource gcs_source = 1; + + // The BigQuery location for the input content. + BigQuerySource bigquery_source = 3; + } + + // Additional domain-specific parameters describing the semantic of the + // imported data, any string must be up to 25000 + // characters long. + // + // * For Tables: + // `schema_inference_version` - (integer) Required. The version of the + // algorithm that should be used for the initial inference of the + // schema (columns' DataTypes) of the table the data is being imported + // into. Allowed values: "1". + map params = 2; +} + +// Input configuration for BatchPredict Action. +// +// The format of input depends on the ML problem of the model used for +// prediction. As input source the +// [gcs_source][google.cloud.automl.v1beta1.InputConfig.gcs_source] +// is expected, unless specified otherwise. +// +// The formats are represented in EBNF with commas being literal and with +// non-terminal symbols defined near the end of this comment. The formats are: +// +// * For Video Classification: +// CSV file(s) with each line in format: +// GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END +// GCS_FILE_PATH leads to video of up to 50GB in size and up to 3h +// duration. Supported extensions: .MOV, .MPEG4, .MP4, .AVI. +// TIME_SEGMENT_START and TIME_SEGMENT_END must be within the +// length of the video, and end has to be after the start. +// Three sample rows: +// gs://folder/video1.mp4,10,40 +// gs://folder/video1.mp4,20,60 +// gs://folder/vid2.mov,0,inf +// +// * For Text Extraction +// .JSONL (i.e. JSON Lines) file(s) which either provide text in-line or +// as documents (for a single BatchPredict call only one of the these +// formats may be used). +// The in-line .JSONL file(s) contain per line a proto that +// wraps a temporary user-assigned TextSnippet ID (string up to 2000 +// characters long) called "id" followed by a TextSnippet proto (in +// json representation). Any given text snippet content must have +// 30,000 characters or less, and also be UTF-8 NFC encoded (ASCII +// already is). The IDs provided should be unique. +// The document .JSONL file(s) contain, per line, a proto that wraps a +// Document proto with input_config set. Only PDF documents are +// supported now, and each document must be up to 2MB large. +// Any given .JSONL file must be 100MB or smaller, and no more than 20 +// files may be given. +// Sample in-line JSON Lines file (presented here with artificial line +// breaks, but the only actual line break is denoted by \n): +// { +// "id": "my_first_id", +// "text_snippet": { "content": "dog car cat"} +// }\n +// { +// "id": "2", +// "text_snippet": { +// "content": "An elaborate content", +// "mime_type": "text/plain" +// } +// } +// Sample document JSON Lines file (presented here with artificial line +// breaks, but the only actual line break is denoted by \n).: +// { +// "document": { +// "input_config": { +// "gcs_source": { "input_uris": [ "gs://folder/document1.pdf" ] +// } +// } +// } +// }\n +// { +// "document": { +// "input_config": { +// "gcs_source": { "input_uris": [ "gs://folder/document2.pdf" ] +// } +// } +// } +// } +// +// * For Tables: +// Either +// [gcs_source][google.cloud.automl.v1beta1.InputConfig.gcs_source] or +// +// [bigquery_source][google.cloud.automl.v1beta1.InputConfig.bigquery_source]. +// For gcs_source: +// CSV file(s), where first file must have a header containing +// column names, other files may have such header line too, and all +// other lines contain values for the header columns. The column +// names must be exactly same (order may differ) as the model's +// +// [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs] +// [display_names][google.cloud.automl.v1beta1.display_name], with +// values compatible with these column specs data types. +// Prediction on all the rows, i.e. the CSV lines, will be +// attempted. +// Each line must have 1,000,000 or fewer characters. +// First three sample rows of a CSV file: +// "First Name","Last Name","Dob","Addresses" +// +// "John","Doe","1968-01-22","[{"status":"current","address":"123_First_Avenue","city":"Seattle","state":"WA","zip":"11111","numberOfYears":"1"},{"status":"previous","address":"456_Main_Street","city":"Portland","state":"OR","zip":"22222","numberOfYears":"5"}]" +// +// "Jane","Doe","1980-10-16","[{"status":"current","address":"789_Any_Avenue","city":"Albany","state":"NY","zip":"33333","numberOfYears":"2"},{"status":"previous","address":"321_Main_Street","city":"Hoboken","state":"NJ","zip":"44444","numberOfYears":"3"}]} +// For bigquery_source: +// An URI of a BigQuery table. The table's columns must be exactly +// same (order may differ) as all model's +// +// [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs] +// [display_names][google.cloud.automl.v1beta1.display_name], with +// data compatible with these colum specs data types. +// Prediction on all the rows of the table will be attempted. +// +// Definitions: +// GCS_FILE_PATH = A path to file on GCS, e.g. "gs://folder/video.avi". +// TIME_SEGMENT_START = TIME_OFFSET +// Expresses a beginning, inclusive, of a time segment +// within an +// example that has a time dimension (e.g. video). +// TIME_SEGMENT_END = TIME_OFFSET +// Expresses an end, exclusive, of a time segment within +// an example that has a time dimension (e.g. video). +// TIME_OFFSET = A number of seconds as measured from the start of an +// example (e.g. video). Fractions are allowed, up to a +// microsecond precision. "inf" is allowed and it means the end +// of the example. +// +// Errors: +// If any of the provided CSV files can't be parsed or if more than certain +// percent of CSV rows cannot be processed then the operation fails and +// prediction does not happen. Regardless of overall success or failure the +// per-row failures, up to a certain count cap, will be listed in +// Operation.metadata.partial_failures. +// +message BatchPredictInputConfig { + // Required. The source of the input. + oneof source { + // The Google Cloud Storage location for the input content. GcsSource gcs_source = 1; + + // The BigQuery location for the input content. + BigQuerySource bigquery_source = 2; } } -// Output configuration. +// Input configuration of a [Document][google.cloud.automl.v1beta1.Document]. +message DocumentInputConfig { + // The Google Cloud Storage location of the document file. Only a single path + // should be given. + // Max supported size: 512MB. + // Supported extensions: .PDF. + GcsSource gcs_source = 1; +} + +// Output configuration for ExportData. +// +// As destination the +// [gcs_destination][google.cloud.automl.v1beta1.OutputConfig.gcs_destination] +// must be set unless specified otherwise for a domain. +// Only ground truth annotations are exported (not approved annotations are +// not exported). +// +// The outputs correspond to how the data was imported, and may be used as +// input to import data. The output formats are represented as EBNF with literal +// commas and same non-terminal symbols definitions are these in import data's +// [InputConfig][google.cloud.automl.v1beta1.InputConfig]: +// +// * For Image Object Detection: +// CSV file(s) `image_object_detection_1.csv`, +// `image_object_detection_2.csv`,...,`image_object_detection_N.csv` +// with each line in format: +// ML_USE,GCS_FILE_PATH,LABEL,BOUNDING_BOX +// where GCS_FILE_PATHs point at the original, source locations of the +// imported images. +// +// * For Video Classification: +// CSV file `video_classification.csv`, with each line in format: +// ML_USE,GCS_FILE_PATH +// (may have muliple lines per a single ML_USE). +// Each GCS_FILE_PATH leads to another .csv file which +// describes examples that have given ML_USE, using the following +// row format: +// GCS_FILE_PATH,LABEL,TIME_SEGMENT_START,TIME_SEGMENT_END +// Here GCS_FILE_PATHs point at the original, source locations of the +// imported videos. +// * For Text Extraction: +// CSV file `text_extraction.csv`, with each line in format: +// ML_USE,GCS_FILE_PATH +// GCS_FILE_PATH leads to a .JSONL (i.e. JSON Lines) file which +// contains, per line, a proto that wraps a TextSnippet proto (in json +// representation) followed by AnnotationPayload protos (called +// annotations). If initially documents had been imported, corresponding +// OCR-ed representation is returned. +// +// * For Tables: +// Output depends on whether the dataset was imported from GCS or +// BigQuery. +// GCS case: +// +// [gcs_destination][google.cloud.automl.v1beta1.OutputConfig.gcs_destination] +// must be set. Exported are CSV file(s) `tables_1.csv`, +// `tables_2.csv`,...,`tables_N.csv` with each having as header line +// the table's column names, and all other lines contain values for +// the header columns. +// BigQuery case: +// +// [bigquery_destination][google.cloud.automl.v1beta1.OutputConfig.bigquery_destination] +// pointing to a BigQuery project must be set. In the given project a +// new dataset will be created with name +// +// `export_data__` +// where will be made +// BigQuery-dataset-name compatible (e.g. most special characters will +// become underscores), and timestamp will be in +// YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" format. In that +// dataset a new table called `primary_table` will be created, and +// filled with precisely the same data as this obtained on import. message OutputConfig { // Required. The destination of the output. oneof destination { - // The GCS location where the output must be written to. + // The Google Cloud Storage location where the output is to be written to. + // For Image Object Detection, Text Extraction, Video Classification and + // Tables, in the given directory a new directory will be created with name: + // export_data-- + // where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All + // export output will be written into that directory. + GcsDestination gcs_destination = 1; + + // The BigQuery location where the output is to be written to. + BigQueryDestination bigquery_destination = 2; + } +} + +// Output configuration for BatchPredict Action. +// +// As destination the +// +// [gcs_destination][google.cloud.automl.v1beta1.BatchPredictOutputConfig.gcs_destination] +// must be set unless specified otherwise for a domain. If gcs_destination is +// set then in the given directory a new directory will be created. Its name +// will be +// "prediction--", +// where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. The contents +// of it depend on the ML problem the predictions are made for. +// +// * For Video Classification: +// In the created directory a video_classification.csv file, and a .JSON +// file per each video classification requested in the input (i.e. each +// line in given CSV(s)), will be created. +// +// The format of video_classification.csv is: +// +// GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END,JSON_FILE_NAME,STATUS +// where: +// GCS_FILE_PATH,TIME_SEGMENT_START,TIME_SEGMENT_END = matches 1 to 1 +// the prediction input lines (i.e. video_classification.csv has +// precisely the same number of lines as the prediction input had.) +// JSON_FILE_NAME = Name of .JSON file in the output directory, which +// contains prediction responses for the video time segment. +// STATUS = "OK" if prediction completed successfully, or an error +// code and,or message otherwise. If STATUS is not "OK" then the +// .JSON file for that line may not exist or be empty. +// +// Each .JSON file, assuming STATUS is "OK", will contain a list of +// AnnotationPayload protos in JSON format, which are the predictions +// for the video time segment the file is assigned to in the +// video_classification.csv. All AnnotationPayload protos will have +// video_classification field set, and will be sorted by +// video_classification.type field (note that the returned types are +// governed by `classifaction_types` parameter in +// [PredictService.BatchPredictRequest.params][]). +// * For Text Extraction: +// In the created directory files `text_extraction_1.jsonl`, +// `text_extraction_2.jsonl`,...,`text_extraction_N.jsonl` +// will be created, where N may be 1, and depends on the +// total number of inputs and annotations found. +// The contents of these .JSONL file(s) depend on whether the input +// used inline text, or documents. +// If input was inline, then each .JSONL file will contain, per line, +// a JSON representation of a proto that wraps given in request text +// snippet's "id" : "" followed by a list of zero or more +// AnnotationPayload protos (called annotations), which have +// text_extraction detail populated. A single text snippet will be +// listed only once with all its annotations, and its annotations will +// never be split across files. +// If input used documents, then each .JSONL file will contain, per +// line, a JSON representation of a proto that wraps given in request +// document proto, followed by its OCR-ed representation in the form +// of a text snippet, finally followed by a list of zero or more +// AnnotationPayload protos (called annotations), which have +// text_extraction detail populated and refer, via their indices, to +// the OCR-ed text snippet. A single document (and its text snippet) +// will be listed only once with all its annotations, and its +// annotations will never be split across files. +// If prediction for any text snippet failed (partially or completely), +// then additional `errors_1.jsonl`, `errors_2.jsonl`,..., +// `errors_N.jsonl` files will be created (N depends on total number of +// failed predictions). These files will have a JSON representation of a +// proto that wraps either the "id" : "" (in case of inline) +// or the document proto (in case of document) but here followed by +// exactly one +// +// [`google.rpc.Status`](https: +// //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto) +// containing only `code` and `message`. +// +// * For Tables: +// Output depends on whether +// +// [gcs_destination][google.cloud.automl.v1beta1.BatchPredictOutputConfig.gcs_destination] +// or +// +// [bigquery_destination][google.cloud.automl.v1beta1.BatchPredictOutputConfig.bigquery_destination] +// is set (either is allowed). +// GCS case: +// In the created directory files `tables_1.csv`, `tables_2.csv`,..., +// `tables_N.csv` will be created, where N may be 1, and depends on +// the total number of the successfully predicted rows. +// For the classification models: +// Each .csv file will contain a header, listing all model's +// +// [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs] +// +// [display_names][google.cloud.automl.v1beta1.ColumnSpec.display_name] +// followed by M target column names in the format of +// +// "<[target_column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec] +// +// [display_name][google.cloud.automl.v1beta1.ColumnSpec.display_name]>__score" where M is the number of distinct target values, +// i.e. number of distinct values in the target column of the table +// used to train the model. Subsequent lines will contain the +// respective values of successfully predicted rows, with the last, +// i.e. the target, columns having the corresponding prediction +// [scores][google.cloud.automl.v1beta1.TablesAnnotation.score]. +// For the regression models: +// Each .csv file will contain a header, listing all model's +// +// [input_feature_column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs] +// [display_names][google.cloud.automl.v1beta1.display_name] +// followed by the target column with name equal to +// +// [target_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec] +// +// [display_name][google.cloud.automl.v1beta1.ColumnSpec.display_name]. +// Subsequent lines will contain the respective values of +// successfully predicted rows, with the last, i.e. the target, +// column having the predicted target value. +// If prediction for any rows failed, then an additional +// `errors_1.csv`, `errors_2.csv`,..., `errors_N.csv` will be created +// (N depends on total number of failed rows). These files will have +// analogous format as `tables_*.csv`, but always with a single target +// column having +// +// [`google.rpc.Status`](https: +// //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto) +// represented as a JSON string, and containing only `code` and +// `message`. +// BigQuery case: +// +// [bigquery_destination][google.cloud.automl.v1beta1.OutputConfig.bigquery_destination] +// pointing to a BigQuery project must be set. In the given project a +// new dataset will be created with name +// `prediction__` +// where will be made +// BigQuery-dataset-name compatible (e.g. most special characters will +// become underscores), and timestamp will be in +// YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" format. In the dataset +// two tables will be created, `predictions`, and `errors`. +// The `predictions` table's column names will be the +// +// [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs] +// +// [display_names][google.cloud.automl.v1beta1.ColumnSpec.display_name] +// followed by model's +// +// [target_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec] +// +// [display_name][google.cloud.automl.v1beta1.ColumnSpec.display_name]. +// The input feature columns will contain the respective values of +// successfully predicted rows, with the target column having an +// ARRAY of +// +// [AnnotationPayloads][google.cloud.automl.v1beta1.AnnotationPayload], +// represented as STRUCT-s, containing +// [TablesAnnotation][google.cloud.automl.v1beta1.TablesAnnotation]. +// The `errors` table contains rows for which the prediction has +// failed, it has analogous input feature and target columns, but +// here the target column as a value has +// +// [`google.rpc.Status`](https: +// //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto) +// represented as a STRUCT, and containing only `code` and `message`. +message BatchPredictOutputConfig { + // Required. The destination of the output. + oneof destination { + // The Google Cloud Storage location of the directory where the output is to + // be written to. + GcsDestination gcs_destination = 1; + + // The BigQuery location where the output is to be written to. + BigQueryDestination bigquery_destination = 2; + } +} + +// Output configuration for ModelExport Action. +message ModelExportOutputConfig { + // Required. The destination of the output. + oneof destination { + // The Google Cloud Storage location where the model is to be written to. + // This location may only be set for the following model formats: + // "tflite", "edgetpu_tflite", "core_ml", "docker". + // + // Under the directory given as the destination a new one with name + // "model-export--", + // where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format, + // will be created. Inside the model and any of its supporting files + // will be written, as described + // + // [here](https: + // //cloud.google.com/vision/automl/alpha/d + // // ocs/predict#deployment_to_devices). GcsDestination gcs_destination = 1; + + // The GCR location where model image is to be pushed to. This location + // may only be set for the following model formats: + // "docker". + // + // The model image will be created under the given URI. + GcrDestination gcr_destination = 3; } + + // The format in which the model must be exported. The available, and default, + // formats depend on the problem and model type (if given problem and type + // combination doesn't have a format listed, it means its models are not + // exportable): + // + // * For Image Classification mobile-low-latency-1, mobile-versatile-1, + // mobile-high-accuracy-1: + // "tflite" (default), "edgetpu_tflite", "tf_saved_model", "docker". + // + // * For Image Classification mobile-core-ml-low-latency-1, + // mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1: + // "core_ml" (default). + // Formats description: + // + // * tflite - Used for Android mobile devices. + // * edgetpu_tflite - Used for [Edge TPU](https://cloud.google.com/edge-tpu/) + // devices. + // * tf_saved_model - A tensorflow model in SavedModel format. + // * docker - Used for Docker containers. Use the params field to customize + // the container. The container is verified to work correctly on + // ubuntu 16.04 operating system. + // * core_ml - Used for iOS mobile devices. + string model_format = 4; + + // Additional model-type and format specific parameters describing the + // requirements for the to be exported model files, any string must be up to + // 25000 characters long. + // + // * For `docker` format: + // `cpu_architecture` - (string) "x86_64" (default). + // `gpu_architecture` - (string) "none" (default), "nvidia". + map params = 2; } -// The GCS location for the input content. +// Output configuration for ExportEvaluatedExamples Action. Note that this call +// is available only for 30 days since the moment the model was evaluated. +// The output depends on the domain, as follows (note that only examples from +// the TEST set are exported): +// +// * For Tables: +// +// [bigquery_destination][google.cloud.automl.v1beta1.OutputConfig.bigquery_destination] +// pointing to a BigQuery project must be set. In the given project a +// new dataset will be created with name +// +// `export_evaluated_examples__` +// where will be made BigQuery-dataset-name +// compatible (e.g. most special characters will become underscores), +// and timestamp will be in YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" +// format. In the dataset an `evaluated_examples` table will be +// created. It will have all the same columns as the +// [primary +// +// table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id] +// of the +// [dataset][google.cloud.automl.v1beta1.Model.dataset_id] from which +// the model was created, as they were at the moment of model's +// evaluation (this includes the target column with its ground +// truth), followed by a column called "predicted_". That +// last column will contain the model's prediction result for each +// respective row, given as ARRAY of +// [AnnotationPayloads][google.cloud.automl.v1beta1.AnnotationPayload], +// represented as STRUCT-s, containing +// [TablesAnnotation][google.cloud.automl.v1beta1.TablesAnnotation]. +message ExportEvaluatedExamplesOutputConfig { + // Required. The destination of the output. + oneof destination { + // The BigQuery location where the output is to be written to. + BigQueryDestination bigquery_destination = 2; + } +} + +// The Google Cloud Storage location for the input content. message GcsSource { // Required. Google Cloud Storage URIs to input files, up to 2000 characters // long. Accepted forms: - // * Full object path: gs://bucket/directory/object.csv + // * Full object path, e.g. gs://bucket/directory/object.csv repeated string input_uris = 1; } -// The GCS location where the output must be written to +// The BigQuery location for the input content. +message BigQuerySource { + // Required. BigQuery URI to a table, up to 2000 characters long. + // Accepted forms: + // * BigQuery path e.g. bq://projectId.bqDatasetId.bqTableId + string input_uri = 1; +} + +// The Google Cloud Storage location where the output is to be written to. message GcsDestination { // Required. Google Cloud Storage URI to output directory, up to 2000 // characters long. @@ -59,3 +789,27 @@ message GcsDestination { // The directory is created if it doesn't exist. string output_uri_prefix = 1; } + +// The BigQuery location for the output content. +message BigQueryDestination { + // Required. BigQuery URI to a project, up to 2000 characters long. + // Accepted forms: + // * BigQuery path e.g. bq://projectId + string output_uri = 1; +} + +// The GCR location where the image must be pushed to. +message GcrDestination { + // Required. Google Contained Registry URI of the new image, up to 2000 + // characters long. See + // + // https: + // //cloud.google.com/container-registry/do + // // cs/pushing-and-pulling#pushing_an_image_to_a_registry + // Accepted forms: + // * [HOSTNAME]/[PROJECT-ID]/[IMAGE] + // * [HOSTNAME]/[PROJECT-ID]/[IMAGE]:[TAG] + // + // The requesting user must have permission to push images the project. + string output_uri = 1; +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model.proto index 6157c84b734b..42254c36f13b 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model.proto +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; @@ -18,8 +19,10 @@ package google.cloud.automl.v1beta1; import "google/api/annotations.proto"; import "google/cloud/automl/v1beta1/image.proto"; +import "google/cloud/automl/v1beta1/tables.proto"; import "google/cloud/automl/v1beta1/text.proto"; import "google/cloud/automl/v1beta1/translation.proto"; +import "google/cloud/automl/v1beta1/video.proto"; import "google/protobuf/timestamp.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl"; @@ -27,6 +30,7 @@ option java_multiple_files = true; option java_package = "com.google.cloud.automl.v1beta1"; option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + // API proto representing a trained machine learning model. message Model { // Deployment state of the model. @@ -45,14 +49,29 @@ message Model { // The model metadata that is specific to the problem type. // Must match the metadata type of the dataset used to train the model. oneof model_metadata { + // Metadata for translation models. + TranslationModelMetadata translation_model_metadata = 15; + // Metadata for image classification models. ImageClassificationModelMetadata image_classification_model_metadata = 13; // Metadata for text classification models. TextClassificationModelMetadata text_classification_model_metadata = 14; - // Metadata for translation models. - TranslationModelMetadata translation_model_metadata = 15; + // Metadata for image object detection models. + ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; + + // Metadata for video classification models. + VideoClassificationModelMetadata video_classification_model_metadata = 23; + + // Metadata for text extraction models. + TextExtractionModelMetadata text_extraction_model_metadata = 19; + + // Metadata for Tables models. + TablesModelMetadata tables_model_metadata = 24; + + // Metadata for text sentiment models. + TextSentimentModelMetadata text_sentiment_model_metadata = 22; } // Output only. @@ -61,15 +80,14 @@ message Model { string name = 1; // Required. The name of the model to show in the interface. The name can be - // up to 32 characters - // long and can consist only of ASCII Latin letters A-Z and a-z, underscores - // (_), and ASCII digits 0-9. + // up to 32 characters long and can consist only of ASCII Latin letters A-Z + // and a-z, underscores + // (_), and ASCII digits 0-9. It must start with a letter. string display_name = 2; // Required. // The resource ID of the dataset used to create the model. The dataset must - // come from the - // same ancestor project and location. + // come from the same ancestor project and location. string dataset_id = 3; // Output only. @@ -80,6 +98,7 @@ message Model { // Timestamp when this model was last updated. google.protobuf.Timestamp update_time = 11; - // Output only. Deployment state of the model. + // Output only. Deployment state of the model. A model can only serve + // prediction requests after it gets deployed. DeploymentState deployment_state = 8; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model_evaluation.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model_evaluation.proto index 76be0071950a..1074d25beec5 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model_evaluation.proto +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/model_evaluation.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; @@ -18,6 +19,11 @@ package google.cloud.automl.v1beta1; import "google/api/annotations.proto"; import "google/cloud/automl/v1beta1/classification.proto"; +import "google/cloud/automl/v1beta1/detection.proto"; +import "google/cloud/automl/v1beta1/regression.proto"; +import "google/cloud/automl/v1beta1/tables.proto"; +import "google/cloud/automl/v1beta1/text_extraction.proto"; +import "google/cloud/automl/v1beta1/text_sentiment.proto"; import "google/cloud/automl/v1beta1/translation.proto"; import "google/protobuf/timestamp.proto"; @@ -26,15 +32,33 @@ option java_multiple_files = true; option java_package = "com.google.cloud.automl.v1beta1"; option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + // Evaluation results of a model. message ModelEvaluation { // Output only. Problem type specific evaluation metrics. oneof metrics { - // Evaluation metrics for models on classification problems models. + // Model evaluation metrics for image, text, video and tables + // classification. + // Tables problem is considered a classification when the target column + // has either CATEGORY or ARRAY(CATEGORY) DataType. ClassificationEvaluationMetrics classification_evaluation_metrics = 8; - // Evaluation metrics for models on translation models. + // Model evaluation metrics for Tables regression. + // Tables problem is considered a regression when the target column + // has FLOAT64 DataType. + RegressionEvaluationMetrics regression_evaluation_metrics = 24; + + // Model evaluation metrics for translation. TranslationEvaluationMetrics translation_evaluation_metrics = 9; + + // Model evaluation metrics for image object detection. + ImageObjectDetectionEvaluationMetrics image_object_detection_evaluation_metrics = 12; + + // Evaluation metrics for text sentiment models. + TextSentimentEvaluationMetrics text_sentiment_evaluation_metrics = 11; + + // Evaluation metrics for text extraction models. + TextExtractionEvaluationMetrics text_extraction_evaluation_metrics = 13; } // Output only. @@ -46,16 +70,36 @@ message ModelEvaluation { // Output only. // The ID of the annotation spec that the model evaluation applies to. The - // ID is empty for overall model evaluation. + // The ID is empty for the overall model evaluation. + // For Tables classification these are the distinct values of the target + // column at the moment of the evaluation; for this problem annotation specs + // in the dataset do not exist. // NOTE: Currently there is no way to obtain the display_name of the // annotation spec from its ID. To see the display_names, review the model // evaluations in the UI. string annotation_spec_id = 2; + // Output only. The value of [AnnotationSpec.display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name] when the model + // was trained. Because this field returns a value at model training time, + // for different models trained using the same dataset, the returned value + // could be different as model owner could update the display_name between + // any two model training. + // The display_name is empty for the overall model evaluation. + string display_name = 15; + // Output only. // Timestamp when this model evaluation was created. google.protobuf.Timestamp create_time = 5; - // Output only. The number of examples used for model evaluation. + // Output only. + // The number of examples used for model evaluation, i.e. for + // which ground truth from time of model creation is compared against the + // predicted annotations created by the model. + // For overall ModelEvaluation (i.e. with annotation_spec_id not set) this is + // the total number of all examples used for evaluation. + // Otherwise, this is the count of examples that according to the ground + // truth were annotated by the + // + // [annotation_spec_id][google.cloud.automl.v1beta1.ModelEvaluation.annotation_spec_id]. int32 evaluated_example_count = 6; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/operations.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/operations.proto index c9e64cc9ec0d..f075336be80a 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/operations.proto +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/operations.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,12 +11,14 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; package google.cloud.automl.v1beta1; import "google/api/annotations.proto"; +import "google/cloud/automl/v1beta1/io.proto"; import "google/cloud/automl/v1beta1/model.proto"; import "google/cloud/automl/v1beta1/model_evaluation.proto"; import "google/protobuf/empty.proto"; @@ -28,16 +30,42 @@ option java_multiple_files = true; option java_package = "com.google.cloud.automl.v1beta1"; option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + // Metadata used across all long running operations returned by AutoML API. message OperationMetadata { // Ouptut only. Details of specific operation. Even if this field is empty, // the presence allows to distinguish different types of operations. oneof details { + // Details of a Delete operation. + DeleteOperationMetadata delete_details = 8; + + // Details of a DeployModel operation. + DeployModelOperationMetadata deploy_model_details = 24; + + // Details of an UndeployModel operation. + UndeployModelOperationMetadata undeploy_model_details = 25; + // Details of CreateModel operation. CreateModelOperationMetadata create_model_details = 10; + + // Details of ImportData operation. + ImportDataOperationMetadata import_data_details = 15; + + // Details of BatchPredict operation. + BatchPredictOperationMetadata batch_predict_details = 16; + + // Details of ExportData operation. + ExportDataOperationMetadata export_data_details = 21; + + // Details of ExportModel operation. + ExportModelOperationMetadata export_model_details = 22; + + // Details of ExportEvaluatedExamples operation. + ExportEvaluatedExamplesOperationMetadata export_evaluated_examples_details = 26; } // Output only. Progress of operation. Range: [0, 100]. + // Not used currently. int32 progress_percent = 13; // Output only. Partial failures encountered. @@ -53,5 +81,110 @@ message OperationMetadata { google.protobuf.Timestamp update_time = 4; } +// Details of operations that perform deletes of any entities. +message DeleteOperationMetadata { + +} + +// Details of DeployModel operation. +message DeployModelOperationMetadata { + +} + +// Details of UndeployModel operation. +message UndeployModelOperationMetadata { + +} + // Details of CreateModel operation. -message CreateModelOperationMetadata {} +message CreateModelOperationMetadata { + +} + +// Details of ImportData operation. +message ImportDataOperationMetadata { + +} + +// Details of ExportData operation. +message ExportDataOperationMetadata { + // Further describes this export data's output. + // Supplements + // [OutputConfig][google.cloud.automl.v1beta1.OutputConfig]. + message ExportDataOutputInfo { + // The output location to which the exported data is written. + oneof output_location { + // The full path of the Google Cloud Storage directory created, into which + // the exported data is written. + string gcs_output_directory = 1; + + // The path of the BigQuery dataset created, in bq://projectId.bqDatasetId + // format, into which the exported data is written. + string bigquery_output_dataset = 2; + } + } + + // Output only. Information further describing this export data's output. + ExportDataOutputInfo output_info = 1; +} + +// Details of BatchPredict operation. +message BatchPredictOperationMetadata { + // Further describes this batch predict's output. + // Supplements + // + // [BatchPredictionOutputConfig][google.cloud.automl.v1beta1.BatchPredictionOutputConfig]. + message BatchPredictOutputInfo { + // The output location into which prediction output is written. + oneof output_location { + // The full path of the Google Cloud Storage directory created, into which + // the prediction output is written. + string gcs_output_directory = 1; + + // The path of the BigQuery dataset created, in bq://projectId.bqDatasetId + // format, into which the prediction output is written. + string bigquery_output_dataset = 2; + } + } + + // Output only. The input config that was given upon starting this + // batch predict operation. + BatchPredictInputConfig input_config = 1; + + // Output only. Information further describing this batch predict's output. + BatchPredictOutputInfo output_info = 2; +} + +// Details of ExportModel operation. +message ExportModelOperationMetadata { + // Further describes the output of model export. + // Supplements + // + // [ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig]. + message ExportModelOutputInfo { + // The full path of the Google Cloud Storage directory created, into which + // the model will be exported. + string gcs_output_directory = 1; + } + + // Output only. Information further describing the output of this model + // export. + ExportModelOutputInfo output_info = 2; +} + +// Details of EvaluatedExamples operation. +message ExportEvaluatedExamplesOperationMetadata { + // Further describes the output of the evaluated examples export. + // Supplements + // + // [ExportEvaluatedExamplesOutputConfig][google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig]. + message ExportEvaluatedExamplesOutputInfo { + // The path of the BigQuery dataset created, in bq://projectId.bqDatasetId + // format, into which the output of export evaluated examples is written. + string bigquery_output_dataset = 2; + } + + // Output only. Information further describing the output of this evaluated + // examples export. + ExportEvaluatedExamplesOutputInfo output_info = 2; +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/prediction_service.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/prediction_service.proto index 7e39eaee0e90..e63fe920f4cc 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/prediction_service.proto +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/prediction_service.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; @@ -19,6 +20,9 @@ package google.cloud.automl.v1beta1; import "google/api/annotations.proto"; import "google/cloud/automl/v1beta1/annotation_payload.proto"; import "google/cloud/automl/v1beta1/data_items.proto"; +import "google/cloud/automl/v1beta1/io.proto"; +import "google/cloud/automl/v1beta1/operations.proto"; +import "google/longrunning/operations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl"; option java_multiple_files = true; @@ -26,19 +30,53 @@ option java_outer_classname = "PredictionServiceProto"; option java_package = "com.google.cloud.automl.v1beta1"; option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + // AutoML Prediction API. +// +// On any input that is documented to expect a string parameter in +// snake_case or kebab-case, either of those cases is accepted. service PredictionService { - // Perform a prediction. + // Perform an online prediction. The prediction result will be directly + // returned in the response. + // Available for following ML problems, and their expected request payloads: + // * Image Classification - Image in .JPEG, .GIF or .PNG format, image_bytes + // up to 30MB. + // * Image Object Detection - Image in .JPEG, .GIF or .PNG format, image_bytes + // up to 30MB. + // * Text Classification - TextSnippet, content up to 10,000 characters, + // UTF-8 encoded. + // * Text Extraction - TextSnippet, content up to 30,000 characters, + // UTF-8 NFC encoded. * Translation - TextSnippet, content up to 25,000 characters, UTF-8 + // encoded. + // * Tables - Row, with column values matching the columns of the model, + // up to 5MB. + // * Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded. rpc Predict(PredictRequest) returns (PredictResponse) { option (google.api.http) = { post: "/v1beta1/{name=projects/*/locations/*/models/*}:predict" body: "*" }; } + + // Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1beta1.PredictionService.Predict], batch + // prediction result won't be immediately available in the response. Instead, + // a long running operation object is returned. User can poll the operation + // result via [GetOperation][google.longrunning.Operations.GetOperation] + // method. Once the operation is done, [BatchPredictResult][google.cloud.automl.v1beta1.BatchPredictResult] is returned in + // the [response][google.longrunning.Operation.response] field. + // Available for following ML problems: + // * Video Classification + // * Text Extraction + // * Tables + rpc BatchPredict(BatchPredictRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/models/*}:batchPredict" + body: "*" + }; + } } -// Request message for -// [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict]. +// Request message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict]. message PredictRequest { // Name of the model requested to serve the prediction. string name = 1; @@ -54,22 +92,88 @@ message PredictRequest { // * For Image Classification: // // `score_threshold` - (float) A value from 0.0 to 1.0. When the model - // makes predictions for an - // image, it will only produce results that have at least this confidence - // score threshold. The default is 0.5. + // makes predictions for an image, it will only produce results that have + // at least this confidence score. The default is 0.5. + // + // * For Image Object Detection: + // `score_threshold` - (float) When Model detects objects on the image, + // it will only produce bounding boxes which have at least this + // confidence score. Value in 0 to 1 range, default is 0.5. + // `max_bounding_box_count` - (int64) No more than this number of bounding + // boxes will be returned in the response. Default is 100, the + // requested value may be limited by server. map params = 3; } -// Response message for -// [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict]. -// -// Currently, this is only -// used to return an image recognition prediction result. More prediction -// output metadata might be introduced in the future. +// Response message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict]. message PredictResponse { // Prediction result. + // Translation and Text Sentiment will return precisely one payload. repeated AnnotationPayload payload = 1; // Additional domain-specific prediction response metadata. + // + // * For Image Object Detection: + // `max_bounding_box_count` - (int64) At most that many bounding boxes per + // image could have been returned. + // + // * For Text Sentiment: + // `sentiment_score` - (float, deprecated) A value between -1 and 1, + // -1 maps to least positive sentiment, while 1 maps to the most positive + // one and the higher the score, the more positive the sentiment in the + // document is. Yet these values are relative to the training data, so + // e.g. if all data was positive then -1 will be also positive (though + // the least). + // The sentiment_score shouldn't be confused with "score" or "magnitude" + // from the previous Natural Language Sentiment Analysis API. map metadata = 2; } + +// Request message for [PredictionService.BatchPredict][google.cloud.automl.v1beta1.PredictionService.BatchPredict]. +message BatchPredictRequest { + // Name of the model requested to serve the batch prediction. + string name = 1; + + // Required. The input configuration for batch prediction. + BatchPredictInputConfig input_config = 3; + + // Required. The Configuration specifying where output predictions should + // be written. + BatchPredictOutputConfig output_config = 4; + + // Additional domain-specific parameters for the predictions, any string must + // be up to 25000 characters long. + // + // * For Video Classification : + // `score_threshold` - (float) A value from 0.0 to 1.0. When the model + // makes predictions for a video, it will only produce results that + // have at least this confidence score. The default is 0.5. + // `segment_classification` - (boolean) Set to true to request + // segment-level classification. AutoML Video Intelligence returns + // labels and their confidence scores for the entire segment of the + // video that user specified in the request configuration. + // The default is "true". + // `shot_classification` - (boolean) Set to true to request shot-level + // classification. AutoML Video Intelligence determines the boundaries + // for each camera shot in the entire segment of the video that user + // specified in the request configuration. AutoML Video Intelligence + // then returns labels and their confidence scores for each detected + // shot, along with the start and end time of the shot. + // WARNING: Model evaluation is not done for this classification type, + // the quality of it depends on training data, but there are no metrics + // provided to describe that quality. The default is "false". + // `1s_interval_classification` - (boolean) Set to true to request + // classification for a video at one-second intervals. AutoML Video + // Intelligence returns labels and their confidence scores for each + // second of the entire segment of the video that user specified in the + // request configuration. + // WARNING: Model evaluation is not done for this classification + // type, the quality of it depends on training data, but there are no + // metrics provided to describe that quality. The default is + // "false". + map params = 5; +} + +// Batch predict result. +message BatchPredictResult { +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/ranges.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/ranges.proto new file mode 100644 index 000000000000..01602218fc69 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/ranges.proto @@ -0,0 +1,36 @@ +// Copyright 2018 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.automl.v1beta1; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl"; +option java_multiple_files = true; +option java_outer_classname = "RangesProto"; +option java_package = "com.google.cloud.automl.v1beta1"; +option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + + +// A range between two double numbers. +message DoubleRange { + // Start of the range, inclusive. + double start = 1; + + // End of the range, exclusive. + double end = 2; +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/regression.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/regression.proto new file mode 100644 index 000000000000..a215c9b9859f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/regression.proto @@ -0,0 +1,42 @@ +// Copyright 2018 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.automl.v1beta1; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl"; +option java_outer_classname = "RegressionProto"; +option java_package = "com.google.cloud.automl.v1beta1"; +option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + + +// Metrics for regression problems. +message RegressionEvaluationMetrics { + // Output only. Root Mean Squared Error (RMSE). + float root_mean_squared_error = 1; + + // Output only. Mean Absolute Error (MAE). + float mean_absolute_error = 2; + + // Output only. Mean absolute percentage error. Only set if all ground truth + // values are are positive. + float mean_absolute_percentage_error = 3; + + // Output only. R squared. + float r_squared = 4; +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/service.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/service.proto index 362254367afc..e0bf47fadd57 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/service.proto +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/service.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; @@ -18,11 +19,14 @@ package google.cloud.automl.v1beta1; import "google/api/annotations.proto"; import "google/cloud/automl/v1beta1/annotation_payload.proto"; +import "google/cloud/automl/v1beta1/column_spec.proto"; import "google/cloud/automl/v1beta1/dataset.proto"; +import "google/cloud/automl/v1beta1/image.proto"; import "google/cloud/automl/v1beta1/io.proto"; import "google/cloud/automl/v1beta1/model.proto"; import "google/cloud/automl/v1beta1/model_evaluation.proto"; import "google/cloud/automl/v1beta1/operations.proto"; +import "google/cloud/automl/v1beta1/table_spec.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; @@ -32,6 +36,7 @@ option java_outer_classname = "AutoMlProto"; option java_package = "com.google.cloud.automl.v1beta1"; option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + // AutoML Server API. // // The resource names are assigned by the server. @@ -42,6 +47,10 @@ option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then // the id for the item is `{dataset_id}`. // +// Currently the only supported `location_id` is "us-central1". +// +// On any input that is documented to expect a string parameter in +// snake_case or kebab-case, either of those cases is accepted. service AutoMl { // Creates a dataset. rpc CreateDataset(CreateDatasetRequest) returns (Dataset) { @@ -65,19 +74,31 @@ service AutoMl { }; } + // Updates a dataset. + rpc UpdateDataset(UpdateDatasetRequest) returns (Dataset) { + option (google.api.http) = { + patch: "/v1beta1/{dataset.name=projects/*/locations/*/datasets/*}" + body: "dataset" + }; + } + // Deletes a dataset and all of its contents. // Returns empty response in the // [response][google.longrunning.Operation.response] field when it completes, // and `delete_details` in the // [metadata][google.longrunning.Operation.metadata] field. - rpc DeleteDataset(DeleteDatasetRequest) - returns (google.longrunning.Operation) { + rpc DeleteDataset(DeleteDatasetRequest) returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1beta1/{name=projects/*/locations/*/datasets/*}" }; } - // Imports data into a dataset. + // Imports data into a dataset. For Tables this method can only be called on an empty Dataset. + // + // For Tables: + // * A + // [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] + // parameter must be explicitly set. // Returns an empty response in the // [response][google.longrunning.Operation.response] field when it completes. rpc ImportData(ImportDataRequest) returns (google.longrunning.Operation) { @@ -87,7 +108,7 @@ service AutoMl { }; } - // Exports dataset's data to a Google Cloud Storage bucket. + // Exports dataset's data to the provided output location. // Returns an empty response in the // [response][google.longrunning.Operation.response] field when it completes. rpc ExportData(ExportDataRequest) returns (google.longrunning.Operation) { @@ -97,6 +118,57 @@ service AutoMl { }; } + // Gets an annotation spec. + rpc GetAnnotationSpec(GetAnnotationSpecRequest) returns (AnnotationSpec) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}" + }; + } + + // Gets a table spec. + rpc GetTableSpec(GetTableSpecRequest) returns (TableSpec) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/datasets/*/tableSpecs/*}" + }; + } + + // Lists table specs in a dataset. + rpc ListTableSpecs(ListTableSpecsRequest) returns (ListTableSpecsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/datasets/*}/tableSpecs" + }; + } + + // Updates a table spec. + rpc UpdateTableSpec(UpdateTableSpecRequest) returns (TableSpec) { + option (google.api.http) = { + patch: "/v1beta1/{table_spec.name=projects/*/locations/*/datasets/*/tableSpecs/*}" + body: "table_spec" + }; + } + + // Gets a column spec. + rpc GetColumnSpec(GetColumnSpecRequest) returns (ColumnSpec) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/datasets/*/tableSpecs/*/columnSpecs/*}" + }; + } + + // Lists column specs in a table spec. + rpc ListColumnSpecs(ListColumnSpecsRequest) returns (ListColumnSpecsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/datasets/*/tableSpecs/*}/columnSpecs" + }; + } + + // Updates a column spec. + rpc UpdateColumnSpec(UpdateColumnSpecRequest) returns (ColumnSpec) { + option (google.api.http) = { + patch: "/v1beta1/{column_spec.name=projects/*/locations/*/datasets/*/tableSpecs/*/columnSpecs/*}" + body: "column_spec" + }; + } + // Creates a model. // Returns a Model in the [response][google.longrunning.Operation.response] // field when it completes. @@ -124,9 +196,6 @@ service AutoMl { } // Deletes a model. - // If a model is already deployed, this only deletes the model in AutoML BE, - // and does not change the status of the deployed model in the production - // environment. // Returns `google.protobuf.Empty` in the // [response][google.longrunning.Operation.response] field when it completes, // and `delete_details` in the @@ -137,8 +206,17 @@ service AutoMl { }; } - // Deploys model. - // Returns a [DeployModelResponse][] in the + // Deploys a model. If a model is already deployed, deploying it with the + // same parameters has no effect. Deploying with different parametrs + // (as e.g. changing + // + // [node_number][google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.node_number] + // ) will update the deployment without pausing the model's availability. + // + // Only applicable for Text Classification, Image Object Detection and Tables; + // all other domains manage deployment automatically. + // + // Returns an empty response in the // [response][google.longrunning.Operation.response] field when it completes. rpc DeployModel(DeployModelRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -147,17 +225,56 @@ service AutoMl { }; } - // Undeploys model. - // Returns an `UndeployModelResponse` in the + // Undeploys a model. If the model is not deployed this method has no effect. + // + // Only applicable for Text Classification, Image Object Detection and Tables; + // all other domains manage deployment automatically. + // + // Returns an empty response in the // [response][google.longrunning.Operation.response] field when it completes. - rpc UndeployModel(UndeployModelRequest) - returns (google.longrunning.Operation) { + rpc UndeployModel(UndeployModelRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1beta1/{name=projects/*/locations/*/models/*}:undeploy" body: "*" }; } + // Exports a trained, "export-able", model to a user specified Google Cloud + // Storage location. A model is considered export-able if and only if it has + // an export format defined for it in + // + // [ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig]. + // + // Returns an empty response in the + // [response][google.longrunning.Operation.response] field when it completes. + rpc ExportModel(ExportModelRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/models/*}:export" + body: "*" + }; + } + + // Exports examples on which the model was evaluated (i.e. which were in the + // TEST set of the dataset the model was created from), together with their + // ground truth annotations and the annotations created (predicted) by the + // model. + // The examples, ground truth and predictions are exported in the state + // they were at the moment the model was evaluated. + // + // This export is available only for 30 days since the model evaluation is + // created. + // + // Currently only available for Tables. + // + // Returns an empty response in the + // [response][google.longrunning.Operation.response] field when it completes. + rpc ExportEvaluatedExamples(ExportEvaluatedExamplesRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/models/*}:exportEvaluatedExamples" + body: "*" + }; + } + // Gets a model evaluation. rpc GetModelEvaluation(GetModelEvaluationRequest) returns (ModelEvaluation) { option (google.api.http) = { @@ -166,16 +283,14 @@ service AutoMl { } // Lists model evaluations. - rpc ListModelEvaluations(ListModelEvaluationsRequest) - returns (ListModelEvaluationsResponse) { + rpc ListModelEvaluations(ListModelEvaluationsRequest) returns (ListModelEvaluationsResponse) { option (google.api.http) = { get: "/v1beta1/{parent=projects/*/locations/*/models/*}/modelEvaluations" }; } } -// Request message for -// [AutoMl.CreateDataset][google.cloud.automl.v1beta1.AutoMl.CreateDataset]. +// Request message for [AutoMl.CreateDataset][google.cloud.automl.v1beta1.AutoMl.CreateDataset]. message CreateDatasetRequest { // The resource name of the project to create the dataset for. string parent = 1; @@ -184,24 +299,21 @@ message CreateDatasetRequest { Dataset dataset = 2; } -// Request message for -// [AutoMl.GetDataset][google.cloud.automl.v1beta1.AutoMl.GetDataset]. +// Request message for [AutoMl.GetDataset][google.cloud.automl.v1beta1.AutoMl.GetDataset]. message GetDatasetRequest { // The resource name of the dataset to retrieve. string name = 1; } -// Request message for -// [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets]. +// Request message for [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets]. message ListDatasetsRequest { // The resource name of the project from which to list datasets. string parent = 1; // An expression for filtering the results of the request. // - // * `dataset_metadata` - for existence of the case. - // - // An example of using the filter is: + // * `dataset_metadata` - for existence of the case (e.g. + // image_classification_dataset_metadata:*). Some examples of using the filter are: // // * `translation_dataset_metadata:*` --> The dataset has // translation_dataset_metadata. @@ -213,46 +325,53 @@ message ListDatasetsRequest { // A token identifying a page of results for the server to return // Typically obtained via - // [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token] - // of the previous - // [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets] - // call. + // [ListDatasetsResponse.next_page_token][google.cloud.automl.v1beta1.ListDatasetsResponse.next_page_token] of the previous + // [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets] call. string page_token = 6; } -// Response message for -// [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets]. +// Response message for [AutoMl.ListDatasets][google.cloud.automl.v1beta1.AutoMl.ListDatasets]. message ListDatasetsResponse { // The datasets read. repeated Dataset datasets = 1; // A token to retrieve next page of results. - // Pass to - // [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] - // to obtain that page. + // Pass to [ListDatasetsRequest.page_token][google.cloud.automl.v1beta1.ListDatasetsRequest.page_token] to obtain that page. string next_page_token = 2; } -// Request message for -// [AutoMl.DeleteDataset][google.cloud.automl.v1beta1.AutoMl.DeleteDataset]. +// Request message for [AutoMl.UpdateDataset][google.cloud.automl.v1beta1.AutoMl.UpdateDataset] +message UpdateDatasetRequest { + // The dataset which replaces the resource on the server. + Dataset dataset = 1; + + // The update mask applies to the resource. For the `FieldMask` definition, + // see + // + // https: + // //developers.google.com/protocol-buffers + // // /docs/reference/google.protobuf#fieldmask + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for [AutoMl.DeleteDataset][google.cloud.automl.v1beta1.AutoMl.DeleteDataset]. message DeleteDatasetRequest { // The resource name of the dataset to delete. string name = 1; } -// Request message for -// [AutoMl.ImportData][google.cloud.automl.v1beta1.AutoMl.ImportData]. +// Request message for [AutoMl.ImportData][google.cloud.automl.v1beta1.AutoMl.ImportData]. message ImportDataRequest { // Required. Dataset name. Dataset must already exist. All imported // annotations and examples will be added. string name = 1; - // Required. The desired input location. + // Required. The desired input location and its domain specific semantics, + // if any. InputConfig input_config = 3; } -// Request message for -// [AutoMl.ExportData][google.cloud.automl.v1beta1.AutoMl.ExportData]. +// Request message for [AutoMl.ExportData][google.cloud.automl.v1beta1.AutoMl.ExportData]. message ExportDataRequest { // Required. The resource name of the dataset. string name = 1; @@ -261,8 +380,123 @@ message ExportDataRequest { OutputConfig output_config = 3; } -// Request message for -// [AutoMl.CreateModel][google.cloud.automl.v1beta1.AutoMl.CreateModel]. +// Request message for [AutoMl.GetAnnotationSpec][google.cloud.automl.v1beta1.AutoMl.GetAnnotationSpec]. +message GetAnnotationSpecRequest { + // The resource name of the annotation spec to retrieve. + string name = 1; +} + +// Request message for [AutoMl.GetTableSpec][google.cloud.automl.v1beta1.AutoMl.GetTableSpec]. +message GetTableSpecRequest { + // The resource name of the table spec to retrieve. + string name = 1; + + // Mask specifying which fields to read. + google.protobuf.FieldMask field_mask = 2; +} + +// Request message for [AutoMl.ListTableSpecs][google.cloud.automl.v1beta1.AutoMl.ListTableSpecs]. +message ListTableSpecsRequest { + // The resource name of the dataset to list table specs from. + string parent = 1; + + // Mask specifying which fields to read. + google.protobuf.FieldMask field_mask = 2; + + // Filter expression, see go/filtering. + string filter = 3; + + // Requested page size. The server can return fewer results than requested. + // If unspecified, the server will pick a default size. + int32 page_size = 4; + + // A token identifying a page of results for the server to return. + // Typically obtained from the + // [ListTableSpecsResponse.next_page_token][google.cloud.automl.v1beta1.ListTableSpecsResponse.next_page_token] field of the previous + // [AutoMl.ListTableSpecs][google.cloud.automl.v1beta1.AutoMl.ListTableSpecs] call. + string page_token = 6; +} + +// Response message for [AutoMl.ListTableSpecs][google.cloud.automl.v1beta1.AutoMl.ListTableSpecs]. +message ListTableSpecsResponse { + // The table specs read. + repeated TableSpec table_specs = 1; + + // A token to retrieve next page of results. + // Pass to [ListTableSpecsRequest.page_token][google.cloud.automl.v1beta1.ListTableSpecsRequest.page_token] to obtain that page. + string next_page_token = 2; +} + +// Request message for [AutoMl.UpdateTableSpec][google.cloud.automl.v1beta1.AutoMl.UpdateTableSpec] +message UpdateTableSpecRequest { + // The table spec which replaces the resource on the server. + TableSpec table_spec = 1; + + // The update mask applies to the resource. For the `FieldMask` definition, + // see + // + // https: + // //developers.google.com/protocol-buffers + // // /docs/reference/google.protobuf#fieldmask + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for [AutoMl.GetColumnSpec][google.cloud.automl.v1beta1.AutoMl.GetColumnSpec]. +message GetColumnSpecRequest { + // The resource name of the column spec to retrieve. + string name = 1; + + // Mask specifying which fields to read. + google.protobuf.FieldMask field_mask = 2; +} + +// Request message for [AutoMl.ListColumnSpecs][google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs]. +message ListColumnSpecsRequest { + // The resource name of the table spec to list column specs from. + string parent = 1; + + // Mask specifying which fields to read. + google.protobuf.FieldMask field_mask = 2; + + // Filter expression, see go/filtering. + string filter = 3; + + // Requested page size. The server can return fewer results than requested. + // If unspecified, the server will pick a default size. + int32 page_size = 4; + + // A token identifying a page of results for the server to return. + // Typically obtained from the + // [ListColumnSpecsResponse.next_page_token][google.cloud.automl.v1beta1.ListColumnSpecsResponse.next_page_token] field of the previous + // [AutoMl.ListColumnSpecs][google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs] call. + string page_token = 6; +} + +// Response message for [AutoMl.ListColumnSpecs][google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs]. +message ListColumnSpecsResponse { + // The column specs read. + repeated ColumnSpec column_specs = 1; + + // A token to retrieve next page of results. + // Pass to [ListColumnSpecsRequest.page_token][google.cloud.automl.v1beta1.ListColumnSpecsRequest.page_token] to obtain that page. + string next_page_token = 2; +} + +// Request message for [AutoMl.UpdateColumnSpec][google.cloud.automl.v1beta1.AutoMl.UpdateColumnSpec] +message UpdateColumnSpecRequest { + // The column spec which replaces the resource on the server. + ColumnSpec column_spec = 1; + + // The update mask applies to the resource. For the `FieldMask` definition, + // see + // + // https: + // //developers.google.com/protocol-buffers + // // /docs/reference/google.protobuf#fieldmask + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for [AutoMl.CreateModel][google.cloud.automl.v1beta1.AutoMl.CreateModel]. message CreateModelRequest { // Resource name of the parent project where the model is being created. string parent = 1; @@ -271,30 +505,26 @@ message CreateModelRequest { Model model = 4; } -// Request message for -// [AutoMl.GetModel][google.cloud.automl.v1beta1.AutoMl.GetModel]. +// Request message for [AutoMl.GetModel][google.cloud.automl.v1beta1.AutoMl.GetModel]. message GetModelRequest { // Resource name of the model. string name = 1; } -// Request message for -// [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels]. +// Request message for [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels]. message ListModelsRequest { // Resource name of the project, from which to list the models. string parent = 1; // An expression for filtering the results of the request. // - // * `model_metadata` - for existence of the case. - // * `dataset_id` - for = or !=. - // - // Some examples of using the filter are: + // * `model_metadata` - for existence of the case (e.g. + // video_classification_model_metadata:*). + // * `dataset_id` - for = or !=. Some examples of using the filter are: // // * `image_classification_model_metadata:*` --> The model has // image_classification_model_metadata. - // * `dataset_id=5` --> The model was created from a sibling dataset with - // ID 5. + // * `dataset_id=5` --> The model was created from a dataset with ID 5. string filter = 3; // Requested page size. @@ -302,53 +532,73 @@ message ListModelsRequest { // A token identifying a page of results for the server to return // Typically obtained via - // [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token] - // of the previous + // [ListModelsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelsResponse.next_page_token] of the previous // [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels] call. string page_token = 6; } -// Response message for -// [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels]. +// Response message for [AutoMl.ListModels][google.cloud.automl.v1beta1.AutoMl.ListModels]. message ListModelsResponse { // List of models in the requested page. repeated Model model = 1; // A token to retrieve next page of results. - // Pass to [ListModels.page_token][] to obtain that page. + // Pass to [ListModelsRequest.page_token][google.cloud.automl.v1beta1.ListModelsRequest.page_token] to obtain that page. string next_page_token = 2; } -// Request message for -// [AutoMl.DeleteModel][google.cloud.automl.v1beta1.AutoMl.DeleteModel]. +// Request message for [AutoMl.DeleteModel][google.cloud.automl.v1beta1.AutoMl.DeleteModel]. message DeleteModelRequest { // Resource name of the model being deleted. string name = 1; } -// Request message for -// [AutoMl.DeployModel][google.cloud.automl.v1beta1.AutoMl.DeployModel]. +// Request message for [AutoMl.DeployModel][google.cloud.automl.v1beta1.AutoMl.DeployModel]. message DeployModelRequest { + // The per-domain specific deployment parameters. + oneof model_deployment_metadata { + // Model deployment metadata specific to Image Object Detection. + ImageObjectDetectionModelDeploymentMetadata image_object_detection_model_deployment_metadata = 2; + } + // Resource name of the model to deploy. string name = 1; } -// Request message for -// [AutoMl.UndeployModel][google.cloud.automl.v1beta1.AutoMl.UndeployModel]. +// Request message for [AutoMl.UndeployModel][google.cloud.automl.v1beta1.AutoMl.UndeployModel]. message UndeployModelRequest { // Resource name of the model to undeploy. string name = 1; } -// Request message for -// [AutoMl.GetModelEvaluation][google.cloud.automl.v1beta1.AutoMl.GetModelEvaluation]. +// Request message for [AutoMl.ExportModel][google.cloud.automl.v1beta1.AutoMl.ExportModel]. +// Models need to be enabled for exporting, otherwise an error code will be +// returned. +message ExportModelRequest { + // Required. The resource name of the model to export. + string name = 1; + + // Required. The desired output location and configuration. + ModelExportOutputConfig output_config = 3; +} + +// Request message for [AutoMl.ExportEvaluatedExamples][google.cloud.automl.v1beta1.AutoMl.ExportEvaluatedExamples]. +message ExportEvaluatedExamplesRequest { + // Required. The resource name of the model whose evaluated examples are to + // be exported. + string name = 1; + + // Required. The desired output location and configuration. + ExportEvaluatedExamplesOutputConfig output_config = 3; +} + +// Request message for [AutoMl.GetModelEvaluation][google.cloud.automl.v1beta1.AutoMl.GetModelEvaluation]. message GetModelEvaluationRequest { // Resource name for the model evaluation. string name = 1; } -// Request message for -// [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations]. +// Request message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations]. message ListModelEvaluationsRequest { // Resource name of the model to list the model evaluations for. // If modelId is set as "-", this will list model evaluations from across all @@ -373,19 +623,18 @@ message ListModelEvaluationsRequest { // A token identifying a page of results for the server to return. // Typically obtained via - // `ListModelEvaluationsResponse.next_page_token` of the previous - // [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] - // call. + // [ListModelEvaluationsResponse.next_page_token][google.cloud.automl.v1beta1.ListModelEvaluationsResponse.next_page_token] of the previous + // [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] call. string page_token = 6; } -// Response message for -// [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations]. +// Response message for [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations]. message ListModelEvaluationsResponse { // List of model evaluations in the requested page. repeated ModelEvaluation model_evaluation = 1; // A token to retrieve next page of results. - // Pass to [ListModelEvaluations.page_token][] to obtain that page. + // Pass to the [ListModelEvaluationsRequest.page_token][google.cloud.automl.v1beta1.ListModelEvaluationsRequest.page_token] field of a new + // [AutoMl.ListModelEvaluations][google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations] request to obtain that page. string next_page_token = 2; } diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/table_spec.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/table_spec.proto new file mode 100644 index 000000000000..f0d079776970 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/table_spec.proto @@ -0,0 +1,69 @@ +// Copyright 2018 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.automl.v1beta1; + +import "google/api/annotations.proto"; +import "google/cloud/automl/v1beta1/io.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl"; +option java_multiple_files = true; +option java_package = "com.google.cloud.automl.v1beta1"; +option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + + +// A specification of a relational table. +// The table's schema is represented via its child column specs. It is +// pre-populated as part of ImportData by schema inference algorithm, the +// version of which is a required parameter of ImportData InputConfig. +// Note: While working with a table, at times the schema may be +// inconsistent with the data in the table (e.g. string in a FLOAT64 column). +// The consistency validation is done upon creation of a model. +// Used by: +// * Tables +message TableSpec { + // Output only. The resource name of the table spec. + // Form: + // + // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}` + string name = 1; + + // column_spec_id of the time column. Only used if the parent dataset's + // ml_use_column_spec_id is not set. Used to split rows into TRAIN, VALIDATE + // and TEST sets such that oldest rows go to TRAIN set, newest to TEST, and + // those in between to VALIDATE. + // Required type: TIMESTAMP. + // If both this column and ml_use_column are not set, then ML use of all rows + // will be assigned by AutoML. NOTE: Updates of this field will instantly + // affect any other users concurrently working with the dataset. + string time_column_spec_id = 2; + + // Output only. The number of rows (i.e. examples) in the table. + int64 row_count = 3; + + // Output only. The number of columns of the table. That is, the number of + // child ColumnSpec-s. + int64 column_count = 7; + + // Output only. Input configs via which data currently residing in the table + // had been imported. + repeated InputConfig input_configs = 5; + + // Used to perform consistent read-modify-write updates. If not set, a blind + // "overwrite" update happens. + string etag = 6; +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/tables.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/tables.proto new file mode 100644 index 000000000000..2a5181812c27 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/tables.proto @@ -0,0 +1,251 @@ +// Copyright 2018 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.automl.v1beta1; + +import "google/api/annotations.proto"; +import "google/cloud/automl/v1beta1/column_spec.proto"; +import "google/cloud/automl/v1beta1/data_stats.proto"; +import "google/cloud/automl/v1beta1/ranges.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl"; +option java_multiple_files = true; +option java_package = "com.google.cloud.automl.v1beta1"; +option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + + +// Metadata for a dataset used for AutoML Tables. +message TablesDatasetMetadata { + // Output only. The table_spec_id of the primary table of this dataset. + string primary_table_spec_id = 1; + + // column_spec_id of the primary table's column that should be used as the + // training & prediction target. + // This column must be non-nullable and have one of following data types + // (otherwise model creation will error): + // * CATEGORY + // * ARRAY(CATEGORY) + // * FLOAT64 + // Furthermore, if the type is CATEGORY or ARRAY(CATEGORY), then only up to + // 40 unique values may exist in that column across all rows, but for + // ARRAY(CATEGORY) unique values are counted as elements of the ARRAY (i.e. + // following 3 ARRAY-s: [A, B], [A], [B] are counted as having 2 unique + // values). + // + // NOTE: Updates of this field will instantly affect any other users + // concurrently working with the dataset. + string target_column_spec_id = 2; + + // column_spec_id of the primary table's column that should be used as the + // weight column, i.e. the higher the value the more important the row will be + // during model training. + // Required type: FLOAT64. + // Allowed values: 0 to 10000, inclusive on both ends; 0 means the row is + // ignored for training. + // If not set all rows are assumed to have equal weight of 1. + // NOTE: Updates of this field will instantly affect any other users + // concurrently working with the dataset. + string weight_column_spec_id = 3; + + // column_spec_id of the primary table column which specifies a possible ML + // use of the row, i.e. the column will be used to split the rows into TRAIN, + // VALIDATE and TEST sets. + // Required type: STRING. + // This column, if set, must either have all of `TRAIN`, `VALIDATE`, `TEST` + // among its values, or only have `TEST`, `UNASSIGNED` values. In the latter + // case the rows with `UNASSIGNED` value will be assigned by AutoML. Note + // that if a given ml use distribution makes it impossible to create a "good" + // model, that call will error describing the issue. + // If both this column_spec_id and primary table's time_column_spec_id are not + // set, then all rows are treated as `UNASSIGNED`. + // NOTE: Updates of this field will instantly affect any other users + // concurrently working with the dataset. + string ml_use_column_spec_id = 4; + + // Output only. Correlations between + // + // [target_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.target_column], + // and other columns of the + // + // [primary_table][google.cloud.automl.v1beta1.TablesDatasetMetadata.primary_table_spec_id]. + // Only set if the target column is set. Mapping from other column spec id to + // its CorrelationStats with the target column. + // This field may be stale, see the stats_update_time field for + // for the timestamp at which these stats were last updated. + map target_column_correlations = 6; + + // The most recent timestamp when target_column_correlations field and all + // descendant ColumnSpec.data_stats and ColumnSpec.top_correlated_columns + // fields were last (re-)generated. Any changes that happened to the dataset + // afterwards are not reflected in these fields values. The regeneration + // happens in the background on a best effort basis. + google.protobuf.Timestamp stats_update_time = 7; +} + +// Model metadata specific to AutoML Tables. +message TablesModelMetadata { + // Column spec of the dataset's primary table's column the model is + // predicting. Snapshotted when model creation started. + // Only 3 fields are used: + // name - May be set on CreateModel, if it's not then the ColumnSpec + // corresponding to the current target_column_spec_id of the dataset + // the model is trained from is used. + // If neither is set, CreateModel will error. + // display_name - Output only. + // data_type - Output only. + ColumnSpec target_column_spec = 2; + + // Column specs of the dataset's primary table's columns, on which + // the model is trained and which are used as the input for predictions. + // The + // + // [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec] + // as well as, according to dataset's state upon model creation, + // + // [weight_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.weight_column_spec_id], + // and + // + // [ml_use_column][google.cloud.automl.v1beta1.TablesDatasetMetadata.ml_use_column_spec_id] + // must never be included here. + // Only 3 fields are used: + // name - May be set on CreateModel, if set only the columns specified are + // used, otherwise all primary table's columns (except the ones listed + // above) are used for the training and prediction input. + // display_name - Output only. + // data_type - Output only. + repeated ColumnSpec input_feature_column_specs = 3; + + // Objective function the model is optimizing towards. The training process + // creates a model that maximizes/minimizes the value of the objective + // function over the validation set. + // + // The supported optimization objectives depend on the prediction_type. + // If the field is not set, a default objective function is used. + // + // CLASSIFICATION_BINARY: + // "MAXIMIZE_AU_ROC" (default) - Maximize the area under the receiver + // operating characteristic (ROC) curve. + // "MINIMIZE_LOG_LOSS" - Minimize log loss. + // "MAXIMIZE_AU_PRC" - Maximize the area under the precision-recall curve. + // + // CLASSIFICATION_MULTI_CLASS : + // "MINIMIZE_LOG_LOSS" (default) - Minimize log loss. + // + // CLASSIFICATION_MULTI_LABEL: + // "MINIMIZE_LOG_LOSS" (default) - Minimize log loss. + // + // REGRESSION: + // "MINIMIZE_RMSE" (default) - Minimize root-mean-squared error (RMSE). + // "MINIMIZE_MAE" - Minimize mean-absolute error (MAE). + // "MINIMIZE_RMSLE" - Minimize root-mean-squared log error (RMSLE). + // + // FORECASTING: + // "MINIMIZE_RMSE" (default) - Minimize root-mean-squared error (RMSE). + // "MINIMIZE_MAE" - Minimize mean-absolute error (MAE). + string optimization_objective = 4; + + // Output only. Auxiliary information for each of the + // input_feature_column_specs, with respect to this particular model. + repeated TablesModelColumnInfo tables_model_column_info = 5; + + // The train budget of creating this model, expressed in milli node hours + // i.e. 1,000 value in this field means 1 node hour. + // + // The training cost of the model will not exceed this budget. The final cost + // will be attempted to be close to the budget, though may end up being (even) + // noticeably smaller - at the backend's discretion. This especially may + // happen when further model training ceases to provide any improvements. + // + // If the budget is set to a value known to be insufficient to train a + // model for the given dataset, the training won't be attempted and + // will error. + int64 train_budget_milli_node_hours = 6; + + // Output only. The actual training cost of the model, expressed in milli + // node hours, i.e. 1,000 value in this field means 1 node hour. Guaranteed + // to not exceed the train budget. + int64 train_cost_milli_node_hours = 7; +} + +// Contains annotation details specific to Tables. +message TablesAnnotation { + // Output only. A confidence estimate between 0.0 and 1.0, inclusive. A higher + // value means greater confidence in the returned value. + // For + // + // [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec] + // of ARRAY(CATEGORY) data type, this is a confidence that one of the values + // in the ARRAY would be the provided value. + // For + // + // [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec] + // of FLOAT64 data type the score is not populated. + float score = 1; + + // Output only. Only populated when + // + // [target_column_spec][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec] + // has FLOAT64 data type (i.e. for regression predictions). An interval in + // which the exactly correct target value has 95% chance to be in. + DoubleRange prediction_interval = 4; + + // The predicted value of the row's + // + // [target_column][google.cloud.automl.v1beta1.TablesModelMetadata.target_column_spec]. + // The value depends on the column's DataType: + // CATEGORY - the predicted (with the above confidence `score`) CATEGORY + // value. + // FLOAT64 - the predicted (with the above confidence `score`) FLOAT64 value. + // ARRAY(CATEGORY) - CATEGORY value meaning that this value would be in the + // ARRAY in that column (with the above confidence `score`). + google.protobuf.Value value = 2; + + // Output only. Auxiliary information for each of the model's + // + // [input_feature_column_specs'][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs] + // with respect to this particular prediction. + repeated TablesModelColumnInfo tables_model_column_info = 3; +} + +// An information specific to given column and Tables Model, in context +// of the Model and the predictions created by it. +message TablesModelColumnInfo { + // Output only. The name of the ColumnSpec describing the column. Not + // populated when this proto is outputted to BigQuery. + string column_spec_name = 1; + + // Output only. The display name of the column (same as the display_name of + // its ColumnSpec). + string column_display_name = 2; + + // Output only. + // + // When given as part of a Model: + // Measurement of how much model predictions correctness on the TEST data + // depend on values in this column. A value between 0 and 1, higher means + // higher influence. These values are normalized - for all input feature + // columns of a given model they add to 1. + // + // When given back by Predict or Batch Predict: + // Measurement of how impactful for the prediction returned for the given row + // the value in this column was. A value between 0 and 1, higher means larger + // impact. These values are normalized - for all input feature columns of a + // single predicted row they add to 1. + float feature_importance = 3; +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/temporal.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/temporal.proto new file mode 100644 index 000000000000..616338ddc6ab --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/temporal.proto @@ -0,0 +1,38 @@ +// Copyright 2018 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.automl.v1beta1; + +import "google/api/annotations.proto"; +import "google/protobuf/duration.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl"; +option java_multiple_files = true; +option java_package = "com.google.cloud.automl.v1beta1"; +option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + + +// A time period inside of an example that has a time dimension (e.g. video). +message TimeSegment { + // Start of the time segment (inclusive), represented as the duration since + // the example start. + google.protobuf.Duration start_time_offset = 1; + + // End of the time segment (exclusive), represented as the duration since the + // example start. + google.protobuf.Duration end_time_offset = 2; +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text.proto index 7949a79fce53..8b4b853c31a6 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text.proto +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; @@ -25,6 +26,7 @@ option java_outer_classname = "TextProto"; option java_package = "com.google.cloud.automl.v1beta1"; option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + // Dataset metadata for classification. message TextClassificationDatasetMetadata { // Required. @@ -33,4 +35,33 @@ message TextClassificationDatasetMetadata { } // Model metadata that is specific to text classification. -message TextClassificationModelMetadata {} +message TextClassificationModelMetadata { + +} + +// Dataset metadata that is specific to text extraction +message TextExtractionDatasetMetadata { + +} + +// Model metadata that is specific to text extraction. +message TextExtractionModelMetadata { + +} + +// Dataset metadata for text sentiment. +message TextSentimentDatasetMetadata { + // Required. + // A sentiment is expressed as an integer ordinal, where higher value + // means a more positive sentiment. The range of sentiments that will be used + // is between 0 and sentiment_max (inclusive on both ends), and all the values + // in the range must be represented in the dataset before a model can be + // created. + // sentiment_max value must be between 1 and 10 (inclusive). + int32 sentiment_max = 1; +} + +// Model metadata that is specific to text classification. +message TextSentimentModelMetadata { + +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_extraction.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_extraction.proto new file mode 100644 index 000000000000..4d6a235e60a8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_extraction.proto @@ -0,0 +1,64 @@ +// Copyright 2018 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.automl.v1beta1; + +import "google/api/annotations.proto"; +import "google/cloud/automl/v1beta1/text_segment.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl"; +option java_multiple_files = true; +option java_package = "com.google.cloud.automl.v1beta1"; +option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + + +// Annotation for identifying spans of text. +message TextExtractionAnnotation { + // Output only. A confidence estimate between 0.0 and 1.0. A higher value + // means greater confidence in correctness of the annotation. + float score = 1; + + // Required. The part of the original text to which this annotation pertains. + TextSegment text_segment = 3; +} + +// Model evaluation metrics for text extraction problems. +message TextExtractionEvaluationMetrics { + // Metrics for a single confidence threshold. + message ConfidenceMetricsEntry { + // Output only. The confidence threshold value used to compute the metrics. + // Only annotations with score of at least this threshold are considered to + // be ones the model would return. + float confidence_threshold = 1; + + // Output only. Recall under the given confidence threshold. + float recall = 3; + + // Output only. Precision under the given confidence threshold. + float precision = 4; + + // Output only. The harmonic mean of recall and precision. + float f1_score = 5; + } + + // Output only. The Area under precision recall curve metric. + float au_prc = 1; + + // Output only. Metrics that have confidence thresholds. + // Precision-recall curve can be derived from it. + repeated ConfidenceMetricsEntry confidence_metrics_entries = 2; +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_segment.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_segment.proto new file mode 100644 index 000000000000..d170cc33f39e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_segment.proto @@ -0,0 +1,43 @@ +// Copyright 2018 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.automl.v1beta1; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl"; +option java_multiple_files = true; +option java_outer_classname = "TextSegmentProto"; +option java_package = "com.google.cloud.automl.v1beta1"; +option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + + +// A contiguous part of a text (string), assuming it has an UTF-8 NFC encoding. +// . +message TextSegment { + // Output only. The content of the TextSegment. + string content = 3; + + // Required. Zero-based character index of the first character of the text + // segment (counting characters from the beginning of the text). + int64 start_offset = 1; + + // Required. Zero-based character index of the first character past the end of + // the text segment (counting character from the beginning of the text). + // The character at the end_offset is NOT included in the text segment. + int64 end_offset = 2; +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_sentiment.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_sentiment.proto new file mode 100644 index 000000000000..22c26cf729e5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/text_sentiment.proto @@ -0,0 +1,84 @@ +// Copyright 2018 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.automl.v1beta1; + +import "google/api/annotations.proto"; +import "google/cloud/automl/v1beta1/classification.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl"; +option java_outer_classname = "TextSentimentProto"; +option java_package = "com.google.cloud.automl.v1beta1"; +option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + + +// Contains annotation details specific to text sentiment. +message TextSentimentAnnotation { + // Output only. The sentiment with the semantic, as given to the + // [AutoMl.ImportData][google.cloud.automl.v1beta1.AutoMl.ImportData] when populating the dataset from which the model used + // for the prediction had been trained. + // The sentiment values are between 0 and + // Dataset.text_sentiment_dataset_metadata.sentiment_max (inclusive), + // with higher value meaning more positive sentiment. They are completely + // relative, i.e. 0 means least positive sentiment and sentiment_max means + // the most positive from the sentiments present in the train data. Therefore + // e.g. if train data had only negative sentiment, then sentiment_max, would + // be still negative (although least negative). + // The sentiment shouldn't be confused with "score" or "magnitude" + // from the previous Natural Language Sentiment Analysis API. + int32 sentiment = 1; +} + +// Model evaluation metrics for text sentiment problems. +message TextSentimentEvaluationMetrics { + // Output only. Precision. + float precision = 1; + + // Output only. Recall. + float recall = 2; + + // Output only. The harmonic mean of recall and precision. + float f1_score = 3; + + // Output only. Mean absolute error. Only set for the overall model + // evaluation, not for evaluation of a single annotation spec. + float mean_absolute_error = 4; + + // Output only. Mean squared error. Only set for the overall model + // evaluation, not for evaluation of a single annotation spec. + float mean_squared_error = 5; + + // Output only. Linear weighted kappa. Only set for the overall model + // evaluation, not for evaluation of a single annotation spec. + float linear_kappa = 6; + + // Output only. Quadratic weighted kappa. Only set for the overall model + // evaluation, not for evaluation of a single annotation spec. + float quadratic_kappa = 7; + + // Output only. Confusion matrix of the evaluation. + // Only set for the overall model evaluation, not for evaluation of a single + // annotation spec. + ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8; + + // Output only. The annotation spec ids used for this evaluation. + // Deprecated, remove after Boq Migration and use then + // TextSentimentModelMetadata.annotation_spec_count for count, and list + // all model evaluations to see the exact annotation_spec_ids that were + // used. + repeated string annotation_spec_id = 9; +} diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/translation.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/translation.proto index 55b3f9b5e9e1..92dfab03ea9b 100644 --- a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/translation.proto +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/translation.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; @@ -25,6 +26,7 @@ option java_outer_classname = "TranslationProto"; option java_package = "com.google.cloud.automl.v1beta1"; option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + // Dataset metadata that is specific to translation. message TranslationDatasetMetadata { // Required. The BCP-47 language code of the source language. diff --git a/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/video.proto b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/video.proto new file mode 100644 index 000000000000..e4146b713f03 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-automl-v1beta1/src/main/proto/google/cloud/automl/v1beta1/video.proto @@ -0,0 +1,39 @@ +// Copyright 2018 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.cloud.automl.v1beta1; + +import "google/api/annotations.proto"; +import "google/cloud/automl/v1beta1/classification.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1beta1;automl"; +option java_multiple_files = true; +option java_outer_classname = "VideoProto"; +option java_package = "com.google.cloud.automl.v1beta1"; +option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1"; + + +// Dataset metadata specific to video classification. +// All Video Classification datasets are treated as multi label. +message VideoClassificationDatasetMetadata { + +} + +// Model metadata specific to video classification. +message VideoClassificationModelMetadata { + +} diff --git a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java index c3ee2a7151b0..090edaff2b4a 100644 --- a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java +++ b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlClient.java @@ -49,6 +49,11 @@ * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then the id for the item * is `{dataset_id}`. * + *

Currently the only supported `location_id` is "us-central1". + * + *

On any input that is documented to expect a string parameter in snake_case or kebab-case, + * either of those cases is accepted. + * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: * @@ -632,7 +637,11 @@ public final UnaryCallable deleteDatasetCallabl // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Imports data into a dataset. Returns an empty response in the + * Imports data into a dataset. For Tables this method can only be called on an empty Dataset. + * + *

For Tables: * A + * [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] parameter must be + * explicitly set. Returns an empty response in the * [response][google.longrunning.Operation.response] field when it completes. * *

Sample code: @@ -647,7 +656,8 @@ public final UnaryCallable deleteDatasetCallabl * * @param name Required. Dataset name. Dataset must already exist. All imported annotations and * examples will be added. - * @param inputConfig Required. The desired input location. + * @param inputConfig Required. The desired input location and its domain specific semantics, if + * any. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -665,7 +675,11 @@ public final OperationFuture importDataAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Imports data into a dataset. Returns an empty response in the + * Imports data into a dataset. For Tables this method can only be called on an empty Dataset. + * + *

For Tables: * A + * [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] parameter must be + * explicitly set. Returns an empty response in the * [response][google.longrunning.Operation.response] field when it completes. * *

Sample code: @@ -680,7 +694,8 @@ public final OperationFuture importDataAsync( * * @param name Required. Dataset name. Dataset must already exist. All imported annotations and * examples will be added. - * @param inputConfig Required. The desired input location. + * @param inputConfig Required. The desired input location and its domain specific semantics, if + * any. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @BetaApi( @@ -695,7 +710,11 @@ public final OperationFuture importDataAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Imports data into a dataset. Returns an empty response in the + * Imports data into a dataset. For Tables this method can only be called on an empty Dataset. + * + *

For Tables: * A + * [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] parameter must be + * explicitly set. Returns an empty response in the * [response][google.longrunning.Operation.response] field when it completes. * *

Sample code: @@ -724,7 +743,11 @@ public final OperationFuture importDataAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Imports data into a dataset. Returns an empty response in the + * Imports data into a dataset. For Tables this method can only be called on an empty Dataset. + * + *

For Tables: * A + * [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] parameter must be + * explicitly set. Returns an empty response in the * [response][google.longrunning.Operation.response] field when it completes. * *

Sample code: @@ -751,7 +774,11 @@ public final OperationFuture importDataAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Imports data into a dataset. Returns an empty response in the + * Imports data into a dataset. For Tables this method can only be called on an empty Dataset. + * + *

For Tables: * A + * [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] parameter must be + * explicitly set. Returns an empty response in the * [response][google.longrunning.Operation.response] field when it completes. * *

Sample code: @@ -776,7 +803,7 @@ public final UnaryCallable importDataCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Exports dataset's data to a Google Cloud Storage bucket. Returns an empty response in the + * Exports dataset's data to the provided output location. Returns an empty response in the * [response][google.longrunning.Operation.response] field when it completes. * *

Sample code: @@ -808,7 +835,7 @@ public final OperationFuture exportDataAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Exports dataset's data to a Google Cloud Storage bucket. Returns an empty response in the + * Exports dataset's data to the provided output location. Returns an empty response in the * [response][google.longrunning.Operation.response] field when it completes. * *

Sample code: @@ -837,7 +864,7 @@ public final OperationFuture exportDataAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Exports dataset's data to a Google Cloud Storage bucket. Returns an empty response in the + * Exports dataset's data to the provided output location. Returns an empty response in the * [response][google.longrunning.Operation.response] field when it completes. * *

Sample code: @@ -866,7 +893,7 @@ public final OperationFuture exportDataAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Exports dataset's data to a Google Cloud Storage bucket. Returns an empty response in the + * Exports dataset's data to the provided output location. Returns an empty response in the * [response][google.longrunning.Operation.response] field when it completes. * *

Sample code: @@ -893,7 +920,7 @@ public final OperationFuture exportDataAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Exports dataset's data to a Google Cloud Storage bucket. Returns an empty response in the + * Exports dataset's data to the provided output location. Returns an empty response in the * [response][google.longrunning.Operation.response] field when it completes. * *

Sample code: @@ -1282,10 +1309,9 @@ public final UnaryCallable listModelsCall // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes a model. If a model is already deployed, this only deletes the model in AutoML BE, and - * does not change the status of the deployed model in the production environment. Returns - * `google.protobuf.Empty` in the [response][google.longrunning.Operation.response] field when it - * completes, and `delete_details` in the [metadata][google.longrunning.Operation.metadata] field. + * Deletes a model. Returns `google.protobuf.Empty` in the + * [response][google.longrunning.Operation.response] field when it completes, and `delete_details` + * in the [metadata][google.longrunning.Operation.metadata] field. * *

Sample code: * @@ -1310,10 +1336,9 @@ public final OperationFuture deleteModelAsync(ModelNam // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes a model. If a model is already deployed, this only deletes the model in AutoML BE, and - * does not change the status of the deployed model in the production environment. Returns - * `google.protobuf.Empty` in the [response][google.longrunning.Operation.response] field when it - * completes, and `delete_details` in the [metadata][google.longrunning.Operation.metadata] field. + * Deletes a model. Returns `google.protobuf.Empty` in the + * [response][google.longrunning.Operation.response] field when it completes, and `delete_details` + * in the [metadata][google.longrunning.Operation.metadata] field. * *

Sample code: * @@ -1337,10 +1362,9 @@ public final OperationFuture deleteModelAsync(String n // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes a model. If a model is already deployed, this only deletes the model in AutoML BE, and - * does not change the status of the deployed model in the production environment. Returns - * `google.protobuf.Empty` in the [response][google.longrunning.Operation.response] field when it - * completes, and `delete_details` in the [metadata][google.longrunning.Operation.metadata] field. + * Deletes a model. Returns `google.protobuf.Empty` in the + * [response][google.longrunning.Operation.response] field when it completes, and `delete_details` + * in the [metadata][google.longrunning.Operation.metadata] field. * *

Sample code: * @@ -1366,10 +1390,9 @@ public final OperationFuture deleteModelAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes a model. If a model is already deployed, this only deletes the model in AutoML BE, and - * does not change the status of the deployed model in the production environment. Returns - * `google.protobuf.Empty` in the [response][google.longrunning.Operation.response] field when it - * completes, and `delete_details` in the [metadata][google.longrunning.Operation.metadata] field. + * Deletes a model. Returns `google.protobuf.Empty` in the + * [response][google.longrunning.Operation.response] field when it completes, and `delete_details` + * in the [metadata][google.longrunning.Operation.metadata] field. * *

Sample code: * @@ -1393,10 +1416,9 @@ public final OperationFuture deleteModelAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes a model. If a model is already deployed, this only deletes the model in AutoML BE, and - * does not change the status of the deployed model in the production environment. Returns - * `google.protobuf.Empty` in the [response][google.longrunning.Operation.response] field when it - * completes, and `delete_details` in the [metadata][google.longrunning.Operation.metadata] field. + * Deletes a model. Returns `google.protobuf.Empty` in the + * [response][google.longrunning.Operation.response] field when it completes, and `delete_details` + * in the [metadata][google.longrunning.Operation.metadata] field. * *

Sample code: * @@ -1418,8 +1440,17 @@ public final UnaryCallable deleteModelCallable() // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deploys model. Returns a [DeployModelResponse][] in the - * [response][google.longrunning.Operation.response] field when it completes. + * Deploys a model. If a model is already deployed, deploying it with the same parameters has no + * effect. Deploying with different parametrs (as e.g. changing + * + *

[node_number][google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.node_number] + * ) will update the deployment without pausing the model's availability. + * + *

Only applicable for Text Classification, Image Object Detection and Tables; all other + * domains manage deployment automatically. + * + *

Returns an empty response in the [response][google.longrunning.Operation.response] field + * when it completes. * *

Sample code: * @@ -1442,8 +1473,17 @@ public final Operation deployModel(ModelName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deploys model. Returns a [DeployModelResponse][] in the - * [response][google.longrunning.Operation.response] field when it completes. + * Deploys a model. If a model is already deployed, deploying it with the same parameters has no + * effect. Deploying with different parametrs (as e.g. changing + * + *

[node_number][google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.node_number] + * ) will update the deployment without pausing the model's availability. + * + *

Only applicable for Text Classification, Image Object Detection and Tables; all other + * domains manage deployment automatically. + * + *

Returns an empty response in the [response][google.longrunning.Operation.response] field + * when it completes. * *

Sample code: * @@ -1465,8 +1505,17 @@ public final Operation deployModel(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deploys model. Returns a [DeployModelResponse][] in the - * [response][google.longrunning.Operation.response] field when it completes. + * Deploys a model. If a model is already deployed, deploying it with the same parameters has no + * effect. Deploying with different parametrs (as e.g. changing + * + *

[node_number][google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.node_number] + * ) will update the deployment without pausing the model's availability. + * + *

Only applicable for Text Classification, Image Object Detection and Tables; all other + * domains manage deployment automatically. + * + *

Returns an empty response in the [response][google.longrunning.Operation.response] field + * when it completes. * *

Sample code: * @@ -1489,8 +1538,17 @@ public final Operation deployModel(DeployModelRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deploys model. Returns a [DeployModelResponse][] in the - * [response][google.longrunning.Operation.response] field when it completes. + * Deploys a model. If a model is already deployed, deploying it with the same parameters has no + * effect. Deploying with different parametrs (as e.g. changing + * + *

[node_number][google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.node_number] + * ) will update the deployment without pausing the model's availability. + * + *

Only applicable for Text Classification, Image Object Detection and Tables; all other + * domains manage deployment automatically. + * + *

Returns an empty response in the [response][google.longrunning.Operation.response] field + * when it completes. * *

Sample code: * @@ -1512,8 +1570,13 @@ public final UnaryCallable deployModelCallable() // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Undeploys model. Returns an `UndeployModelResponse` in the - * [response][google.longrunning.Operation.response] field when it completes. + * Undeploys a model. If the model is not deployed this method has no effect. + * + *

Only applicable for Text Classification, Image Object Detection and Tables; all other + * domains manage deployment automatically. + * + *

Returns an empty response in the [response][google.longrunning.Operation.response] field + * when it completes. * *

Sample code: * @@ -1536,8 +1599,13 @@ public final Operation undeployModel(ModelName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Undeploys model. Returns an `UndeployModelResponse` in the - * [response][google.longrunning.Operation.response] field when it completes. + * Undeploys a model. If the model is not deployed this method has no effect. + * + *

Only applicable for Text Classification, Image Object Detection and Tables; all other + * domains manage deployment automatically. + * + *

Returns an empty response in the [response][google.longrunning.Operation.response] field + * when it completes. * *

Sample code: * @@ -1559,8 +1627,13 @@ public final Operation undeployModel(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Undeploys model. Returns an `UndeployModelResponse` in the - * [response][google.longrunning.Operation.response] field when it completes. + * Undeploys a model. If the model is not deployed this method has no effect. + * + *

Only applicable for Text Classification, Image Object Detection and Tables; all other + * domains manage deployment automatically. + * + *

Returns an empty response in the [response][google.longrunning.Operation.response] field + * when it completes. * *

Sample code: * @@ -1583,8 +1656,13 @@ public final Operation undeployModel(UndeployModelRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Undeploys model. Returns an `UndeployModelResponse` in the - * [response][google.longrunning.Operation.response] field when it completes. + * Undeploys a model. If the model is not deployed this method has no effect. + * + *

Only applicable for Text Classification, Image Object Detection and Tables; all other + * domains manage deployment automatically. + * + *

Returns an empty response in the [response][google.longrunning.Operation.response] field + * when it completes. * *

Sample code: * @@ -1833,6 +1911,497 @@ public final ListModelEvaluationsPagedResponse listModelEvaluations( return stub.listModelEvaluationsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a dataset. + * + *

Sample code: + * + *


+   * try (AutoMlClient autoMlClient = AutoMlClient.create()) {
+   *   UpdateDatasetRequest request = UpdateDatasetRequest.newBuilder().build();
+   *   Dataset response = autoMlClient.updateDataset(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Dataset updateDataset(UpdateDatasetRequest request) { + return updateDatasetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a dataset. + * + *

Sample code: + * + *


+   * try (AutoMlClient autoMlClient = AutoMlClient.create()) {
+   *   UpdateDatasetRequest request = UpdateDatasetRequest.newBuilder().build();
+   *   ApiFuture<Dataset> future = autoMlClient.updateDatasetCallable().futureCall(request);
+   *   // Do something
+   *   Dataset response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateDatasetCallable() { + return stub.updateDatasetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets an annotation spec. + * + *

Sample code: + * + *


+   * try (AutoMlClient autoMlClient = AutoMlClient.create()) {
+   *   GetAnnotationSpecRequest request = GetAnnotationSpecRequest.newBuilder().build();
+   *   AnnotationSpec response = autoMlClient.getAnnotationSpec(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AnnotationSpec getAnnotationSpec(GetAnnotationSpecRequest request) { + return getAnnotationSpecCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets an annotation spec. + * + *

Sample code: + * + *


+   * try (AutoMlClient autoMlClient = AutoMlClient.create()) {
+   *   GetAnnotationSpecRequest request = GetAnnotationSpecRequest.newBuilder().build();
+   *   ApiFuture<AnnotationSpec> future = autoMlClient.getAnnotationSpecCallable().futureCall(request);
+   *   // Do something
+   *   AnnotationSpec response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getAnnotationSpecCallable() { + return stub.getAnnotationSpecCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a table spec. + * + *

Sample code: + * + *


+   * try (AutoMlClient autoMlClient = AutoMlClient.create()) {
+   *   GetTableSpecRequest request = GetTableSpecRequest.newBuilder().build();
+   *   TableSpec response = autoMlClient.getTableSpec(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TableSpec getTableSpec(GetTableSpecRequest request) { + return getTableSpecCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a table spec. + * + *

Sample code: + * + *


+   * try (AutoMlClient autoMlClient = AutoMlClient.create()) {
+   *   GetTableSpecRequest request = GetTableSpecRequest.newBuilder().build();
+   *   ApiFuture<TableSpec> future = autoMlClient.getTableSpecCallable().futureCall(request);
+   *   // Do something
+   *   TableSpec response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getTableSpecCallable() { + return stub.getTableSpecCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists table specs in a dataset. + * + *

Sample code: + * + *


+   * try (AutoMlClient autoMlClient = AutoMlClient.create()) {
+   *   ListTableSpecsRequest request = ListTableSpecsRequest.newBuilder().build();
+   *   for (TableSpec element : autoMlClient.listTableSpecs(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTableSpecsPagedResponse listTableSpecs(ListTableSpecsRequest request) { + return listTableSpecsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists table specs in a dataset. + * + *

Sample code: + * + *


+   * try (AutoMlClient autoMlClient = AutoMlClient.create()) {
+   *   ListTableSpecsRequest request = ListTableSpecsRequest.newBuilder().build();
+   *   ApiFuture<ListTableSpecsPagedResponse> future = autoMlClient.listTableSpecsPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (TableSpec element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listTableSpecsPagedCallable() { + return stub.listTableSpecsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists table specs in a dataset. + * + *

Sample code: + * + *


+   * try (AutoMlClient autoMlClient = AutoMlClient.create()) {
+   *   ListTableSpecsRequest request = ListTableSpecsRequest.newBuilder().build();
+   *   while (true) {
+   *     ListTableSpecsResponse response = autoMlClient.listTableSpecsCallable().call(request);
+   *     for (TableSpec element : response.getTableSpecsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listTableSpecsCallable() { + return stub.listTableSpecsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a table spec. + * + *

Sample code: + * + *


+   * try (AutoMlClient autoMlClient = AutoMlClient.create()) {
+   *   UpdateTableSpecRequest request = UpdateTableSpecRequest.newBuilder().build();
+   *   TableSpec response = autoMlClient.updateTableSpec(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TableSpec updateTableSpec(UpdateTableSpecRequest request) { + return updateTableSpecCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a table spec. + * + *

Sample code: + * + *


+   * try (AutoMlClient autoMlClient = AutoMlClient.create()) {
+   *   UpdateTableSpecRequest request = UpdateTableSpecRequest.newBuilder().build();
+   *   ApiFuture<TableSpec> future = autoMlClient.updateTableSpecCallable().futureCall(request);
+   *   // Do something
+   *   TableSpec response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateTableSpecCallable() { + return stub.updateTableSpecCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a column spec. + * + *

Sample code: + * + *


+   * try (AutoMlClient autoMlClient = AutoMlClient.create()) {
+   *   GetColumnSpecRequest request = GetColumnSpecRequest.newBuilder().build();
+   *   ColumnSpec response = autoMlClient.getColumnSpec(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ColumnSpec getColumnSpec(GetColumnSpecRequest request) { + return getColumnSpecCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a column spec. + * + *

Sample code: + * + *


+   * try (AutoMlClient autoMlClient = AutoMlClient.create()) {
+   *   GetColumnSpecRequest request = GetColumnSpecRequest.newBuilder().build();
+   *   ApiFuture<ColumnSpec> future = autoMlClient.getColumnSpecCallable().futureCall(request);
+   *   // Do something
+   *   ColumnSpec response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getColumnSpecCallable() { + return stub.getColumnSpecCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists column specs in a table spec. + * + *

Sample code: + * + *


+   * try (AutoMlClient autoMlClient = AutoMlClient.create()) {
+   *   ListColumnSpecsRequest request = ListColumnSpecsRequest.newBuilder().build();
+   *   for (ColumnSpec element : autoMlClient.listColumnSpecs(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListColumnSpecsPagedResponse listColumnSpecs(ListColumnSpecsRequest request) { + return listColumnSpecsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists column specs in a table spec. + * + *

Sample code: + * + *


+   * try (AutoMlClient autoMlClient = AutoMlClient.create()) {
+   *   ListColumnSpecsRequest request = ListColumnSpecsRequest.newBuilder().build();
+   *   ApiFuture<ListColumnSpecsPagedResponse> future = autoMlClient.listColumnSpecsPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (ColumnSpec element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listColumnSpecsPagedCallable() { + return stub.listColumnSpecsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists column specs in a table spec. + * + *

Sample code: + * + *


+   * try (AutoMlClient autoMlClient = AutoMlClient.create()) {
+   *   ListColumnSpecsRequest request = ListColumnSpecsRequest.newBuilder().build();
+   *   while (true) {
+   *     ListColumnSpecsResponse response = autoMlClient.listColumnSpecsCallable().call(request);
+   *     for (ColumnSpec element : response.getColumnSpecsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listColumnSpecsCallable() { + return stub.listColumnSpecsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a column spec. + * + *

Sample code: + * + *


+   * try (AutoMlClient autoMlClient = AutoMlClient.create()) {
+   *   UpdateColumnSpecRequest request = UpdateColumnSpecRequest.newBuilder().build();
+   *   ColumnSpec response = autoMlClient.updateColumnSpec(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ColumnSpec updateColumnSpec(UpdateColumnSpecRequest request) { + return updateColumnSpecCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates a column spec. + * + *

Sample code: + * + *


+   * try (AutoMlClient autoMlClient = AutoMlClient.create()) {
+   *   UpdateColumnSpecRequest request = UpdateColumnSpecRequest.newBuilder().build();
+   *   ApiFuture<ColumnSpec> future = autoMlClient.updateColumnSpecCallable().futureCall(request);
+   *   // Do something
+   *   ColumnSpec response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateColumnSpecCallable() { + return stub.updateColumnSpecCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Exports a trained, "export-able", model to a user specified Google Cloud Storage location. A + * model is considered export-able if and only if it has an export format defined for it in + * + *

[ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig]. + * + *

Returns an empty response in the [response][google.longrunning.Operation.response] field + * when it completes. + * + *

Sample code: + * + *


+   * try (AutoMlClient autoMlClient = AutoMlClient.create()) {
+   *   ExportModelRequest request = ExportModelRequest.newBuilder().build();
+   *   Operation response = autoMlClient.exportModel(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation exportModel(ExportModelRequest request) { + return exportModelCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Exports a trained, "export-able", model to a user specified Google Cloud Storage location. A + * model is considered export-able if and only if it has an export format defined for it in + * + *

[ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig]. + * + *

Returns an empty response in the [response][google.longrunning.Operation.response] field + * when it completes. + * + *

Sample code: + * + *


+   * try (AutoMlClient autoMlClient = AutoMlClient.create()) {
+   *   ExportModelRequest request = ExportModelRequest.newBuilder().build();
+   *   ApiFuture<Operation> future = autoMlClient.exportModelCallable().futureCall(request);
+   *   // Do something
+   *   Operation response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable exportModelCallable() { + return stub.exportModelCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Exports examples on which the model was evaluated (i.e. which were in the TEST set of the + * dataset the model was created from), together with their ground truth annotations and the + * annotations created (predicted) by the model. The examples, ground truth and predictions are + * exported in the state they were at the moment the model was evaluated. + * + *

This export is available only for 30 days since the model evaluation is created. + * + *

Currently only available for Tables. + * + *

Returns an empty response in the [response][google.longrunning.Operation.response] field + * when it completes. + * + *

Sample code: + * + *


+   * try (AutoMlClient autoMlClient = AutoMlClient.create()) {
+   *   ExportEvaluatedExamplesRequest request = ExportEvaluatedExamplesRequest.newBuilder().build();
+   *   Operation response = autoMlClient.exportEvaluatedExamples(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation exportEvaluatedExamples(ExportEvaluatedExamplesRequest request) { + return exportEvaluatedExamplesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Exports examples on which the model was evaluated (i.e. which were in the TEST set of the + * dataset the model was created from), together with their ground truth annotations and the + * annotations created (predicted) by the model. The examples, ground truth and predictions are + * exported in the state they were at the moment the model was evaluated. + * + *

This export is available only for 30 days since the model evaluation is created. + * + *

Currently only available for Tables. + * + *

Returns an empty response in the [response][google.longrunning.Operation.response] field + * when it completes. + * + *

Sample code: + * + *


+   * try (AutoMlClient autoMlClient = AutoMlClient.create()) {
+   *   ExportEvaluatedExamplesRequest request = ExportEvaluatedExamplesRequest.newBuilder().build();
+   *   ApiFuture<Operation> future = autoMlClient.exportEvaluatedExamplesCallable().futureCall(request);
+   *   // Do something
+   *   Operation response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + exportEvaluatedExamplesCallable() { + return stub.exportEvaluatedExamplesCallable(); + } + @Override public final void close() { stub.close(); @@ -2111,4 +2680,167 @@ protected ListModelEvaluationsFixedSizeCollection createCollection( return new ListModelEvaluationsFixedSizeCollection(pages, collectionSize); } } + + public static class ListTableSpecsPagedResponse + extends AbstractPagedListResponse< + ListTableSpecsRequest, + ListTableSpecsResponse, + TableSpec, + ListTableSpecsPage, + ListTableSpecsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListTableSpecsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListTableSpecsPagedResponse apply(ListTableSpecsPage input) { + return new ListTableSpecsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListTableSpecsPagedResponse(ListTableSpecsPage page) { + super(page, ListTableSpecsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListTableSpecsPage + extends AbstractPage< + ListTableSpecsRequest, ListTableSpecsResponse, TableSpec, ListTableSpecsPage> { + + private ListTableSpecsPage( + PageContext context, + ListTableSpecsResponse response) { + super(context, response); + } + + private static ListTableSpecsPage createEmptyPage() { + return new ListTableSpecsPage(null, null); + } + + @Override + protected ListTableSpecsPage createPage( + PageContext context, + ListTableSpecsResponse response) { + return new ListTableSpecsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListTableSpecsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListTableSpecsRequest, + ListTableSpecsResponse, + TableSpec, + ListTableSpecsPage, + ListTableSpecsFixedSizeCollection> { + + private ListTableSpecsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListTableSpecsFixedSizeCollection createEmptyCollection() { + return new ListTableSpecsFixedSizeCollection(null, 0); + } + + @Override + protected ListTableSpecsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListTableSpecsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListColumnSpecsPagedResponse + extends AbstractPagedListResponse< + ListColumnSpecsRequest, + ListColumnSpecsResponse, + ColumnSpec, + ListColumnSpecsPage, + ListColumnSpecsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListColumnSpecsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListColumnSpecsPagedResponse apply(ListColumnSpecsPage input) { + return new ListColumnSpecsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListColumnSpecsPagedResponse(ListColumnSpecsPage page) { + super(page, ListColumnSpecsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListColumnSpecsPage + extends AbstractPage< + ListColumnSpecsRequest, ListColumnSpecsResponse, ColumnSpec, ListColumnSpecsPage> { + + private ListColumnSpecsPage( + PageContext context, + ListColumnSpecsResponse response) { + super(context, response); + } + + private static ListColumnSpecsPage createEmptyPage() { + return new ListColumnSpecsPage(null, null); + } + + @Override + protected ListColumnSpecsPage createPage( + PageContext context, + ListColumnSpecsResponse response) { + return new ListColumnSpecsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListColumnSpecsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListColumnSpecsRequest, + ListColumnSpecsResponse, + ColumnSpec, + ListColumnSpecsPage, + ListColumnSpecsFixedSizeCollection> { + + private ListColumnSpecsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListColumnSpecsFixedSizeCollection createEmptyCollection() { + return new ListColumnSpecsFixedSizeCollection(null, 0); + } + + @Override + protected ListColumnSpecsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListColumnSpecsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlSettings.java b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlSettings.java index 07bb3dc51dee..a2f112e96885 100644 --- a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlSettings.java +++ b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/AutoMlSettings.java @@ -15,9 +15,11 @@ */ package com.google.cloud.automl.v1beta1; +import static com.google.cloud.automl.v1beta1.AutoMlClient.ListColumnSpecsPagedResponse; import static com.google.cloud.automl.v1beta1.AutoMlClient.ListDatasetsPagedResponse; import static com.google.cloud.automl.v1beta1.AutoMlClient.ListModelEvaluationsPagedResponse; import static com.google.cloud.automl.v1beta1.AutoMlClient.ListModelsPagedResponse; +import static com.google.cloud.automl.v1beta1.AutoMlClient.ListTableSpecsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -184,6 +186,61 @@ public UnaryCallSettings undeployModelSettings( return ((AutoMlStubSettings) getStubSettings()).listModelEvaluationsSettings(); } + /** Returns the object with the settings used for calls to updateDataset. */ + public UnaryCallSettings updateDatasetSettings() { + return ((AutoMlStubSettings) getStubSettings()).updateDatasetSettings(); + } + + /** Returns the object with the settings used for calls to getAnnotationSpec. */ + public UnaryCallSettings getAnnotationSpecSettings() { + return ((AutoMlStubSettings) getStubSettings()).getAnnotationSpecSettings(); + } + + /** Returns the object with the settings used for calls to getTableSpec. */ + public UnaryCallSettings getTableSpecSettings() { + return ((AutoMlStubSettings) getStubSettings()).getTableSpecSettings(); + } + + /** Returns the object with the settings used for calls to listTableSpecs. */ + public PagedCallSettings< + ListTableSpecsRequest, ListTableSpecsResponse, ListTableSpecsPagedResponse> + listTableSpecsSettings() { + return ((AutoMlStubSettings) getStubSettings()).listTableSpecsSettings(); + } + + /** Returns the object with the settings used for calls to updateTableSpec. */ + public UnaryCallSettings updateTableSpecSettings() { + return ((AutoMlStubSettings) getStubSettings()).updateTableSpecSettings(); + } + + /** Returns the object with the settings used for calls to getColumnSpec. */ + public UnaryCallSettings getColumnSpecSettings() { + return ((AutoMlStubSettings) getStubSettings()).getColumnSpecSettings(); + } + + /** Returns the object with the settings used for calls to listColumnSpecs. */ + public PagedCallSettings< + ListColumnSpecsRequest, ListColumnSpecsResponse, ListColumnSpecsPagedResponse> + listColumnSpecsSettings() { + return ((AutoMlStubSettings) getStubSettings()).listColumnSpecsSettings(); + } + + /** Returns the object with the settings used for calls to updateColumnSpec. */ + public UnaryCallSettings updateColumnSpecSettings() { + return ((AutoMlStubSettings) getStubSettings()).updateColumnSpecSettings(); + } + + /** Returns the object with the settings used for calls to exportModel. */ + public UnaryCallSettings exportModelSettings() { + return ((AutoMlStubSettings) getStubSettings()).exportModelSettings(); + } + + /** Returns the object with the settings used for calls to exportEvaluatedExamples. */ + public UnaryCallSettings + exportEvaluatedExamplesSettings() { + return ((AutoMlStubSettings) getStubSettings()).exportEvaluatedExamplesSettings(); + } + public static final AutoMlSettings create(AutoMlStubSettings stub) throws IOException { return new AutoMlSettings.Builder(stub.toBuilder()).build(); } @@ -398,6 +455,63 @@ public UnaryCallSettings.Builder undeployModelS return getStubSettingsBuilder().listModelEvaluationsSettings(); } + /** Returns the builder for the settings used for calls to updateDataset. */ + public UnaryCallSettings.Builder updateDatasetSettings() { + return getStubSettingsBuilder().updateDatasetSettings(); + } + + /** Returns the builder for the settings used for calls to getAnnotationSpec. */ + public UnaryCallSettings.Builder + getAnnotationSpecSettings() { + return getStubSettingsBuilder().getAnnotationSpecSettings(); + } + + /** Returns the builder for the settings used for calls to getTableSpec. */ + public UnaryCallSettings.Builder getTableSpecSettings() { + return getStubSettingsBuilder().getTableSpecSettings(); + } + + /** Returns the builder for the settings used for calls to listTableSpecs. */ + public PagedCallSettings.Builder< + ListTableSpecsRequest, ListTableSpecsResponse, ListTableSpecsPagedResponse> + listTableSpecsSettings() { + return getStubSettingsBuilder().listTableSpecsSettings(); + } + + /** Returns the builder for the settings used for calls to updateTableSpec. */ + public UnaryCallSettings.Builder updateTableSpecSettings() { + return getStubSettingsBuilder().updateTableSpecSettings(); + } + + /** Returns the builder for the settings used for calls to getColumnSpec. */ + public UnaryCallSettings.Builder getColumnSpecSettings() { + return getStubSettingsBuilder().getColumnSpecSettings(); + } + + /** Returns the builder for the settings used for calls to listColumnSpecs. */ + public PagedCallSettings.Builder< + ListColumnSpecsRequest, ListColumnSpecsResponse, ListColumnSpecsPagedResponse> + listColumnSpecsSettings() { + return getStubSettingsBuilder().listColumnSpecsSettings(); + } + + /** Returns the builder for the settings used for calls to updateColumnSpec. */ + public UnaryCallSettings.Builder + updateColumnSpecSettings() { + return getStubSettingsBuilder().updateColumnSpecSettings(); + } + + /** Returns the builder for the settings used for calls to exportModel. */ + public UnaryCallSettings.Builder exportModelSettings() { + return getStubSettingsBuilder().exportModelSettings(); + } + + /** Returns the builder for the settings used for calls to exportEvaluatedExamples. */ + public UnaryCallSettings.Builder + exportEvaluatedExamplesSettings() { + return getStubSettingsBuilder().exportEvaluatedExamplesSettings(); + } + @Override public AutoMlSettings build() throws IOException { return new AutoMlSettings(this); diff --git a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceClient.java b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceClient.java index f4ab8caa8c36..afe1126092dd 100644 --- a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceClient.java +++ b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceClient.java @@ -20,6 +20,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.automl.v1beta1.stub.PredictionServiceStub; import com.google.cloud.automl.v1beta1.stub.PredictionServiceStubSettings; +import com.google.longrunning.Operation; import java.io.IOException; import java.util.Map; import java.util.concurrent.TimeUnit; @@ -29,6 +30,9 @@ /** * Service Description: AutoML Prediction API. * + *

On any input that is documented to expect a string parameter in snake_case or kebab-case, + * either of those cases is accepted. + * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: * @@ -150,7 +154,15 @@ public PredictionServiceStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Perform a prediction. + * Perform an online prediction. The prediction result will be directly returned in the response. + * Available for following ML problems, and their expected request payloads: * Image + * Classification - Image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. * Image + * Object Detection - Image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. * Text + * Classification - TextSnippet, content up to 10,000 characters, UTF-8 encoded. * Text + * Extraction - TextSnippet, content up to 30,000 characters, UTF-8 NFC encoded. * Translation + * - TextSnippet, content up to 25,000 characters, UTF-8 encoded. * Tables - Row, with column + * values matching the columns of the model, up to 5MB. * Text Sentiment - TextSnippet, + * content up 500 characters, UTF-8 encoded. * *

Sample code: * @@ -170,8 +182,13 @@ public PredictionServiceStub getStub() { * long. *

* For Image Classification: *

`score_threshold` - (float) A value from 0.0 to 1.0. When the model makes predictions - * for an image, it will only produce results that have at least this confidence score - * threshold. The default is 0.5. + * for an image, it will only produce results that have at least this confidence score. The + * default is 0.5. + *

* For Image Object Detection: `score_threshold` - (float) When Model detects objects + * on the image, it will only produce bounding boxes which have at least this confidence + * score. Value in 0 to 1 range, default is 0.5. `max_bounding_box_count` - (int64) No more + * than this number of bounding boxes will be returned in the response. Default is 100, the + * requested value may be limited by server. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PredictResponse predict( @@ -188,7 +205,15 @@ public final PredictResponse predict( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Perform a prediction. + * Perform an online prediction. The prediction result will be directly returned in the response. + * Available for following ML problems, and their expected request payloads: * Image + * Classification - Image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. * Image + * Object Detection - Image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. * Text + * Classification - TextSnippet, content up to 10,000 characters, UTF-8 encoded. * Text + * Extraction - TextSnippet, content up to 30,000 characters, UTF-8 NFC encoded. * Translation + * - TextSnippet, content up to 25,000 characters, UTF-8 encoded. * Tables - Row, with column + * values matching the columns of the model, up to 5MB. * Text Sentiment - TextSnippet, + * content up 500 characters, UTF-8 encoded. * *

Sample code: * @@ -208,8 +233,13 @@ public final PredictResponse predict( * long. *

* For Image Classification: *

`score_threshold` - (float) A value from 0.0 to 1.0. When the model makes predictions - * for an image, it will only produce results that have at least this confidence score - * threshold. The default is 0.5. + * for an image, it will only produce results that have at least this confidence score. The + * default is 0.5. + *

* For Image Object Detection: `score_threshold` - (float) When Model detects objects + * on the image, it will only produce bounding boxes which have at least this confidence + * score. Value in 0 to 1 range, default is 0.5. `max_bounding_box_count` - (int64) No more + * than this number of bounding boxes will be returned in the response. Default is 100, the + * requested value may be limited by server. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PredictResponse predict( @@ -222,7 +252,15 @@ public final PredictResponse predict( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Perform a prediction. + * Perform an online prediction. The prediction result will be directly returned in the response. + * Available for following ML problems, and their expected request payloads: * Image + * Classification - Image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. * Image + * Object Detection - Image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. * Text + * Classification - TextSnippet, content up to 10,000 characters, UTF-8 encoded. * Text + * Extraction - TextSnippet, content up to 30,000 characters, UTF-8 NFC encoded. * Translation + * - TextSnippet, content up to 25,000 characters, UTF-8 encoded. * Tables - Row, with column + * values matching the columns of the model, up to 5MB. * Text Sentiment - TextSnippet, + * content up 500 characters, UTF-8 encoded. * *

Sample code: * @@ -247,7 +285,15 @@ public final PredictResponse predict(PredictRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Perform a prediction. + * Perform an online prediction. The prediction result will be directly returned in the response. + * Available for following ML problems, and their expected request payloads: * Image + * Classification - Image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. * Image + * Object Detection - Image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. * Text + * Classification - TextSnippet, content up to 10,000 characters, UTF-8 encoded. * Text + * Extraction - TextSnippet, content up to 30,000 characters, UTF-8 NFC encoded. * Translation + * - TextSnippet, content up to 25,000 characters, UTF-8 encoded. * Tables - Row, with column + * values matching the columns of the model, up to 5MB. * Text Sentiment - TextSnippet, + * content up 500 characters, UTF-8 encoded. * *

Sample code: * @@ -269,6 +315,59 @@ public final UnaryCallable predictCallable() { return stub.predictCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Perform a batch prediction. Unlike the online + * [Predict][google.cloud.automl.v1beta1.PredictionService.Predict], batch prediction result won't + * be immediately available in the response. Instead, a long running operation object is returned. + * User can poll the operation result via + * [GetOperation][google.longrunning.Operations.GetOperation] method. Once the operation is done, + * [BatchPredictResult][google.cloud.automl.v1beta1.BatchPredictResult] is returned in the + * [response][google.longrunning.Operation.response] field. Available for following ML problems: + * * Video Classification * Text Extraction * Tables + * + *

Sample code: + * + *


+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   BatchPredictRequest request = BatchPredictRequest.newBuilder().build();
+   *   Operation response = predictionServiceClient.batchPredict(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Operation batchPredict(BatchPredictRequest request) { + return batchPredictCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Perform a batch prediction. Unlike the online + * [Predict][google.cloud.automl.v1beta1.PredictionService.Predict], batch prediction result won't + * be immediately available in the response. Instead, a long running operation object is returned. + * User can poll the operation result via + * [GetOperation][google.longrunning.Operations.GetOperation] method. Once the operation is done, + * [BatchPredictResult][google.cloud.automl.v1beta1.BatchPredictResult] is returned in the + * [response][google.longrunning.Operation.response] field. Available for following ML problems: + * * Video Classification * Text Extraction * Tables + * + *

Sample code: + * + *


+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   BatchPredictRequest request = BatchPredictRequest.newBuilder().build();
+   *   ApiFuture<Operation> future = predictionServiceClient.batchPredictCallable().futureCall(request);
+   *   // Do something
+   *   Operation response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable batchPredictCallable() { + return stub.batchPredictCallable(); + } + @Override public final void close() { stub.close(); diff --git a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceSettings.java b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceSettings.java index 156026f33cfc..e3bde404a75d 100644 --- a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceSettings.java +++ b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/PredictionServiceSettings.java @@ -26,6 +26,7 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.automl.v1beta1.stub.PredictionServiceStubSettings; +import com.google.longrunning.Operation; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -64,6 +65,11 @@ public UnaryCallSettings predictSettings() { return ((PredictionServiceStubSettings) getStubSettings()).predictSettings(); } + /** Returns the object with the settings used for calls to batchPredict. */ + public UnaryCallSettings batchPredictSettings() { + return ((PredictionServiceStubSettings) getStubSettings()).batchPredictSettings(); + } + public static final PredictionServiceSettings create(PredictionServiceStubSettings stub) throws IOException { return new PredictionServiceSettings.Builder(stub.toBuilder()).build(); @@ -166,6 +172,11 @@ public UnaryCallSettings.Builder predictSetting return getStubSettingsBuilder().predictSettings(); } + /** Returns the builder for the settings used for calls to batchPredict. */ + public UnaryCallSettings.Builder batchPredictSettings() { + return getStubSettingsBuilder().batchPredictSettings(); + } + @Override public PredictionServiceSettings build() throws IOException { return new PredictionServiceSettings(this); diff --git a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/package-info.java b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/package-info.java index c66e591b5aeb..00972c99ffb6 100644 --- a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/package-info.java +++ b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/package-info.java @@ -30,6 +30,11 @@ * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`, then the id for the item * is `{dataset_id}`. * + *

Currently the only supported `location_id` is "us-central1". + * + *

On any input that is documented to expect a string parameter in snake_case or kebab-case, + * either of those cases is accepted. + * *

Sample for AutoMlClient: * *

@@ -46,6 +51,9 @@
  *
  * 

Service Description: AutoML Prediction API. * + *

On any input that is documented to expect a string parameter in snake_case or kebab-case, + * either of those cases is accepted. + * *

Sample for PredictionServiceClient: * *

diff --git a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStub.java b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStub.java
index edf6b6562c2d..a6dd8643791b 100644
--- a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStub.java
+++ b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStub.java
@@ -15,14 +15,18 @@
  */
 package com.google.cloud.automl.v1beta1.stub;
 
+import static com.google.cloud.automl.v1beta1.AutoMlClient.ListColumnSpecsPagedResponse;
 import static com.google.cloud.automl.v1beta1.AutoMlClient.ListDatasetsPagedResponse;
 import static com.google.cloud.automl.v1beta1.AutoMlClient.ListModelEvaluationsPagedResponse;
 import static com.google.cloud.automl.v1beta1.AutoMlClient.ListModelsPagedResponse;
+import static com.google.cloud.automl.v1beta1.AutoMlClient.ListTableSpecsPagedResponse;
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.automl.v1beta1.AnnotationSpec;
+import com.google.cloud.automl.v1beta1.ColumnSpec;
 import com.google.cloud.automl.v1beta1.CreateDatasetRequest;
 import com.google.cloud.automl.v1beta1.CreateModelRequest;
 import com.google.cloud.automl.v1beta1.Dataset;
@@ -30,20 +34,33 @@
 import com.google.cloud.automl.v1beta1.DeleteModelRequest;
 import com.google.cloud.automl.v1beta1.DeployModelRequest;
 import com.google.cloud.automl.v1beta1.ExportDataRequest;
+import com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest;
+import com.google.cloud.automl.v1beta1.ExportModelRequest;
+import com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest;
+import com.google.cloud.automl.v1beta1.GetColumnSpecRequest;
 import com.google.cloud.automl.v1beta1.GetDatasetRequest;
 import com.google.cloud.automl.v1beta1.GetModelEvaluationRequest;
 import com.google.cloud.automl.v1beta1.GetModelRequest;
+import com.google.cloud.automl.v1beta1.GetTableSpecRequest;
 import com.google.cloud.automl.v1beta1.ImportDataRequest;
+import com.google.cloud.automl.v1beta1.ListColumnSpecsRequest;
+import com.google.cloud.automl.v1beta1.ListColumnSpecsResponse;
 import com.google.cloud.automl.v1beta1.ListDatasetsRequest;
 import com.google.cloud.automl.v1beta1.ListDatasetsResponse;
 import com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest;
 import com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse;
 import com.google.cloud.automl.v1beta1.ListModelsRequest;
 import com.google.cloud.automl.v1beta1.ListModelsResponse;
+import com.google.cloud.automl.v1beta1.ListTableSpecsRequest;
+import com.google.cloud.automl.v1beta1.ListTableSpecsResponse;
 import com.google.cloud.automl.v1beta1.Model;
 import com.google.cloud.automl.v1beta1.ModelEvaluation;
 import com.google.cloud.automl.v1beta1.OperationMetadata;
+import com.google.cloud.automl.v1beta1.TableSpec;
 import com.google.cloud.automl.v1beta1.UndeployModelRequest;
+import com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest;
+import com.google.cloud.automl.v1beta1.UpdateDatasetRequest;
+import com.google.cloud.automl.v1beta1.UpdateTableSpecRequest;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.OperationsStub;
 import com.google.protobuf.Empty;
@@ -164,6 +181,57 @@ public UnaryCallable getModelEvaluat
     throw new UnsupportedOperationException("Not implemented: listModelEvaluationsCallable()");
   }
 
+  public UnaryCallable updateDatasetCallable() {
+    throw new UnsupportedOperationException("Not implemented: updateDatasetCallable()");
+  }
+
+  public UnaryCallable getAnnotationSpecCallable() {
+    throw new UnsupportedOperationException("Not implemented: getAnnotationSpecCallable()");
+  }
+
+  public UnaryCallable getTableSpecCallable() {
+    throw new UnsupportedOperationException("Not implemented: getTableSpecCallable()");
+  }
+
+  public UnaryCallable
+      listTableSpecsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listTableSpecsPagedCallable()");
+  }
+
+  public UnaryCallable listTableSpecsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listTableSpecsCallable()");
+  }
+
+  public UnaryCallable updateTableSpecCallable() {
+    throw new UnsupportedOperationException("Not implemented: updateTableSpecCallable()");
+  }
+
+  public UnaryCallable getColumnSpecCallable() {
+    throw new UnsupportedOperationException("Not implemented: getColumnSpecCallable()");
+  }
+
+  public UnaryCallable
+      listColumnSpecsPagedCallable() {
+    throw new UnsupportedOperationException("Not implemented: listColumnSpecsPagedCallable()");
+  }
+
+  public UnaryCallable listColumnSpecsCallable() {
+    throw new UnsupportedOperationException("Not implemented: listColumnSpecsCallable()");
+  }
+
+  public UnaryCallable updateColumnSpecCallable() {
+    throw new UnsupportedOperationException("Not implemented: updateColumnSpecCallable()");
+  }
+
+  public UnaryCallable exportModelCallable() {
+    throw new UnsupportedOperationException("Not implemented: exportModelCallable()");
+  }
+
+  public UnaryCallable
+      exportEvaluatedExamplesCallable() {
+    throw new UnsupportedOperationException("Not implemented: exportEvaluatedExamplesCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java
index 22d8d6b97a86..7cfe36f4a07a 100644
--- a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java
+++ b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/AutoMlStubSettings.java
@@ -15,9 +15,11 @@
  */
 package com.google.cloud.automl.v1beta1.stub;
 
+import static com.google.cloud.automl.v1beta1.AutoMlClient.ListColumnSpecsPagedResponse;
 import static com.google.cloud.automl.v1beta1.AutoMlClient.ListDatasetsPagedResponse;
 import static com.google.cloud.automl.v1beta1.AutoMlClient.ListModelEvaluationsPagedResponse;
 import static com.google.cloud.automl.v1beta1.AutoMlClient.ListModelsPagedResponse;
+import static com.google.cloud.automl.v1beta1.AutoMlClient.ListTableSpecsPagedResponse;
 
 import com.google.api.core.ApiFunction;
 import com.google.api.core.ApiFuture;
@@ -45,6 +47,8 @@
 import com.google.api.gax.rpc.TransportChannelProvider;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.automl.v1beta1.AnnotationSpec;
+import com.google.cloud.automl.v1beta1.ColumnSpec;
 import com.google.cloud.automl.v1beta1.CreateDatasetRequest;
 import com.google.cloud.automl.v1beta1.CreateModelRequest;
 import com.google.cloud.automl.v1beta1.Dataset;
@@ -52,20 +56,33 @@
 import com.google.cloud.automl.v1beta1.DeleteModelRequest;
 import com.google.cloud.automl.v1beta1.DeployModelRequest;
 import com.google.cloud.automl.v1beta1.ExportDataRequest;
+import com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest;
+import com.google.cloud.automl.v1beta1.ExportModelRequest;
+import com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest;
+import com.google.cloud.automl.v1beta1.GetColumnSpecRequest;
 import com.google.cloud.automl.v1beta1.GetDatasetRequest;
 import com.google.cloud.automl.v1beta1.GetModelEvaluationRequest;
 import com.google.cloud.automl.v1beta1.GetModelRequest;
+import com.google.cloud.automl.v1beta1.GetTableSpecRequest;
 import com.google.cloud.automl.v1beta1.ImportDataRequest;
+import com.google.cloud.automl.v1beta1.ListColumnSpecsRequest;
+import com.google.cloud.automl.v1beta1.ListColumnSpecsResponse;
 import com.google.cloud.automl.v1beta1.ListDatasetsRequest;
 import com.google.cloud.automl.v1beta1.ListDatasetsResponse;
 import com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest;
 import com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse;
 import com.google.cloud.automl.v1beta1.ListModelsRequest;
 import com.google.cloud.automl.v1beta1.ListModelsResponse;
+import com.google.cloud.automl.v1beta1.ListTableSpecsRequest;
+import com.google.cloud.automl.v1beta1.ListTableSpecsResponse;
 import com.google.cloud.automl.v1beta1.Model;
 import com.google.cloud.automl.v1beta1.ModelEvaluation;
 import com.google.cloud.automl.v1beta1.OperationMetadata;
+import com.google.cloud.automl.v1beta1.TableSpec;
 import com.google.cloud.automl.v1beta1.UndeployModelRequest;
+import com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest;
+import com.google.cloud.automl.v1beta1.UpdateDatasetRequest;
+import com.google.cloud.automl.v1beta1.UpdateTableSpecRequest;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
@@ -142,6 +159,22 @@ public class AutoMlStubSettings extends StubSettings {
           ListModelEvaluationsResponse,
           ListModelEvaluationsPagedResponse>
       listModelEvaluationsSettings;
+  private final UnaryCallSettings updateDatasetSettings;
+  private final UnaryCallSettings
+      getAnnotationSpecSettings;
+  private final UnaryCallSettings getTableSpecSettings;
+  private final PagedCallSettings<
+          ListTableSpecsRequest, ListTableSpecsResponse, ListTableSpecsPagedResponse>
+      listTableSpecsSettings;
+  private final UnaryCallSettings updateTableSpecSettings;
+  private final UnaryCallSettings getColumnSpecSettings;
+  private final PagedCallSettings<
+          ListColumnSpecsRequest, ListColumnSpecsResponse, ListColumnSpecsPagedResponse>
+      listColumnSpecsSettings;
+  private final UnaryCallSettings updateColumnSpecSettings;
+  private final UnaryCallSettings exportModelSettings;
+  private final UnaryCallSettings
+      exportEvaluatedExamplesSettings;
 
   /** Returns the object with the settings used for calls to createDataset. */
   public UnaryCallSettings createDatasetSettings() {
@@ -255,6 +288,61 @@ public UnaryCallSettings undeployModelSettings(
     return listModelEvaluationsSettings;
   }
 
+  /** Returns the object with the settings used for calls to updateDataset. */
+  public UnaryCallSettings updateDatasetSettings() {
+    return updateDatasetSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getAnnotationSpec. */
+  public UnaryCallSettings getAnnotationSpecSettings() {
+    return getAnnotationSpecSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getTableSpec. */
+  public UnaryCallSettings getTableSpecSettings() {
+    return getTableSpecSettings;
+  }
+
+  /** Returns the object with the settings used for calls to listTableSpecs. */
+  public PagedCallSettings<
+          ListTableSpecsRequest, ListTableSpecsResponse, ListTableSpecsPagedResponse>
+      listTableSpecsSettings() {
+    return listTableSpecsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to updateTableSpec. */
+  public UnaryCallSettings updateTableSpecSettings() {
+    return updateTableSpecSettings;
+  }
+
+  /** Returns the object with the settings used for calls to getColumnSpec. */
+  public UnaryCallSettings getColumnSpecSettings() {
+    return getColumnSpecSettings;
+  }
+
+  /** Returns the object with the settings used for calls to listColumnSpecs. */
+  public PagedCallSettings<
+          ListColumnSpecsRequest, ListColumnSpecsResponse, ListColumnSpecsPagedResponse>
+      listColumnSpecsSettings() {
+    return listColumnSpecsSettings;
+  }
+
+  /** Returns the object with the settings used for calls to updateColumnSpec. */
+  public UnaryCallSettings updateColumnSpecSettings() {
+    return updateColumnSpecSettings;
+  }
+
+  /** Returns the object with the settings used for calls to exportModel. */
+  public UnaryCallSettings exportModelSettings() {
+    return exportModelSettings;
+  }
+
+  /** Returns the object with the settings used for calls to exportEvaluatedExamples. */
+  public UnaryCallSettings
+      exportEvaluatedExamplesSettings() {
+    return exportEvaluatedExamplesSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public AutoMlStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -341,6 +429,16 @@ protected AutoMlStubSettings(Builder settingsBuilder) throws IOException {
     undeployModelSettings = settingsBuilder.undeployModelSettings().build();
     getModelEvaluationSettings = settingsBuilder.getModelEvaluationSettings().build();
     listModelEvaluationsSettings = settingsBuilder.listModelEvaluationsSettings().build();
+    updateDatasetSettings = settingsBuilder.updateDatasetSettings().build();
+    getAnnotationSpecSettings = settingsBuilder.getAnnotationSpecSettings().build();
+    getTableSpecSettings = settingsBuilder.getTableSpecSettings().build();
+    listTableSpecsSettings = settingsBuilder.listTableSpecsSettings().build();
+    updateTableSpecSettings = settingsBuilder.updateTableSpecSettings().build();
+    getColumnSpecSettings = settingsBuilder.getColumnSpecSettings().build();
+    listColumnSpecsSettings = settingsBuilder.listColumnSpecsSettings().build();
+    updateColumnSpecSettings = settingsBuilder.updateColumnSpecSettings().build();
+    exportModelSettings = settingsBuilder.exportModelSettings().build();
+    exportEvaluatedExamplesSettings = settingsBuilder.exportEvaluatedExamplesSettings().build();
   }
 
   private static final PagedListDescriptor
@@ -456,6 +554,82 @@ public Iterable extractResources(
             }
           };
 
+  private static final PagedListDescriptor
+      LIST_TABLE_SPECS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListTableSpecsRequest injectToken(ListTableSpecsRequest payload, String token) {
+              return ListTableSpecsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListTableSpecsRequest injectPageSize(
+                ListTableSpecsRequest payload, int pageSize) {
+              return ListTableSpecsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListTableSpecsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListTableSpecsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListTableSpecsResponse payload) {
+              return payload.getTableSpecsList() != null
+                  ? payload.getTableSpecsList()
+                  : ImmutableList.of();
+            }
+          };
+
+  private static final PagedListDescriptor<
+          ListColumnSpecsRequest, ListColumnSpecsResponse, ColumnSpec>
+      LIST_COLUMN_SPECS_PAGE_STR_DESC =
+          new PagedListDescriptor() {
+            @Override
+            public String emptyToken() {
+              return "";
+            }
+
+            @Override
+            public ListColumnSpecsRequest injectToken(
+                ListColumnSpecsRequest payload, String token) {
+              return ListColumnSpecsRequest.newBuilder(payload).setPageToken(token).build();
+            }
+
+            @Override
+            public ListColumnSpecsRequest injectPageSize(
+                ListColumnSpecsRequest payload, int pageSize) {
+              return ListColumnSpecsRequest.newBuilder(payload).setPageSize(pageSize).build();
+            }
+
+            @Override
+            public Integer extractPageSize(ListColumnSpecsRequest payload) {
+              return payload.getPageSize();
+            }
+
+            @Override
+            public String extractNextToken(ListColumnSpecsResponse payload) {
+              return payload.getNextPageToken();
+            }
+
+            @Override
+            public Iterable extractResources(ListColumnSpecsResponse payload) {
+              return payload.getColumnSpecsList() != null
+                  ? payload.getColumnSpecsList()
+                  : ImmutableList.of();
+            }
+          };
+
   private static final PagedListResponseFactory<
           ListDatasetsRequest, ListDatasetsResponse, ListDatasetsPagedResponse>
       LIST_DATASETS_PAGE_STR_FACT =
@@ -514,6 +688,40 @@ public ApiFuture getFuturePagedResponse(
             }
           };
 
+  private static final PagedListResponseFactory<
+          ListTableSpecsRequest, ListTableSpecsResponse, ListTableSpecsPagedResponse>
+      LIST_TABLE_SPECS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListTableSpecsRequest, ListTableSpecsResponse, ListTableSpecsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListTableSpecsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_TABLE_SPECS_PAGE_STR_DESC, request, context);
+              return ListTableSpecsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
+  private static final PagedListResponseFactory<
+          ListColumnSpecsRequest, ListColumnSpecsResponse, ListColumnSpecsPagedResponse>
+      LIST_COLUMN_SPECS_PAGE_STR_FACT =
+          new PagedListResponseFactory<
+              ListColumnSpecsRequest, ListColumnSpecsResponse, ListColumnSpecsPagedResponse>() {
+            @Override
+            public ApiFuture getFuturePagedResponse(
+                UnaryCallable callable,
+                ListColumnSpecsRequest request,
+                ApiCallContext context,
+                ApiFuture futureResponse) {
+              PageContext pageContext =
+                  PageContext.create(callable, LIST_COLUMN_SPECS_PAGE_STR_DESC, request, context);
+              return ListColumnSpecsPagedResponse.createAsync(pageContext, futureResponse);
+            }
+          };
+
   /** Builder for AutoMlStubSettings. */
   public static class Builder extends StubSettings.Builder {
     private final ImmutableList> unaryMethodSettingsBuilders;
@@ -551,6 +759,24 @@ public static class Builder extends StubSettings.Builder
         listModelEvaluationsSettings;
+    private final UnaryCallSettings.Builder updateDatasetSettings;
+    private final UnaryCallSettings.Builder
+        getAnnotationSpecSettings;
+    private final UnaryCallSettings.Builder getTableSpecSettings;
+    private final PagedCallSettings.Builder<
+            ListTableSpecsRequest, ListTableSpecsResponse, ListTableSpecsPagedResponse>
+        listTableSpecsSettings;
+    private final UnaryCallSettings.Builder
+        updateTableSpecSettings;
+    private final UnaryCallSettings.Builder getColumnSpecSettings;
+    private final PagedCallSettings.Builder<
+            ListColumnSpecsRequest, ListColumnSpecsResponse, ListColumnSpecsPagedResponse>
+        listColumnSpecsSettings;
+    private final UnaryCallSettings.Builder
+        updateColumnSpecSettings;
+    private final UnaryCallSettings.Builder exportModelSettings;
+    private final UnaryCallSettings.Builder
+        exportEvaluatedExamplesSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -632,6 +858,26 @@ protected Builder(ClientContext clientContext) {
       listModelEvaluationsSettings =
           PagedCallSettings.newBuilder(LIST_MODEL_EVALUATIONS_PAGE_STR_FACT);
 
+      updateDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+      getAnnotationSpecSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+      getTableSpecSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+      listTableSpecsSettings = PagedCallSettings.newBuilder(LIST_TABLE_SPECS_PAGE_STR_FACT);
+
+      updateTableSpecSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+      getColumnSpecSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+      listColumnSpecsSettings = PagedCallSettings.newBuilder(LIST_COLUMN_SPECS_PAGE_STR_FACT);
+
+      updateColumnSpecSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+      exportModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+      exportEvaluatedExamplesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
               createDatasetSettings,
@@ -647,7 +893,17 @@ protected Builder(ClientContext clientContext) {
               deployModelSettings,
               undeployModelSettings,
               getModelEvaluationSettings,
-              listModelEvaluationsSettings);
+              listModelEvaluationsSettings,
+              updateDatasetSettings,
+              getAnnotationSpecSettings,
+              getTableSpecSettings,
+              listTableSpecsSettings,
+              updateTableSpecSettings,
+              getColumnSpecSettings,
+              listColumnSpecsSettings,
+              updateColumnSpecSettings,
+              exportModelSettings,
+              exportEvaluatedExamplesSettings);
 
       initDefaults(this);
     }
@@ -732,6 +988,56 @@ private static Builder initDefaults(Builder builder) {
           .listModelEvaluationsSettings()
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+      builder
+          .updateDatasetSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+      builder
+          .getAnnotationSpecSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+      builder
+          .getTableSpecSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+      builder
+          .listTableSpecsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+      builder
+          .updateTableSpecSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+      builder
+          .getColumnSpecSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+      builder
+          .listColumnSpecsSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+      builder
+          .updateColumnSpecSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+      builder
+          .exportModelSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
+      builder
+          .exportEvaluatedExamplesSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
       builder
           .deleteDatasetOperationSettings()
           .setInitialCallSettings(
@@ -869,6 +1175,16 @@ protected Builder(AutoMlStubSettings settings) {
       undeployModelSettings = settings.undeployModelSettings.toBuilder();
       getModelEvaluationSettings = settings.getModelEvaluationSettings.toBuilder();
       listModelEvaluationsSettings = settings.listModelEvaluationsSettings.toBuilder();
+      updateDatasetSettings = settings.updateDatasetSettings.toBuilder();
+      getAnnotationSpecSettings = settings.getAnnotationSpecSettings.toBuilder();
+      getTableSpecSettings = settings.getTableSpecSettings.toBuilder();
+      listTableSpecsSettings = settings.listTableSpecsSettings.toBuilder();
+      updateTableSpecSettings = settings.updateTableSpecSettings.toBuilder();
+      getColumnSpecSettings = settings.getColumnSpecSettings.toBuilder();
+      listColumnSpecsSettings = settings.listColumnSpecsSettings.toBuilder();
+      updateColumnSpecSettings = settings.updateColumnSpecSettings.toBuilder();
+      exportModelSettings = settings.exportModelSettings.toBuilder();
+      exportEvaluatedExamplesSettings = settings.exportEvaluatedExamplesSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
           ImmutableList.>of(
@@ -885,7 +1201,17 @@ protected Builder(AutoMlStubSettings settings) {
               deployModelSettings,
               undeployModelSettings,
               getModelEvaluationSettings,
-              listModelEvaluationsSettings);
+              listModelEvaluationsSettings,
+              updateDatasetSettings,
+              getAnnotationSpecSettings,
+              getTableSpecSettings,
+              listTableSpecsSettings,
+              updateTableSpecSettings,
+              getColumnSpecSettings,
+              listColumnSpecsSettings,
+              updateColumnSpecSettings,
+              exportModelSettings,
+              exportEvaluatedExamplesSettings);
     }
 
     // NEXT_MAJOR_VER: remove 'throws Exception'
@@ -1022,6 +1348,63 @@ public UnaryCallSettings.Builder undeployModelS
       return listModelEvaluationsSettings;
     }
 
+    /** Returns the builder for the settings used for calls to updateDataset. */
+    public UnaryCallSettings.Builder updateDatasetSettings() {
+      return updateDatasetSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getAnnotationSpec. */
+    public UnaryCallSettings.Builder
+        getAnnotationSpecSettings() {
+      return getAnnotationSpecSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getTableSpec. */
+    public UnaryCallSettings.Builder getTableSpecSettings() {
+      return getTableSpecSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to listTableSpecs. */
+    public PagedCallSettings.Builder<
+            ListTableSpecsRequest, ListTableSpecsResponse, ListTableSpecsPagedResponse>
+        listTableSpecsSettings() {
+      return listTableSpecsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to updateTableSpec. */
+    public UnaryCallSettings.Builder updateTableSpecSettings() {
+      return updateTableSpecSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to getColumnSpec. */
+    public UnaryCallSettings.Builder getColumnSpecSettings() {
+      return getColumnSpecSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to listColumnSpecs. */
+    public PagedCallSettings.Builder<
+            ListColumnSpecsRequest, ListColumnSpecsResponse, ListColumnSpecsPagedResponse>
+        listColumnSpecsSettings() {
+      return listColumnSpecsSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to updateColumnSpec. */
+    public UnaryCallSettings.Builder
+        updateColumnSpecSettings() {
+      return updateColumnSpecSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to exportModel. */
+    public UnaryCallSettings.Builder exportModelSettings() {
+      return exportModelSettings;
+    }
+
+    /** Returns the builder for the settings used for calls to exportEvaluatedExamples. */
+    public UnaryCallSettings.Builder
+        exportEvaluatedExamplesSettings() {
+      return exportEvaluatedExamplesSettings;
+    }
+
     @Override
     public AutoMlStubSettings build() throws IOException {
       return new AutoMlStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlStub.java b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlStub.java
index 44c2a5d94a0b..c44ca43261c9 100644
--- a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlStub.java
+++ b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcAutoMlStub.java
@@ -15,9 +15,11 @@
  */
 package com.google.cloud.automl.v1beta1.stub;
 
+import static com.google.cloud.automl.v1beta1.AutoMlClient.ListColumnSpecsPagedResponse;
 import static com.google.cloud.automl.v1beta1.AutoMlClient.ListDatasetsPagedResponse;
 import static com.google.cloud.automl.v1beta1.AutoMlClient.ListModelEvaluationsPagedResponse;
 import static com.google.cloud.automl.v1beta1.AutoMlClient.ListModelsPagedResponse;
+import static com.google.cloud.automl.v1beta1.AutoMlClient.ListTableSpecsPagedResponse;
 
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
@@ -28,6 +30,8 @@
 import com.google.api.gax.rpc.OperationCallable;
 import com.google.api.gax.rpc.RequestParamsExtractor;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.automl.v1beta1.AnnotationSpec;
+import com.google.cloud.automl.v1beta1.ColumnSpec;
 import com.google.cloud.automl.v1beta1.CreateDatasetRequest;
 import com.google.cloud.automl.v1beta1.CreateModelRequest;
 import com.google.cloud.automl.v1beta1.Dataset;
@@ -35,20 +39,33 @@
 import com.google.cloud.automl.v1beta1.DeleteModelRequest;
 import com.google.cloud.automl.v1beta1.DeployModelRequest;
 import com.google.cloud.automl.v1beta1.ExportDataRequest;
+import com.google.cloud.automl.v1beta1.ExportEvaluatedExamplesRequest;
+import com.google.cloud.automl.v1beta1.ExportModelRequest;
+import com.google.cloud.automl.v1beta1.GetAnnotationSpecRequest;
+import com.google.cloud.automl.v1beta1.GetColumnSpecRequest;
 import com.google.cloud.automl.v1beta1.GetDatasetRequest;
 import com.google.cloud.automl.v1beta1.GetModelEvaluationRequest;
 import com.google.cloud.automl.v1beta1.GetModelRequest;
+import com.google.cloud.automl.v1beta1.GetTableSpecRequest;
 import com.google.cloud.automl.v1beta1.ImportDataRequest;
+import com.google.cloud.automl.v1beta1.ListColumnSpecsRequest;
+import com.google.cloud.automl.v1beta1.ListColumnSpecsResponse;
 import com.google.cloud.automl.v1beta1.ListDatasetsRequest;
 import com.google.cloud.automl.v1beta1.ListDatasetsResponse;
 import com.google.cloud.automl.v1beta1.ListModelEvaluationsRequest;
 import com.google.cloud.automl.v1beta1.ListModelEvaluationsResponse;
 import com.google.cloud.automl.v1beta1.ListModelsRequest;
 import com.google.cloud.automl.v1beta1.ListModelsResponse;
+import com.google.cloud.automl.v1beta1.ListTableSpecsRequest;
+import com.google.cloud.automl.v1beta1.ListTableSpecsResponse;
 import com.google.cloud.automl.v1beta1.Model;
 import com.google.cloud.automl.v1beta1.ModelEvaluation;
 import com.google.cloud.automl.v1beta1.OperationMetadata;
+import com.google.cloud.automl.v1beta1.TableSpec;
 import com.google.cloud.automl.v1beta1.UndeployModelRequest;
+import com.google.cloud.automl.v1beta1.UpdateColumnSpecRequest;
+import com.google.cloud.automl.v1beta1.UpdateDatasetRequest;
+import com.google.cloud.automl.v1beta1.UpdateTableSpecRequest;
 import com.google.common.collect.ImmutableMap;
 import com.google.longrunning.Operation;
 import com.google.longrunning.stub.GrpcOperationsStub;
@@ -182,6 +199,95 @@ public class GrpcAutoMlStub extends AutoMlStub {
               .setResponseMarshaller(
                   ProtoUtils.marshaller(ListModelEvaluationsResponse.getDefaultInstance()))
               .build();
+  private static final MethodDescriptor
+      updateDatasetMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.automl.v1beta1.AutoMl/UpdateDataset")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(UpdateDatasetRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(Dataset.getDefaultInstance()))
+              .build();
+  private static final MethodDescriptor
+      getAnnotationSpecMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.automl.v1beta1.AutoMl/GetAnnotationSpec")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(GetAnnotationSpecRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(AnnotationSpec.getDefaultInstance()))
+              .build();
+  private static final MethodDescriptor
+      getTableSpecMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.automl.v1beta1.AutoMl/GetTableSpec")
+              .setRequestMarshaller(ProtoUtils.marshaller(GetTableSpecRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(TableSpec.getDefaultInstance()))
+              .build();
+  private static final MethodDescriptor
+      listTableSpecsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.automl.v1beta1.AutoMl/ListTableSpecs")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListTableSpecsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListTableSpecsResponse.getDefaultInstance()))
+              .build();
+  private static final MethodDescriptor
+      updateTableSpecMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.automl.v1beta1.AutoMl/UpdateTableSpec")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(UpdateTableSpecRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(TableSpec.getDefaultInstance()))
+              .build();
+  private static final MethodDescriptor
+      getColumnSpecMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.automl.v1beta1.AutoMl/GetColumnSpec")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(GetColumnSpecRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(ColumnSpec.getDefaultInstance()))
+              .build();
+  private static final MethodDescriptor
+      listColumnSpecsMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.automl.v1beta1.AutoMl/ListColumnSpecs")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ListColumnSpecsRequest.getDefaultInstance()))
+              .setResponseMarshaller(
+                  ProtoUtils.marshaller(ListColumnSpecsResponse.getDefaultInstance()))
+              .build();
+  private static final MethodDescriptor
+      updateColumnSpecMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.automl.v1beta1.AutoMl/UpdateColumnSpec")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(UpdateColumnSpecRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(ColumnSpec.getDefaultInstance()))
+              .build();
+  private static final MethodDescriptor exportModelMethodDescriptor =
+      MethodDescriptor.newBuilder()
+          .setType(MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName("google.cloud.automl.v1beta1.AutoMl/ExportModel")
+          .setRequestMarshaller(ProtoUtils.marshaller(ExportModelRequest.getDefaultInstance()))
+          .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+          .build();
+  private static final MethodDescriptor
+      exportEvaluatedExamplesMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.automl.v1beta1.AutoMl/ExportEvaluatedExamples")
+              .setRequestMarshaller(
+                  ProtoUtils.marshaller(ExportEvaluatedExamplesRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+              .build();
 
   private final BackgroundResource backgroundResources;
   private final GrpcOperationsStub operationsStub;
@@ -217,6 +323,22 @@ public class GrpcAutoMlStub extends AutoMlStub {
       listModelEvaluationsCallable;
   private final UnaryCallable
       listModelEvaluationsPagedCallable;
+  private final UnaryCallable updateDatasetCallable;
+  private final UnaryCallable getAnnotationSpecCallable;
+  private final UnaryCallable getTableSpecCallable;
+  private final UnaryCallable listTableSpecsCallable;
+  private final UnaryCallable
+      listTableSpecsPagedCallable;
+  private final UnaryCallable updateTableSpecCallable;
+  private final UnaryCallable getColumnSpecCallable;
+  private final UnaryCallable
+      listColumnSpecsCallable;
+  private final UnaryCallable
+      listColumnSpecsPagedCallable;
+  private final UnaryCallable updateColumnSpecCallable;
+  private final UnaryCallable exportModelCallable;
+  private final UnaryCallable
+      exportEvaluatedExamplesCallable;
 
   private final GrpcStubCallableFactory callableFactory;
 
@@ -439,6 +561,140 @@ public Map extract(ListModelEvaluationsRequest request) {
                       }
                     })
                 .build();
+    GrpcCallSettings updateDatasetTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(updateDatasetMethodDescriptor)
+            .setParamsExtractor(
+                new RequestParamsExtractor() {
+                  @Override
+                  public Map extract(UpdateDatasetRequest request) {
+                    ImmutableMap.Builder params = ImmutableMap.builder();
+                    params.put("dataset.name", String.valueOf(request.getDataset().getName()));
+                    return params.build();
+                  }
+                })
+            .build();
+    GrpcCallSettings getAnnotationSpecTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getAnnotationSpecMethodDescriptor)
+            .setParamsExtractor(
+                new RequestParamsExtractor() {
+                  @Override
+                  public Map extract(GetAnnotationSpecRequest request) {
+                    ImmutableMap.Builder params = ImmutableMap.builder();
+                    params.put("name", String.valueOf(request.getName()));
+                    return params.build();
+                  }
+                })
+            .build();
+    GrpcCallSettings getTableSpecTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getTableSpecMethodDescriptor)
+            .setParamsExtractor(
+                new RequestParamsExtractor() {
+                  @Override
+                  public Map extract(GetTableSpecRequest request) {
+                    ImmutableMap.Builder params = ImmutableMap.builder();
+                    params.put("name", String.valueOf(request.getName()));
+                    return params.build();
+                  }
+                })
+            .build();
+    GrpcCallSettings
+        listTableSpecsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(listTableSpecsMethodDescriptor)
+                .setParamsExtractor(
+                    new RequestParamsExtractor() {
+                      @Override
+                      public Map extract(ListTableSpecsRequest request) {
+                        ImmutableMap.Builder params = ImmutableMap.builder();
+                        params.put("parent", String.valueOf(request.getParent()));
+                        return params.build();
+                      }
+                    })
+                .build();
+    GrpcCallSettings updateTableSpecTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(updateTableSpecMethodDescriptor)
+            .setParamsExtractor(
+                new RequestParamsExtractor() {
+                  @Override
+                  public Map extract(UpdateTableSpecRequest request) {
+                    ImmutableMap.Builder params = ImmutableMap.builder();
+                    params.put("table_spec.name", String.valueOf(request.getTableSpec().getName()));
+                    return params.build();
+                  }
+                })
+            .build();
+    GrpcCallSettings getColumnSpecTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(getColumnSpecMethodDescriptor)
+            .setParamsExtractor(
+                new RequestParamsExtractor() {
+                  @Override
+                  public Map extract(GetColumnSpecRequest request) {
+                    ImmutableMap.Builder params = ImmutableMap.builder();
+                    params.put("name", String.valueOf(request.getName()));
+                    return params.build();
+                  }
+                })
+            .build();
+    GrpcCallSettings
+        listColumnSpecsTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(listColumnSpecsMethodDescriptor)
+                .setParamsExtractor(
+                    new RequestParamsExtractor() {
+                      @Override
+                      public Map extract(ListColumnSpecsRequest request) {
+                        ImmutableMap.Builder params = ImmutableMap.builder();
+                        params.put("parent", String.valueOf(request.getParent()));
+                        return params.build();
+                      }
+                    })
+                .build();
+    GrpcCallSettings updateColumnSpecTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(updateColumnSpecMethodDescriptor)
+            .setParamsExtractor(
+                new RequestParamsExtractor() {
+                  @Override
+                  public Map extract(UpdateColumnSpecRequest request) {
+                    ImmutableMap.Builder params = ImmutableMap.builder();
+                    params.put(
+                        "column_spec.name", String.valueOf(request.getColumnSpec().getName()));
+                    return params.build();
+                  }
+                })
+            .build();
+    GrpcCallSettings exportModelTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(exportModelMethodDescriptor)
+            .setParamsExtractor(
+                new RequestParamsExtractor() {
+                  @Override
+                  public Map extract(ExportModelRequest request) {
+                    ImmutableMap.Builder params = ImmutableMap.builder();
+                    params.put("name", String.valueOf(request.getName()));
+                    return params.build();
+                  }
+                })
+            .build();
+    GrpcCallSettings
+        exportEvaluatedExamplesTransportSettings =
+            GrpcCallSettings.newBuilder()
+                .setMethodDescriptor(exportEvaluatedExamplesMethodDescriptor)
+                .setParamsExtractor(
+                    new RequestParamsExtractor() {
+                      @Override
+                      public Map extract(ExportEvaluatedExamplesRequest request) {
+                        ImmutableMap.Builder params = ImmutableMap.builder();
+                        params.put("name", String.valueOf(request.getName()));
+                        return params.build();
+                      }
+                    })
+                .build();
 
     this.createDatasetCallable =
         callableFactory.createUnaryCallable(
@@ -527,6 +783,46 @@ public Map extract(ListModelEvaluationsRequest request) {
             listModelEvaluationsTransportSettings,
             settings.listModelEvaluationsSettings(),
             clientContext);
+    this.updateDatasetCallable =
+        callableFactory.createUnaryCallable(
+            updateDatasetTransportSettings, settings.updateDatasetSettings(), clientContext);
+    this.getAnnotationSpecCallable =
+        callableFactory.createUnaryCallable(
+            getAnnotationSpecTransportSettings,
+            settings.getAnnotationSpecSettings(),
+            clientContext);
+    this.getTableSpecCallable =
+        callableFactory.createUnaryCallable(
+            getTableSpecTransportSettings, settings.getTableSpecSettings(), clientContext);
+    this.listTableSpecsCallable =
+        callableFactory.createUnaryCallable(
+            listTableSpecsTransportSettings, settings.listTableSpecsSettings(), clientContext);
+    this.listTableSpecsPagedCallable =
+        callableFactory.createPagedCallable(
+            listTableSpecsTransportSettings, settings.listTableSpecsSettings(), clientContext);
+    this.updateTableSpecCallable =
+        callableFactory.createUnaryCallable(
+            updateTableSpecTransportSettings, settings.updateTableSpecSettings(), clientContext);
+    this.getColumnSpecCallable =
+        callableFactory.createUnaryCallable(
+            getColumnSpecTransportSettings, settings.getColumnSpecSettings(), clientContext);
+    this.listColumnSpecsCallable =
+        callableFactory.createUnaryCallable(
+            listColumnSpecsTransportSettings, settings.listColumnSpecsSettings(), clientContext);
+    this.listColumnSpecsPagedCallable =
+        callableFactory.createPagedCallable(
+            listColumnSpecsTransportSettings, settings.listColumnSpecsSettings(), clientContext);
+    this.updateColumnSpecCallable =
+        callableFactory.createUnaryCallable(
+            updateColumnSpecTransportSettings, settings.updateColumnSpecSettings(), clientContext);
+    this.exportModelCallable =
+        callableFactory.createUnaryCallable(
+            exportModelTransportSettings, settings.exportModelSettings(), clientContext);
+    this.exportEvaluatedExamplesCallable =
+        callableFactory.createUnaryCallable(
+            exportEvaluatedExamplesTransportSettings,
+            settings.exportEvaluatedExamplesSettings(),
+            clientContext);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
@@ -636,6 +932,57 @@ public UnaryCallable getModelEvaluat
     return listModelEvaluationsCallable;
   }
 
+  public UnaryCallable updateDatasetCallable() {
+    return updateDatasetCallable;
+  }
+
+  public UnaryCallable getAnnotationSpecCallable() {
+    return getAnnotationSpecCallable;
+  }
+
+  public UnaryCallable getTableSpecCallable() {
+    return getTableSpecCallable;
+  }
+
+  public UnaryCallable
+      listTableSpecsPagedCallable() {
+    return listTableSpecsPagedCallable;
+  }
+
+  public UnaryCallable listTableSpecsCallable() {
+    return listTableSpecsCallable;
+  }
+
+  public UnaryCallable updateTableSpecCallable() {
+    return updateTableSpecCallable;
+  }
+
+  public UnaryCallable getColumnSpecCallable() {
+    return getColumnSpecCallable;
+  }
+
+  public UnaryCallable
+      listColumnSpecsPagedCallable() {
+    return listColumnSpecsPagedCallable;
+  }
+
+  public UnaryCallable listColumnSpecsCallable() {
+    return listColumnSpecsCallable;
+  }
+
+  public UnaryCallable updateColumnSpecCallable() {
+    return updateColumnSpecCallable;
+  }
+
+  public UnaryCallable exportModelCallable() {
+    return exportModelCallable;
+  }
+
+  public UnaryCallable
+      exportEvaluatedExamplesCallable() {
+    return exportEvaluatedExamplesCallable;
+  }
+
   @Override
   public final void close() {
     shutdown();
diff --git a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceStub.java b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceStub.java
index 5f1f6eb4236b..37c8695a99e1 100644
--- a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceStub.java
+++ b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/GrpcPredictionServiceStub.java
@@ -23,9 +23,11 @@
 import com.google.api.gax.rpc.ClientContext;
 import com.google.api.gax.rpc.RequestParamsExtractor;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.automl.v1beta1.BatchPredictRequest;
 import com.google.cloud.automl.v1beta1.PredictRequest;
 import com.google.cloud.automl.v1beta1.PredictResponse;
 import com.google.common.collect.ImmutableMap;
+import com.google.longrunning.Operation;
 import io.grpc.MethodDescriptor;
 import io.grpc.protobuf.ProtoUtils;
 import java.io.IOException;
@@ -50,10 +52,19 @@ public class GrpcPredictionServiceStub extends PredictionServiceStub {
           .setRequestMarshaller(ProtoUtils.marshaller(PredictRequest.getDefaultInstance()))
           .setResponseMarshaller(ProtoUtils.marshaller(PredictResponse.getDefaultInstance()))
           .build();
+  private static final MethodDescriptor
+      batchPredictMethodDescriptor =
+          MethodDescriptor.newBuilder()
+              .setType(MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName("google.cloud.automl.v1beta1.PredictionService/BatchPredict")
+              .setRequestMarshaller(ProtoUtils.marshaller(BatchPredictRequest.getDefaultInstance()))
+              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+              .build();
 
   private final BackgroundResource backgroundResources;
 
   private final UnaryCallable predictCallable;
+  private final UnaryCallable batchPredictCallable;
 
   private final GrpcStubCallableFactory callableFactory;
 
@@ -109,10 +120,26 @@ public Map extract(PredictRequest request) {
                   }
                 })
             .build();
+    GrpcCallSettings batchPredictTransportSettings =
+        GrpcCallSettings.newBuilder()
+            .setMethodDescriptor(batchPredictMethodDescriptor)
+            .setParamsExtractor(
+                new RequestParamsExtractor() {
+                  @Override
+                  public Map extract(BatchPredictRequest request) {
+                    ImmutableMap.Builder params = ImmutableMap.builder();
+                    params.put("name", String.valueOf(request.getName()));
+                    return params.build();
+                  }
+                })
+            .build();
 
     this.predictCallable =
         callableFactory.createUnaryCallable(
             predictTransportSettings, settings.predictSettings(), clientContext);
+    this.batchPredictCallable =
+        callableFactory.createUnaryCallable(
+            batchPredictTransportSettings, settings.batchPredictSettings(), clientContext);
 
     backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
   }
@@ -121,6 +148,10 @@ public UnaryCallable predictCallable() {
     return predictCallable;
   }
 
+  public UnaryCallable batchPredictCallable() {
+    return batchPredictCallable;
+  }
+
   @Override
   public final void close() {
     shutdown();
diff --git a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStub.java b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStub.java
index 555376df9c45..e92f7ce35b0f 100644
--- a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStub.java
+++ b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStub.java
@@ -18,8 +18,10 @@
 import com.google.api.core.BetaApi;
 import com.google.api.gax.core.BackgroundResource;
 import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.automl.v1beta1.BatchPredictRequest;
 import com.google.cloud.automl.v1beta1.PredictRequest;
 import com.google.cloud.automl.v1beta1.PredictResponse;
+import com.google.longrunning.Operation;
 import javax.annotation.Generated;
 
 // AUTO-GENERATED DOCUMENTATION AND CLASS
@@ -36,6 +38,10 @@ public UnaryCallable predictCallable() {
     throw new UnsupportedOperationException("Not implemented: predictCallable()");
   }
 
+  public UnaryCallable batchPredictCallable() {
+    throw new UnsupportedOperationException("Not implemented: batchPredictCallable()");
+  }
+
   @Override
   public abstract void close();
 }
diff --git a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java
index aeda92c09d14..fc72498fd16b 100644
--- a/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java
+++ b/google-cloud-clients/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/PredictionServiceStubSettings.java
@@ -30,12 +30,14 @@
 import com.google.api.gax.rpc.StubSettings;
 import com.google.api.gax.rpc.TransportChannelProvider;
 import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.cloud.automl.v1beta1.BatchPredictRequest;
 import com.google.cloud.automl.v1beta1.PredictRequest;
 import com.google.cloud.automl.v1beta1.PredictResponse;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.Lists;
+import com.google.longrunning.Operation;
 import java.io.IOException;
 import java.util.List;
 import javax.annotation.Generated;
@@ -75,12 +77,18 @@ public class PredictionServiceStubSettings extends StubSettingsbuilder().add("https://www.googleapis.com/auth/cloud-platform").build();
 
   private final UnaryCallSettings predictSettings;
+  private final UnaryCallSettings batchPredictSettings;
 
   /** Returns the object with the settings used for calls to predict. */
   public UnaryCallSettings predictSettings() {
     return predictSettings;
   }
 
+  /** Returns the object with the settings used for calls to batchPredict. */
+  public UnaryCallSettings batchPredictSettings() {
+    return batchPredictSettings;
+  }
+
   @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
   public PredictionServiceStub createStub() throws IOException {
     if (getTransportChannelProvider()
@@ -150,6 +158,7 @@ protected PredictionServiceStubSettings(Builder settingsBuilder) throws IOExcept
     super(settingsBuilder);
 
     predictSettings = settingsBuilder.predictSettings().build();
+    batchPredictSettings = settingsBuilder.batchPredictSettings().build();
   }
 
   /** Builder for PredictionServiceStubSettings. */
@@ -157,6 +166,7 @@ public static class Builder extends StubSettings.Builder> unaryMethodSettingsBuilders;
 
     private final UnaryCallSettings.Builder predictSettings;
+    private final UnaryCallSettings.Builder batchPredictSettings;
 
     private static final ImmutableMap>
         RETRYABLE_CODE_DEFINITIONS;
@@ -201,8 +211,10 @@ protected Builder(ClientContext clientContext) {
 
       predictSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
 
+      batchPredictSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
       unaryMethodSettingsBuilders =
-          ImmutableList.>of(predictSettings);
+          ImmutableList.>of(predictSettings, batchPredictSettings);
 
       initDefaults(this);
     }
@@ -223,6 +235,11 @@ private static Builder initDefaults(Builder builder) {
           .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
           .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
 
+      builder
+          .batchPredictSettings()
+          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
+          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+
       return builder;
     }
 
@@ -230,9 +247,10 @@ protected Builder(PredictionServiceStubSettings settings) {
       super(settings);
 
       predictSettings = settings.predictSettings.toBuilder();
+      batchPredictSettings = settings.batchPredictSettings.toBuilder();
 
       unaryMethodSettingsBuilders =
-          ImmutableList.>of(predictSettings);
+          ImmutableList.>of(predictSettings, batchPredictSettings);
     }
 
     // NEXT_MAJOR_VER: remove 'throws Exception'
@@ -256,6 +274,11 @@ public UnaryCallSettings.Builder predictSetting
       return predictSettings;
     }
 
+    /** Returns the builder for the settings used for calls to batchPredict. */
+    public UnaryCallSettings.Builder batchPredictSettings() {
+      return batchPredictSettings;
+    }
+
     @Override
     public PredictionServiceStubSettings build() throws IOException {
       return new PredictionServiceStubSettings(this);
diff --git a/google-cloud-clients/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/AutoMlClientTest.java b/google-cloud-clients/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/AutoMlClientTest.java
index 7108005b06ed..193ebb6dc051 100644
--- a/google-cloud-clients/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/AutoMlClientTest.java
+++ b/google-cloud-clients/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/AutoMlClientTest.java
@@ -90,12 +90,16 @@ public void tearDown() throws Exception {
   public void createDatasetTest() {
     String name = "name3373707";
     String displayName = "displayName1615086568";
+    String description = "description-1724546052";
     int exampleCount = 1517063674;
+    String etag = "etag3123477";
     Dataset expectedResponse =
         Dataset.newBuilder()
             .setName(name)
             .setDisplayName(displayName)
+            .setDescription(description)
             .setExampleCount(exampleCount)
+            .setEtag(etag)
             .build();
     mockAutoMl.addResponse(expectedResponse);
 
@@ -139,12 +143,16 @@ public void createDatasetExceptionTest() throws Exception {
   public void getDatasetTest() {
     String name2 = "name2-1052831874";
     String displayName = "displayName1615086568";
+    String description = "description-1724546052";
     int exampleCount = 1517063674;
+    String etag = "etag3123477";
     Dataset expectedResponse =
         Dataset.newBuilder()
             .setName(name2)
             .setDisplayName(displayName)
+            .setDescription(description)
             .setExampleCount(exampleCount)
+            .setEtag(etag)
             .build();
     mockAutoMl.addResponse(expectedResponse);
 
@@ -651,11 +659,13 @@ public void undeployModelExceptionTest() throws Exception {
   public void getModelEvaluationTest() {
     String name2 = "name2-1052831874";
     String annotationSpecId = "annotationSpecId60690191";
+    String displayName = "displayName1615086568";
     int evaluatedExampleCount = 277565350;
     ModelEvaluation expectedResponse =
         ModelEvaluation.newBuilder()
             .setName(name2)
             .setAnnotationSpecId(annotationSpecId)
+            .setDisplayName(displayName)
             .setEvaluatedExampleCount(evaluatedExampleCount)
             .build();
     mockAutoMl.addResponse(expectedResponse);
diff --git a/google-cloud-clients/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMlImpl.java b/google-cloud-clients/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMlImpl.java
index 29d7f4f90e81..cdcd24af5dcb 100644
--- a/google-cloud-clients/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMlImpl.java
+++ b/google-cloud-clients/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockAutoMlImpl.java
@@ -28,7 +28,7 @@
 @javax.annotation.Generated("by GAPIC")
 @BetaApi
 public class MockAutoMlImpl extends AutoMlImplBase {
-  private ArrayList requests;
+  private List requests;
   private Queue responses;
 
   public MockAutoMlImpl() {
@@ -101,6 +101,21 @@ public void listDatasets(
     }
   }
 
+  @Override
+  public void updateDataset(
+      UpdateDatasetRequest request, StreamObserver responseObserver) {
+    Object response = responses.remove();
+    if (response instanceof Dataset) {
+      requests.add(request);
+      responseObserver.onNext((Dataset) response);
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError((Exception) response);
+    } else {
+      responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+    }
+  }
+
   @Override
   public void deleteDataset(
       DeleteDatasetRequest request, StreamObserver responseObserver) {
@@ -144,6 +159,111 @@ public void exportData(ExportDataRequest request, StreamObserver resp
     }
   }
 
+  @Override
+  public void getAnnotationSpec(
+      GetAnnotationSpecRequest request, StreamObserver responseObserver) {
+    Object response = responses.remove();
+    if (response instanceof AnnotationSpec) {
+      requests.add(request);
+      responseObserver.onNext((AnnotationSpec) response);
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError((Exception) response);
+    } else {
+      responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+    }
+  }
+
+  @Override
+  public void getTableSpec(
+      GetTableSpecRequest request, StreamObserver responseObserver) {
+    Object response = responses.remove();
+    if (response instanceof TableSpec) {
+      requests.add(request);
+      responseObserver.onNext((TableSpec) response);
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError((Exception) response);
+    } else {
+      responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+    }
+  }
+
+  @Override
+  public void listTableSpecs(
+      ListTableSpecsRequest request, StreamObserver responseObserver) {
+    Object response = responses.remove();
+    if (response instanceof ListTableSpecsResponse) {
+      requests.add(request);
+      responseObserver.onNext((ListTableSpecsResponse) response);
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError((Exception) response);
+    } else {
+      responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+    }
+  }
+
+  @Override
+  public void updateTableSpec(
+      UpdateTableSpecRequest request, StreamObserver responseObserver) {
+    Object response = responses.remove();
+    if (response instanceof TableSpec) {
+      requests.add(request);
+      responseObserver.onNext((TableSpec) response);
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError((Exception) response);
+    } else {
+      responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+    }
+  }
+
+  @Override
+  public void getColumnSpec(
+      GetColumnSpecRequest request, StreamObserver responseObserver) {
+    Object response = responses.remove();
+    if (response instanceof ColumnSpec) {
+      requests.add(request);
+      responseObserver.onNext((ColumnSpec) response);
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError((Exception) response);
+    } else {
+      responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+    }
+  }
+
+  @Override
+  public void listColumnSpecs(
+      ListColumnSpecsRequest request, StreamObserver responseObserver) {
+    Object response = responses.remove();
+    if (response instanceof ListColumnSpecsResponse) {
+      requests.add(request);
+      responseObserver.onNext((ListColumnSpecsResponse) response);
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError((Exception) response);
+    } else {
+      responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+    }
+  }
+
+  @Override
+  public void updateColumnSpec(
+      UpdateColumnSpecRequest request, StreamObserver responseObserver) {
+    Object response = responses.remove();
+    if (response instanceof ColumnSpec) {
+      requests.add(request);
+      responseObserver.onNext((ColumnSpec) response);
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError((Exception) response);
+    } else {
+      responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+    }
+  }
+
   @Override
   public void createModel(CreateModelRequest request, StreamObserver responseObserver) {
     Object response = responses.remove();
@@ -230,6 +350,35 @@ public void undeployModel(
     }
   }
 
+  @Override
+  public void exportModel(ExportModelRequest request, StreamObserver responseObserver) {
+    Object response = responses.remove();
+    if (response instanceof Operation) {
+      requests.add(request);
+      responseObserver.onNext((Operation) response);
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError((Exception) response);
+    } else {
+      responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+    }
+  }
+
+  @Override
+  public void exportEvaluatedExamples(
+      ExportEvaluatedExamplesRequest request, StreamObserver responseObserver) {
+    Object response = responses.remove();
+    if (response instanceof Operation) {
+      requests.add(request);
+      responseObserver.onNext((Operation) response);
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError((Exception) response);
+    } else {
+      responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+    }
+  }
+
   @Override
   public void getModelEvaluation(
       GetModelEvaluationRequest request, StreamObserver responseObserver) {
diff --git a/google-cloud-clients/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionServiceImpl.java b/google-cloud-clients/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionServiceImpl.java
index 15cac5d61843..f9ba1e2e42fc 100644
--- a/google-cloud-clients/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionServiceImpl.java
+++ b/google-cloud-clients/google-cloud-automl/src/test/java/com/google/cloud/automl/v1beta1/MockPredictionServiceImpl.java
@@ -17,6 +17,7 @@
 
 import com.google.api.core.BetaApi;
 import com.google.cloud.automl.v1beta1.PredictionServiceGrpc.PredictionServiceImplBase;
+import com.google.longrunning.Operation;
 import com.google.protobuf.AbstractMessage;
 import io.grpc.stub.StreamObserver;
 import java.util.ArrayList;
@@ -27,7 +28,7 @@
 @javax.annotation.Generated("by GAPIC")
 @BetaApi
 public class MockPredictionServiceImpl extends PredictionServiceImplBase {
-  private ArrayList requests;
+  private List requests;
   private Queue responses;
 
   public MockPredictionServiceImpl() {
@@ -69,4 +70,19 @@ public void predict(PredictRequest request, StreamObserver resp
       responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
     }
   }
+
+  @Override
+  public void batchPredict(
+      BatchPredictRequest request, StreamObserver responseObserver) {
+    Object response = responses.remove();
+    if (response instanceof Operation) {
+      requests.add(request);
+      responseObserver.onNext((Operation) response);
+      responseObserver.onCompleted();
+    } else if (response instanceof Exception) {
+      responseObserver.onError((Exception) response);
+    } else {
+      responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+    }
+  }
 }
diff --git a/google-cloud-clients/google-cloud-automl/synth.metadata b/google-cloud-clients/google-cloud-automl/synth.metadata
index 0edc88b4991a..39ada5e38ef1 100644
--- a/google-cloud-clients/google-cloud-automl/synth.metadata
+++ b/google-cloud-clients/google-cloud-automl/synth.metadata
@@ -1,19 +1,19 @@
 {
-  "updateTime": "2019-03-30T07:33:58.329407Z",
+  "updateTime": "2019-04-02T07:33:58.311220Z",
   "sources": [
     {
       "generator": {
         "name": "artman",
-        "version": "0.16.21",
-        "dockerImage": "googleapis/artman@sha256:854131ec1af7b3a313253474c24748dc0acd217a58a0b74dbfb559f340a15d78"
+        "version": "0.16.22",
+        "dockerImage": "googleapis/artman@sha256:e7f9554322a8aa1416c122c918fdc4cdec8cfe816f027fc948dec0be7edef320"
       }
     },
     {
       "git": {
         "name": "googleapis",
         "remote": "https://github.com/googleapis/googleapis.git",
-        "sha": "fd67be4b51a8c809b97100ccf1c3cffd15b85d7b",
-        "internalRef": "241096997"
+        "sha": "6c48ab5aef47dc14e02e2dc718d232a28067129d",
+        "internalRef": "241437588"
       }
     }
   ],